[2025-02-17 00:00:06] Production.INFO: next invoice date [2025-02-17 00:00:06] Production.INFO: 2025-03-17 [2025-02-17 00:00:06] Production.INFO: getdaysdiff [2025-02-17 00:00:06] Production.INFO: +28 [2025-02-17 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (250,16,1,28,28,'RMScheduler',2025-02-17 00:00:06,1,0,,,0) [2025-02-17 00:00:06] Production.INFO: next invoice date [2025-02-17 00:00:06] Production.INFO: 2025-03-17 [2025-02-17 00:00:06] Production.INFO: getdaysdiff [2025-02-17 00:00:06] Production.INFO: +28 [2025-02-17 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (250,13,2,28,28,'RMScheduler',2025-02-17 00:00:06,1,0,,,0) [2025-02-17 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:00:07 [end_date_ymd] => 2025-02-17 00:00:07 [RateCDR] => 1 ) [2025-02-17 00:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:00:07' and `end` < '2025-02-17 00:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:00:22] Production.INFO: count ==18360 [2025-02-17 00:00:35] Production.ERROR: pbx CDR StartTime 2025-02-16 21:00:07 - End Time 2025-02-17 00:00:07 [2025-02-17 00:00:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:00:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14491920', 'tblTempUsageDetail_20' ) start [2025-02-17 00:00:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14491920', 'tblTempUsageDetail_20' ) end [2025-02-17 00:00:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14491920', 'tblTempVendorCDR_20' ) start [2025-02-17 00:00:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14491920', 'tblTempVendorCDR_20' ) end [2025-02-17 00:00:36] Production.INFO: ProcessCDR(1,14491920,1,1,2) [2025-02-17 00:00:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14491920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:00:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14491920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:00:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14491920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:00:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14491920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:00:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14491920', 'tblTempUsageDetail_20' ) start [2025-02-17 00:00:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14491920', 'tblTempUsageDetail_20' ) end [2025-02-17 00:00:40] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:00:40] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:00:41] Production.INFO: ==28207== Releasing lock... [2025-02-17 00:00:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:00:41] Production.INFO: 168.25 MB #Memory Used# [2025-02-17 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:01:05 [end_date_ymd] => 2025-02-17 00:01:05 [RateCDR] => 1 ) [2025-02-17 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:01:05' and `end` < '2025-02-17 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:01:21] Production.INFO: count ==18274 [2025-02-17 00:01:32] Production.ERROR: pbx CDR StartTime 2025-02-16 21:01:05 - End Time 2025-02-17 00:01:05 [2025-02-17 00:01:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14491925', 'tblTempUsageDetail_20' ) start [2025-02-17 00:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14491925', 'tblTempUsageDetail_20' ) end [2025-02-17 00:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14491925', 'tblTempVendorCDR_20' ) start [2025-02-17 00:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14491925', 'tblTempVendorCDR_20' ) end [2025-02-17 00:01:32] Production.INFO: ProcessCDR(1,14491925,1,1,2) [2025-02-17 00:01:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14491925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:01:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14491925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:01:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14491925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:01:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14491925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:01:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14491925', 'tblTempUsageDetail_20' ) start [2025-02-17 00:01:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14491925', 'tblTempUsageDetail_20' ) end [2025-02-17 00:01:37] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:01:37] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:01:37] Production.INFO: ==28296== Releasing lock... [2025-02-17 00:01:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:01:37] Production.INFO: 166.5 MB #Memory Used# [2025-02-17 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:02:05 [end_date_ymd] => 2025-02-17 00:02:05 [RateCDR] => 1 ) [2025-02-17 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:02:05' and `end` < '2025-02-17 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:02:54] Production.INFO: count ==17325 [2025-02-17 00:03:10] Production.ERROR: pbx CDR StartTime 2025-02-16 21:02:05 - End Time 2025-02-17 00:02:05 [2025-02-17 00:03:10] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:03:10] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14491930', 'tblTempUsageDetail_20' ) start [2025-02-17 00:03:12] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14491930', 'tblTempUsageDetail_20' ) end [2025-02-17 00:03:12] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14491930', 'tblTempVendorCDR_20' ) start [2025-02-17 00:03:12] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14491930', 'tblTempVendorCDR_20' ) end [2025-02-17 00:03:12] Production.INFO: ProcessCDR(1,14491930,1,1,2) [2025-02-17 00:03:12] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14491930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:03:14] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14491930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:03:14] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14491930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:03:18] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14491930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:03:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14491930', 'tblTempUsageDetail_20' ) start [2025-02-17 00:03:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14491930', 'tblTempUsageDetail_20' ) end [2025-02-17 00:03:18] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:03:18] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:03:18] Production.INFO: ==28385== Releasing lock... [2025-02-17 00:03:18] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:03:18] Production.INFO: 159.5 MB #Memory Used# [2025-02-17 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:04:05 [end_date_ymd] => 2025-02-17 00:04:05 [RateCDR] => 1 ) [2025-02-17 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:04:05' and `end` < '2025-02-17 00:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:04:35] Production.INFO: count ==17135 [2025-02-17 00:04:46] Production.ERROR: pbx CDR StartTime 2025-02-16 21:04:05 - End Time 2025-02-17 00:04:05 [2025-02-17 00:04:46] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:04:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14491939', 'tblTempUsageDetail_20' ) start [2025-02-17 00:04:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14491939', 'tblTempUsageDetail_20' ) end [2025-02-17 00:04:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14491939', 'tblTempVendorCDR_20' ) start [2025-02-17 00:04:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14491939', 'tblTempVendorCDR_20' ) end [2025-02-17 00:04:47] Production.INFO: ProcessCDR(1,14491939,1,1,2) [2025-02-17 00:04:47] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14491939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:04:48] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14491939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:04:48] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14491939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:04:50] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14491939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:04:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14491939', 'tblTempUsageDetail_20' ) start [2025-02-17 00:04:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14491939', 'tblTempUsageDetail_20' ) end [2025-02-17 00:04:50] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:04:50] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:04:50] Production.INFO: ==28569== Releasing lock... [2025-02-17 00:04:50] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:04:50] Production.INFO: 158 MB #Memory Used# [2025-02-17 00:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:05:04 [end_date_ymd] => 2025-02-17 00:05:04 [RateCDR] => 1 ) [2025-02-17 00:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:05:04' and `end` < '2025-02-17 00:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:05:34] Production.INFO: count ==17017 [2025-02-17 00:05:45] Production.ERROR: pbx CDR StartTime 2025-02-16 21:05:04 - End Time 2025-02-17 00:05:04 [2025-02-17 00:05:45] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:05:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14491944', 'tblTempUsageDetail_20' ) start [2025-02-17 00:05:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14491944', 'tblTempUsageDetail_20' ) end [2025-02-17 00:05:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14491944', 'tblTempVendorCDR_20' ) start [2025-02-17 00:05:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14491944', 'tblTempVendorCDR_20' ) end [2025-02-17 00:05:45] Production.INFO: ProcessCDR(1,14491944,1,1,2) [2025-02-17 00:05:45] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14491944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:05:47] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14491944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:05:47] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14491944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:05:49] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14491944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:05:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14491944', 'tblTempUsageDetail_20' ) start [2025-02-17 00:05:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14491944', 'tblTempUsageDetail_20' ) end [2025-02-17 00:05:49] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:05:49] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:05:49] Production.INFO: ==28671== Releasing lock... [2025-02-17 00:05:49] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:05:49] Production.INFO: 157.25 MB #Memory Used# [2025-02-17 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:06:05 [end_date_ymd] => 2025-02-17 00:06:05 [RateCDR] => 1 ) [2025-02-17 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:06:05' and `end` < '2025-02-17 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:06:30] Production.INFO: count ==16895 [2025-02-17 00:06:40] Production.ERROR: pbx CDR StartTime 2025-02-16 21:06:05 - End Time 2025-02-17 00:06:05 [2025-02-17 00:06:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:06:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14491949', 'tblTempUsageDetail_20' ) start [2025-02-17 00:06:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14491949', 'tblTempUsageDetail_20' ) end [2025-02-17 00:06:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14491949', 'tblTempVendorCDR_20' ) start [2025-02-17 00:06:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14491949', 'tblTempVendorCDR_20' ) end [2025-02-17 00:06:41] Production.INFO: ProcessCDR(1,14491949,1,1,2) [2025-02-17 00:06:41] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14491949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:06:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14491949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:06:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14491949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:06:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14491949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:06:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14491949', 'tblTempUsageDetail_20' ) start [2025-02-17 00:06:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14491949', 'tblTempUsageDetail_20' ) end [2025-02-17 00:06:44] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:06:44] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:06:44] Production.INFO: ==28766== Releasing lock... [2025-02-17 00:06:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:06:44] Production.INFO: 156.25 MB #Memory Used# [2025-02-17 00:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:07:06 [end_date_ymd] => 2025-02-17 00:07:06 [RateCDR] => 1 ) [2025-02-17 00:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:07:06' and `end` < '2025-02-17 00:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:07:28] Production.INFO: count ==16768 [2025-02-17 00:07:38] Production.ERROR: pbx CDR StartTime 2025-02-16 21:07:06 - End Time 2025-02-17 00:07:06 [2025-02-17 00:07:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:07:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14491954', 'tblTempUsageDetail_20' ) start [2025-02-17 00:07:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14491954', 'tblTempUsageDetail_20' ) end [2025-02-17 00:07:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14491954', 'tblTempVendorCDR_20' ) start [2025-02-17 00:07:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14491954', 'tblTempVendorCDR_20' ) end [2025-02-17 00:07:39] Production.INFO: ProcessCDR(1,14491954,1,1,2) [2025-02-17 00:07:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14491954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:07:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14491954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:07:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14491954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:07:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14491954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:07:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14491954', 'tblTempUsageDetail_20' ) start [2025-02-17 00:07:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14491954', 'tblTempUsageDetail_20' ) end [2025-02-17 00:07:44] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:07:44] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:07:44] Production.INFO: ==28893== Releasing lock... [2025-02-17 00:07:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:07:44] Production.INFO: 155.25 MB #Memory Used# [2025-02-17 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:08:05 [end_date_ymd] => 2025-02-17 00:08:05 [RateCDR] => 1 ) [2025-02-17 00:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:08:05' and `end` < '2025-02-17 00:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:08:19] Production.INFO: count ==16662 [2025-02-17 00:08:29] Production.ERROR: pbx CDR StartTime 2025-02-16 21:08:05 - End Time 2025-02-17 00:08:05 [2025-02-17 00:08:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14491959', 'tblTempUsageDetail_20' ) start [2025-02-17 00:08:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14491959', 'tblTempUsageDetail_20' ) end [2025-02-17 00:08:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14491959', 'tblTempVendorCDR_20' ) start [2025-02-17 00:08:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14491959', 'tblTempVendorCDR_20' ) end [2025-02-17 00:08:30] Production.INFO: ProcessCDR(1,14491959,1,1,2) [2025-02-17 00:08:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14491959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:08:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14491959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:08:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14491959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:08:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14491959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14491959', 'tblTempUsageDetail_20' ) start [2025-02-17 00:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14491959', 'tblTempUsageDetail_20' ) end [2025-02-17 00:08:33] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:08:33] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:08:33] Production.INFO: ==28974== Releasing lock... [2025-02-17 00:08:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:08:33] Production.INFO: 154.5 MB #Memory Used# [2025-02-17 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:09:05 [end_date_ymd] => 2025-02-17 00:09:05 [RateCDR] => 1 ) [2025-02-17 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:09:05' and `end` < '2025-02-17 00:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:09:20] Production.INFO: count ==16555 [2025-02-17 00:09:30] Production.ERROR: pbx CDR StartTime 2025-02-16 21:09:05 - End Time 2025-02-17 00:09:05 [2025-02-17 00:09:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14491964', 'tblTempUsageDetail_20' ) start [2025-02-17 00:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14491964', 'tblTempUsageDetail_20' ) end [2025-02-17 00:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14491964', 'tblTempVendorCDR_20' ) start [2025-02-17 00:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14491964', 'tblTempVendorCDR_20' ) end [2025-02-17 00:09:31] Production.INFO: ProcessCDR(1,14491964,1,1,2) [2025-02-17 00:09:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14491964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:09:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14491964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:09:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14491964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:09:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14491964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:09:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14491964', 'tblTempUsageDetail_20' ) start [2025-02-17 00:09:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14491964', 'tblTempUsageDetail_20' ) end [2025-02-17 00:09:35] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:09:36] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:09:36] Production.INFO: ==29055== Releasing lock... [2025-02-17 00:09:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:09:36] Production.INFO: 153.75 MB #Memory Used# [2025-02-17 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:10:05 [end_date_ymd] => 2025-02-17 00:10:05 [RateCDR] => 1 ) [2025-02-17 00:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:10:05' and `end` < '2025-02-17 00:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:10:20] Production.INFO: count ==16461 [2025-02-17 00:10:30] Production.ERROR: pbx CDR StartTime 2025-02-16 21:10:05 - End Time 2025-02-17 00:10:05 [2025-02-17 00:10:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14491970', 'tblTempUsageDetail_20' ) start [2025-02-17 00:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14491970', 'tblTempUsageDetail_20' ) end [2025-02-17 00:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14491970', 'tblTempVendorCDR_20' ) start [2025-02-17 00:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14491970', 'tblTempVendorCDR_20' ) end [2025-02-17 00:10:31] Production.INFO: ProcessCDR(1,14491970,1,1,2) [2025-02-17 00:10:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14491970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:10:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14491970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:10:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14491970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:10:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14491970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14491970', 'tblTempUsageDetail_20' ) start [2025-02-17 00:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14491970', 'tblTempUsageDetail_20' ) end [2025-02-17 00:10:34] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:10:34] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:10:34] Production.INFO: ==29130== Releasing lock... [2025-02-17 00:10:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:10:34] Production.INFO: 153 MB #Memory Used# [2025-02-17 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:11:05 [end_date_ymd] => 2025-02-17 00:11:05 [RateCDR] => 1 ) [2025-02-17 00:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:11:05' and `end` < '2025-02-17 00:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:11:23] Production.INFO: count ==16380 [2025-02-17 00:11:33] Production.ERROR: pbx CDR StartTime 2025-02-16 21:11:05 - End Time 2025-02-17 00:11:05 [2025-02-17 00:11:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14491975', 'tblTempUsageDetail_20' ) start [2025-02-17 00:11:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14491975', 'tblTempUsageDetail_20' ) end [2025-02-17 00:11:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14491975', 'tblTempVendorCDR_20' ) start [2025-02-17 00:11:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14491975', 'tblTempVendorCDR_20' ) end [2025-02-17 00:11:34] Production.INFO: ProcessCDR(1,14491975,1,1,2) [2025-02-17 00:11:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14491975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:11:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14491975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:11:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14491975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:11:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14491975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:11:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14491975', 'tblTempUsageDetail_20' ) start [2025-02-17 00:11:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14491975', 'tblTempUsageDetail_20' ) end [2025-02-17 00:11:37] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:11:37] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:11:37] Production.INFO: ==29254== Releasing lock... [2025-02-17 00:11:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:11:37] Production.INFO: 152 MB #Memory Used# [2025-02-17 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:12:05 [end_date_ymd] => 2025-02-17 00:12:05 [RateCDR] => 1 ) [2025-02-17 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:12:05' and `end` < '2025-02-17 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:12:22] Production.INFO: count ==16669 [2025-02-17 00:12:32] Production.ERROR: pbx CDR StartTime 2025-02-16 21:12:05 - End Time 2025-02-17 00:12:05 [2025-02-17 00:12:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:12:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14491980', 'tblTempUsageDetail_20' ) start [2025-02-17 00:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14491980', 'tblTempUsageDetail_20' ) end [2025-02-17 00:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14491980', 'tblTempVendorCDR_20' ) start [2025-02-17 00:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14491980', 'tblTempVendorCDR_20' ) end [2025-02-17 00:12:33] Production.INFO: ProcessCDR(1,14491980,1,1,2) [2025-02-17 00:12:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14491980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:12:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14491980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:12:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14491980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:12:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14491980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:12:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14491980', 'tblTempUsageDetail_20' ) start [2025-02-17 00:12:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14491980', 'tblTempUsageDetail_20' ) end [2025-02-17 00:12:37] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:12:37] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:12:37] Production.INFO: ==29330== Releasing lock... [2025-02-17 00:12:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:12:37] Production.INFO: 154.5 MB #Memory Used# [2025-02-17 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:13:05 [end_date_ymd] => 2025-02-17 00:13:05 [RateCDR] => 1 ) [2025-02-17 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:13:05' and `end` < '2025-02-17 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:13:20] Production.INFO: count ==16520 [2025-02-17 00:13:30] Production.ERROR: pbx CDR StartTime 2025-02-16 21:13:05 - End Time 2025-02-17 00:13:05 [2025-02-17 00:13:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14491985', 'tblTempUsageDetail_20' ) start [2025-02-17 00:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14491985', 'tblTempUsageDetail_20' ) end [2025-02-17 00:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14491985', 'tblTempVendorCDR_20' ) start [2025-02-17 00:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14491985', 'tblTempVendorCDR_20' ) end [2025-02-17 00:13:31] Production.INFO: ProcessCDR(1,14491985,1,1,2) [2025-02-17 00:13:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14491985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:13:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14491985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:13:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14491985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:13:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14491985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:13:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14491985', 'tblTempUsageDetail_20' ) start [2025-02-17 00:13:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14491985', 'tblTempUsageDetail_20' ) end [2025-02-17 00:13:36] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:13:36] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:13:36] Production.INFO: ==29412== Releasing lock... [2025-02-17 00:13:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:13:36] Production.INFO: 153.5 MB #Memory Used# [2025-02-17 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:14:05 [end_date_ymd] => 2025-02-17 00:14:05 [RateCDR] => 1 ) [2025-02-17 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:14:05' and `end` < '2025-02-17 00:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:14:22] Production.INFO: count ==16365 [2025-02-17 00:14:31] Production.ERROR: pbx CDR StartTime 2025-02-16 21:14:05 - End Time 2025-02-17 00:14:05 [2025-02-17 00:14:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:14:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14491990', 'tblTempUsageDetail_20' ) start [2025-02-17 00:14:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14491990', 'tblTempUsageDetail_20' ) end [2025-02-17 00:14:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14491990', 'tblTempVendorCDR_20' ) start [2025-02-17 00:14:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14491990', 'tblTempVendorCDR_20' ) end [2025-02-17 00:14:32] Production.INFO: ProcessCDR(1,14491990,1,1,2) [2025-02-17 00:14:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14491990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:14:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14491990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:14:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14491990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:14:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14491990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:14:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14491990', 'tblTempUsageDetail_20' ) start [2025-02-17 00:14:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14491990', 'tblTempUsageDetail_20' ) end [2025-02-17 00:14:37] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:14:37] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:14:37] Production.INFO: ==29490== Releasing lock... [2025-02-17 00:14:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:14:37] Production.INFO: 152 MB #Memory Used# [2025-02-17 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:15:05 [end_date_ymd] => 2025-02-17 00:15:05 [RateCDR] => 1 ) [2025-02-17 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:15:05' and `end` < '2025-02-17 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:15:26] Production.INFO: count ==16176 [2025-02-17 00:15:35] Production.ERROR: pbx CDR StartTime 2025-02-16 21:15:05 - End Time 2025-02-17 00:15:05 [2025-02-17 00:15:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:15:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14491995', 'tblTempUsageDetail_20' ) start [2025-02-17 00:15:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14491995', 'tblTempUsageDetail_20' ) end [2025-02-17 00:15:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14491995', 'tblTempVendorCDR_20' ) start [2025-02-17 00:15:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14491995', 'tblTempVendorCDR_20' ) end [2025-02-17 00:15:36] Production.INFO: ProcessCDR(1,14491995,1,1,2) [2025-02-17 00:15:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14491995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:15:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14491995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:15:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14491995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:15:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14491995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:15:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14491995', 'tblTempUsageDetail_20' ) start [2025-02-17 00:15:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14491995', 'tblTempUsageDetail_20' ) end [2025-02-17 00:15:39] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:15:39] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:15:39] Production.INFO: ==29571== Releasing lock... [2025-02-17 00:15:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:15:39] Production.INFO: 150.5 MB #Memory Used# [2025-02-17 00:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:16:06 [end_date_ymd] => 2025-02-17 00:16:06 [RateCDR] => 1 ) [2025-02-17 00:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:16:06' and `end` < '2025-02-17 00:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:16:26] Production.INFO: count ==16022 [2025-02-17 00:16:35] Production.ERROR: pbx CDR StartTime 2025-02-16 21:16:06 - End Time 2025-02-17 00:16:06 [2025-02-17 00:16:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:16:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492000', 'tblTempUsageDetail_20' ) start [2025-02-17 00:16:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492000', 'tblTempUsageDetail_20' ) end [2025-02-17 00:16:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492000', 'tblTempVendorCDR_20' ) start [2025-02-17 00:16:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492000', 'tblTempVendorCDR_20' ) end [2025-02-17 00:16:36] Production.INFO: ProcessCDR(1,14492000,1,1,2) [2025-02-17 00:16:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:16:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:16:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:16:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:16:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492000', 'tblTempUsageDetail_20' ) start [2025-02-17 00:16:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492000', 'tblTempUsageDetail_20' ) end [2025-02-17 00:16:39] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:16:39] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:16:39] Production.INFO: ==29651== Releasing lock... [2025-02-17 00:16:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:16:39] Production.INFO: 149.5 MB #Memory Used# [2025-02-17 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:17:05 [end_date_ymd] => 2025-02-17 00:17:05 [RateCDR] => 1 ) [2025-02-17 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-02-16 21:17:05' and `end` < '2025-02-17 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-02-17 00:17:24] Production.INFO: count ==15859 [2025-02-17 00:17:33] Production.ERROR: pbx CDR StartTime 2025-02-16 21:17:05 - End Time 2025-02-17 00:17:05 [2025-02-17 00:17:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:17:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492005', 'tblTempUsageDetail_20' ) start [2025-02-17 00:17:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492005', 'tblTempUsageDetail_20' ) end [2025-02-17 00:17:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492005', 'tblTempVendorCDR_20' ) start [2025-02-17 00:17:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492005', 'tblTempVendorCDR_20' ) end [2025-02-17 00:17:34] Production.INFO: ProcessCDR(1,14492005,1,1,2) [2025-02-17 00:17:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:17:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:17:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:17:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:17:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492005', 'tblTempUsageDetail_20' ) start [2025-02-17 00:17:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492005', 'tblTempUsageDetail_20' ) end [2025-02-17 00:17:38] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:17:38] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:17:38] Production.INFO: ==29729== Releasing lock... [2025-02-17 00:17:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:17:38] Production.INFO: 148.25 MB #Memory Used# [2025-02-17 00:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:18:06 [end_date_ymd] => 2025-02-17 00:18:06 [RateCDR] => 1 ) [2025-02-17 00:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:18:06' and `end` < '2025-02-17 00:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:18:26] Production.INFO: count ==15732 [2025-02-17 00:18:35] Production.ERROR: pbx CDR StartTime 2025-02-16 21:18:06 - End Time 2025-02-17 00:18:06 [2025-02-17 00:18:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:18:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492010', 'tblTempUsageDetail_20' ) start [2025-02-17 00:18:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492010', 'tblTempUsageDetail_20' ) end [2025-02-17 00:18:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492010', 'tblTempVendorCDR_20' ) start [2025-02-17 00:18:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492010', 'tblTempVendorCDR_20' ) end [2025-02-17 00:18:36] Production.INFO: ProcessCDR(1,14492010,1,1,2) [2025-02-17 00:18:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:18:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:18:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:18:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:18:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492010', 'tblTempUsageDetail_20' ) start [2025-02-17 00:18:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492010', 'tblTempUsageDetail_20' ) end [2025-02-17 00:18:39] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:18:39] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:18:39] Production.INFO: ==29817== Releasing lock... [2025-02-17 00:18:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:18:39] Production.INFO: 147.25 MB #Memory Used# [2025-02-17 00:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:19:04 [end_date_ymd] => 2025-02-17 00:19:04 [RateCDR] => 1 ) [2025-02-17 00:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:19:04' and `end` < '2025-02-17 00:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:19:21] Production.INFO: count ==15567 [2025-02-17 00:19:30] Production.ERROR: pbx CDR StartTime 2025-02-16 21:19:04 - End Time 2025-02-17 00:19:04 [2025-02-17 00:19:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492015', 'tblTempUsageDetail_20' ) start [2025-02-17 00:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492015', 'tblTempUsageDetail_20' ) end [2025-02-17 00:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492015', 'tblTempVendorCDR_20' ) start [2025-02-17 00:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492015', 'tblTempVendorCDR_20' ) end [2025-02-17 00:19:31] Production.INFO: ProcessCDR(1,14492015,1,1,2) [2025-02-17 00:19:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:19:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:19:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:19:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:19:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492015', 'tblTempUsageDetail_20' ) start [2025-02-17 00:19:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492015', 'tblTempUsageDetail_20' ) end [2025-02-17 00:19:36] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:19:36] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:19:36] Production.INFO: ==29902== Releasing lock... [2025-02-17 00:19:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:19:36] Production.INFO: 146 MB #Memory Used# [2025-02-17 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:20:06 [end_date_ymd] => 2025-02-17 00:20:06 [RateCDR] => 1 ) [2025-02-17 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:20:06' and `end` < '2025-02-17 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:20:23] Production.INFO: count ==15417 [2025-02-17 00:20:33] Production.ERROR: pbx CDR StartTime 2025-02-16 21:20:06 - End Time 2025-02-17 00:20:06 [2025-02-17 00:20:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492020', 'tblTempUsageDetail_20' ) start [2025-02-17 00:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492020', 'tblTempUsageDetail_20' ) end [2025-02-17 00:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492020', 'tblTempVendorCDR_20' ) start [2025-02-17 00:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492020', 'tblTempVendorCDR_20' ) end [2025-02-17 00:20:33] Production.INFO: ProcessCDR(1,14492020,1,1,2) [2025-02-17 00:20:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:20:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:20:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:20:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:20:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492020', 'tblTempUsageDetail_20' ) start [2025-02-17 00:20:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492020', 'tblTempUsageDetail_20' ) end [2025-02-17 00:20:37] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:20:37] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:20:37] Production.INFO: ==30007== Releasing lock... [2025-02-17 00:20:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:20:37] Production.INFO: 145 MB #Memory Used# [2025-02-17 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:21:05 [end_date_ymd] => 2025-02-17 00:21:05 [RateCDR] => 1 ) [2025-02-17 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-02-16 21:21:05' and `end` < '2025-02-17 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-02-17 00:21:21] Production.INFO: count ==15281 [2025-02-17 00:21:31] Production.ERROR: pbx CDR StartTime 2025-02-16 21:21:05 - End Time 2025-02-17 00:21:05 [2025-02-17 00:21:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492026', 'tblTempUsageDetail_20' ) start [2025-02-17 00:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492026', 'tblTempUsageDetail_20' ) end [2025-02-17 00:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492026', 'tblTempVendorCDR_20' ) start [2025-02-17 00:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492026', 'tblTempVendorCDR_20' ) end [2025-02-17 00:21:31] Production.INFO: ProcessCDR(1,14492026,1,1,2) [2025-02-17 00:21:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:21:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:21:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:21:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:21:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492026', 'tblTempUsageDetail_20' ) start [2025-02-17 00:21:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492026', 'tblTempUsageDetail_20' ) end [2025-02-17 00:21:35] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:21:35] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:21:35] Production.INFO: ==30089== Releasing lock... [2025-02-17 00:21:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:21:35] Production.INFO: 143.75 MB #Memory Used# [2025-02-17 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:22:05 [end_date_ymd] => 2025-02-17 00:22:05 [RateCDR] => 1 ) [2025-02-17 00:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:22:05' and `end` < '2025-02-17 00:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:22:22] Production.INFO: count ==15125 [2025-02-17 00:22:31] Production.ERROR: pbx CDR StartTime 2025-02-16 21:22:05 - End Time 2025-02-17 00:22:05 [2025-02-17 00:22:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:22:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492031', 'tblTempUsageDetail_20' ) start [2025-02-17 00:22:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492031', 'tblTempUsageDetail_20' ) end [2025-02-17 00:22:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492031', 'tblTempVendorCDR_20' ) start [2025-02-17 00:22:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492031', 'tblTempVendorCDR_20' ) end [2025-02-17 00:22:31] Production.INFO: ProcessCDR(1,14492031,1,1,2) [2025-02-17 00:22:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:22:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:22:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:22:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:22:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492031', 'tblTempUsageDetail_20' ) start [2025-02-17 00:22:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492031', 'tblTempUsageDetail_20' ) end [2025-02-17 00:22:35] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:22:35] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:22:35] Production.INFO: ==30174== Releasing lock... [2025-02-17 00:22:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:22:35] Production.INFO: 141.75 MB #Memory Used# [2025-02-17 00:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:23:04 [end_date_ymd] => 2025-02-17 00:23:04 [RateCDR] => 1 ) [2025-02-17 00:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:23:04' and `end` < '2025-02-17 00:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:23:21] Production.INFO: count ==14978 [2025-02-17 00:23:31] Production.ERROR: pbx CDR StartTime 2025-02-16 21:23:04 - End Time 2025-02-17 00:23:04 [2025-02-17 00:23:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492036', 'tblTempUsageDetail_20' ) start [2025-02-17 00:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492036', 'tblTempUsageDetail_20' ) end [2025-02-17 00:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492036', 'tblTempVendorCDR_20' ) start [2025-02-17 00:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492036', 'tblTempVendorCDR_20' ) end [2025-02-17 00:23:31] Production.INFO: ProcessCDR(1,14492036,1,1,2) [2025-02-17 00:23:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:23:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:23:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:23:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:23:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492036', 'tblTempUsageDetail_20' ) start [2025-02-17 00:23:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492036', 'tblTempUsageDetail_20' ) end [2025-02-17 00:23:34] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:23:34] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:23:34] Production.INFO: ==30258== Releasing lock... [2025-02-17 00:23:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:23:34] Production.INFO: 140.5 MB #Memory Used# [2025-02-17 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:24:05 [end_date_ymd] => 2025-02-17 00:24:05 [RateCDR] => 1 ) [2025-02-17 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:24:05' and `end` < '2025-02-17 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:24:19] Production.INFO: count ==14807 [2025-02-17 00:24:28] Production.ERROR: pbx CDR StartTime 2025-02-16 21:24:05 - End Time 2025-02-17 00:24:05 [2025-02-17 00:24:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492041', 'tblTempUsageDetail_20' ) start [2025-02-17 00:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492041', 'tblTempUsageDetail_20' ) end [2025-02-17 00:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492041', 'tblTempVendorCDR_20' ) start [2025-02-17 00:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492041', 'tblTempVendorCDR_20' ) end [2025-02-17 00:24:29] Production.INFO: ProcessCDR(1,14492041,1,1,2) [2025-02-17 00:24:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:24:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:24:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:24:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492041', 'tblTempUsageDetail_20' ) start [2025-02-17 00:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492041', 'tblTempUsageDetail_20' ) end [2025-02-17 00:24:33] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:24:33] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:24:33] Production.INFO: ==30344== Releasing lock... [2025-02-17 00:24:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:24:33] Production.INFO: 139.25 MB #Memory Used# [2025-02-17 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:25:06 [end_date_ymd] => 2025-02-17 00:25:06 [RateCDR] => 1 ) [2025-02-17 00:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:25:06' and `end` < '2025-02-17 00:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:25:20] Production.INFO: count ==14659 [2025-02-17 00:25:29] Production.ERROR: pbx CDR StartTime 2025-02-16 21:25:06 - End Time 2025-02-17 00:25:06 [2025-02-17 00:25:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492046', 'tblTempUsageDetail_20' ) start [2025-02-17 00:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492046', 'tblTempUsageDetail_20' ) end [2025-02-17 00:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492046', 'tblTempVendorCDR_20' ) start [2025-02-17 00:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492046', 'tblTempVendorCDR_20' ) end [2025-02-17 00:25:30] Production.INFO: ProcessCDR(1,14492046,1,1,2) [2025-02-17 00:25:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:25:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:25:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492046', 'tblTempUsageDetail_20' ) start [2025-02-17 00:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492046', 'tblTempUsageDetail_20' ) end [2025-02-17 00:25:34] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:25:34] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:25:34] Production.INFO: ==30427== Releasing lock... [2025-02-17 00:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:25:34] Production.INFO: 138.25 MB #Memory Used# [2025-02-17 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:26:05 [end_date_ymd] => 2025-02-17 00:26:05 [RateCDR] => 1 ) [2025-02-17 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:26:05' and `end` < '2025-02-17 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:26:20] Production.INFO: count ==14487 [2025-02-17 00:26:29] Production.ERROR: pbx CDR StartTime 2025-02-16 21:26:05 - End Time 2025-02-17 00:26:05 [2025-02-17 00:26:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492051', 'tblTempUsageDetail_20' ) start [2025-02-17 00:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492051', 'tblTempUsageDetail_20' ) end [2025-02-17 00:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492051', 'tblTempVendorCDR_20' ) start [2025-02-17 00:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492051', 'tblTempVendorCDR_20' ) end [2025-02-17 00:26:30] Production.INFO: ProcessCDR(1,14492051,1,1,2) [2025-02-17 00:26:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:26:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:26:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:26:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492051', 'tblTempUsageDetail_20' ) start [2025-02-17 00:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492051', 'tblTempUsageDetail_20' ) end [2025-02-17 00:26:34] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:26:34] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:26:34] Production.INFO: ==30509== Releasing lock... [2025-02-17 00:26:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:26:34] Production.INFO: 137 MB #Memory Used# [2025-02-17 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:27:05 [end_date_ymd] => 2025-02-17 00:27:05 [RateCDR] => 1 ) [2025-02-17 00:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:27:05' and `end` < '2025-02-17 00:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:27:19] Production.INFO: count ==14314 [2025-02-17 00:27:28] Production.ERROR: pbx CDR StartTime 2025-02-16 21:27:05 - End Time 2025-02-17 00:27:05 [2025-02-17 00:27:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492056', 'tblTempUsageDetail_20' ) start [2025-02-17 00:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492056', 'tblTempUsageDetail_20' ) end [2025-02-17 00:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492056', 'tblTempVendorCDR_20' ) start [2025-02-17 00:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492056', 'tblTempVendorCDR_20' ) end [2025-02-17 00:27:28] Production.INFO: ProcessCDR(1,14492056,1,1,2) [2025-02-17 00:27:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:27:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:27:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492056', 'tblTempUsageDetail_20' ) start [2025-02-17 00:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492056', 'tblTempUsageDetail_20' ) end [2025-02-17 00:27:32] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:27:32] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:27:32] Production.INFO: ==30633== Releasing lock... [2025-02-17 00:27:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:27:32] Production.INFO: 135.75 MB #Memory Used# [2025-02-17 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:28:05 [end_date_ymd] => 2025-02-17 00:28:05 [RateCDR] => 1 ) [2025-02-17 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:28:05' and `end` < '2025-02-17 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:28:19] Production.INFO: count ==14158 [2025-02-17 00:28:28] Production.ERROR: pbx CDR StartTime 2025-02-16 21:28:05 - End Time 2025-02-17 00:28:05 [2025-02-17 00:28:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492061', 'tblTempUsageDetail_20' ) start [2025-02-17 00:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492061', 'tblTempUsageDetail_20' ) end [2025-02-17 00:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492061', 'tblTempVendorCDR_20' ) start [2025-02-17 00:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492061', 'tblTempVendorCDR_20' ) end [2025-02-17 00:28:28] Production.INFO: ProcessCDR(1,14492061,1,1,2) [2025-02-17 00:28:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:28:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:28:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:28:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492061', 'tblTempUsageDetail_20' ) start [2025-02-17 00:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492061', 'tblTempUsageDetail_20' ) end [2025-02-17 00:28:32] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:28:32] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:28:32] Production.INFO: ==30720== Releasing lock... [2025-02-17 00:28:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:28:32] Production.INFO: 134.5 MB #Memory Used# [2025-02-17 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:29:05 [end_date_ymd] => 2025-02-17 00:29:05 [RateCDR] => 1 ) [2025-02-17 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:29:05' and `end` < '2025-02-17 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:29:20] Production.INFO: count ==13971 [2025-02-17 00:29:28] Production.ERROR: pbx CDR StartTime 2025-02-16 21:29:05 - End Time 2025-02-17 00:29:05 [2025-02-17 00:29:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492066', 'tblTempUsageDetail_20' ) start [2025-02-17 00:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492066', 'tblTempUsageDetail_20' ) end [2025-02-17 00:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492066', 'tblTempVendorCDR_20' ) start [2025-02-17 00:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492066', 'tblTempVendorCDR_20' ) end [2025-02-17 00:29:29] Production.INFO: ProcessCDR(1,14492066,1,1,2) [2025-02-17 00:29:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:29:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:29:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:29:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492066', 'tblTempUsageDetail_20' ) start [2025-02-17 00:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492066', 'tblTempUsageDetail_20' ) end [2025-02-17 00:29:32] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:29:32] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:29:32] Production.INFO: ==30803== Releasing lock... [2025-02-17 00:29:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:29:32] Production.INFO: 133 MB #Memory Used# [2025-02-17 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:30:05 [end_date_ymd] => 2025-02-17 00:30:05 [RateCDR] => 1 ) [2025-02-17 00:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:30:05' and `end` < '2025-02-17 00:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:30:20] Production.INFO: count ==13809 [2025-02-17 00:30:28] Production.ERROR: pbx CDR StartTime 2025-02-16 21:30:05 - End Time 2025-02-17 00:30:05 [2025-02-17 00:30:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492072', 'tblTempUsageDetail_20' ) start [2025-02-17 00:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492072', 'tblTempUsageDetail_20' ) end [2025-02-17 00:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492072', 'tblTempVendorCDR_20' ) start [2025-02-17 00:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492072', 'tblTempVendorCDR_20' ) end [2025-02-17 00:30:28] Production.INFO: ProcessCDR(1,14492072,1,1,2) [2025-02-17 00:30:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:30:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:30:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:30:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492072', 'tblTempUsageDetail_20' ) start [2025-02-17 00:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492072', 'tblTempUsageDetail_20' ) end [2025-02-17 00:30:31] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:30:31] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:30:31] Production.INFO: ==30886== Releasing lock... [2025-02-17 00:30:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:30:31] Production.INFO: 131.75 MB #Memory Used# [2025-02-17 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:31:05 [end_date_ymd] => 2025-02-17 00:31:05 [RateCDR] => 1 ) [2025-02-17 00:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:31:05' and `end` < '2025-02-17 00:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:31:20] Production.INFO: count ==13683 [2025-02-17 00:31:29] Production.ERROR: pbx CDR StartTime 2025-02-16 21:31:05 - End Time 2025-02-17 00:31:05 [2025-02-17 00:31:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492077', 'tblTempUsageDetail_20' ) start [2025-02-17 00:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492077', 'tblTempUsageDetail_20' ) end [2025-02-17 00:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492077', 'tblTempVendorCDR_20' ) start [2025-02-17 00:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492077', 'tblTempVendorCDR_20' ) end [2025-02-17 00:31:29] Production.INFO: ProcessCDR(1,14492077,1,1,2) [2025-02-17 00:31:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:31:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:31:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:31:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492077', 'tblTempUsageDetail_20' ) start [2025-02-17 00:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492077', 'tblTempUsageDetail_20' ) end [2025-02-17 00:31:33] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:31:33] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:31:33] Production.INFO: ==30975== Releasing lock... [2025-02-17 00:31:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:31:33] Production.INFO: 131 MB #Memory Used# [2025-02-17 00:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:32:04 [end_date_ymd] => 2025-02-17 00:32:04 [RateCDR] => 1 ) [2025-02-17 00:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:32:04' and `end` < '2025-02-17 00:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:32:21] Production.INFO: count ==13529 [2025-02-17 00:32:29] Production.ERROR: pbx CDR StartTime 2025-02-16 21:32:04 - End Time 2025-02-17 00:32:04 [2025-02-17 00:32:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492082', 'tblTempUsageDetail_20' ) start [2025-02-17 00:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492082', 'tblTempUsageDetail_20' ) end [2025-02-17 00:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492082', 'tblTempVendorCDR_20' ) start [2025-02-17 00:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492082', 'tblTempVendorCDR_20' ) end [2025-02-17 00:32:30] Production.INFO: ProcessCDR(1,14492082,1,1,2) [2025-02-17 00:32:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:32:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:32:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:32:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492082', 'tblTempUsageDetail_20' ) start [2025-02-17 00:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492082', 'tblTempUsageDetail_20' ) end [2025-02-17 00:32:34] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:32:34] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:32:34] Production.INFO: ==31056== Releasing lock... [2025-02-17 00:32:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:32:34] Production.INFO: 129.75 MB #Memory Used# [2025-02-17 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:33:05 [end_date_ymd] => 2025-02-17 00:33:05 [RateCDR] => 1 ) [2025-02-17 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:33:05' and `end` < '2025-02-17 00:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:33:19] Production.INFO: count ==13370 [2025-02-17 00:33:27] Production.ERROR: pbx CDR StartTime 2025-02-16 21:33:05 - End Time 2025-02-17 00:33:05 [2025-02-17 00:33:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492087', 'tblTempUsageDetail_20' ) start [2025-02-17 00:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492087', 'tblTempUsageDetail_20' ) end [2025-02-17 00:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492087', 'tblTempVendorCDR_20' ) start [2025-02-17 00:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492087', 'tblTempVendorCDR_20' ) end [2025-02-17 00:33:28] Production.INFO: ProcessCDR(1,14492087,1,1,2) [2025-02-17 00:33:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:33:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:33:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:33:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492087', 'tblTempUsageDetail_20' ) start [2025-02-17 00:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492087', 'tblTempUsageDetail_20' ) end [2025-02-17 00:33:32] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:33:32] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:33:32] Production.INFO: ==31144== Releasing lock... [2025-02-17 00:33:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:33:32] Production.INFO: 128.5 MB #Memory Used# [2025-02-17 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:34:05 [end_date_ymd] => 2025-02-17 00:34:05 [RateCDR] => 1 ) [2025-02-17 00:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:34:05' and `end` < '2025-02-17 00:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:34:20] Production.INFO: count ==13282 [2025-02-17 00:34:28] Production.ERROR: pbx CDR StartTime 2025-02-16 21:34:05 - End Time 2025-02-17 00:34:05 [2025-02-17 00:34:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492092', 'tblTempUsageDetail_20' ) start [2025-02-17 00:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492092', 'tblTempUsageDetail_20' ) end [2025-02-17 00:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492092', 'tblTempVendorCDR_20' ) start [2025-02-17 00:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492092', 'tblTempVendorCDR_20' ) end [2025-02-17 00:34:29] Production.INFO: ProcessCDR(1,14492092,1,1,2) [2025-02-17 00:34:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:34:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:34:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:34:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492092', 'tblTempUsageDetail_20' ) start [2025-02-17 00:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492092', 'tblTempUsageDetail_20' ) end [2025-02-17 00:34:32] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:34:32] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:34:32] Production.INFO: ==31229== Releasing lock... [2025-02-17 00:34:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:34:32] Production.INFO: 128 MB #Memory Used# [2025-02-17 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:35:05 [end_date_ymd] => 2025-02-17 00:35:05 [RateCDR] => 1 ) [2025-02-17 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:35:05' and `end` < '2025-02-17 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:35:19] Production.INFO: count ==13115 [2025-02-17 00:35:28] Production.ERROR: pbx CDR StartTime 2025-02-16 21:35:05 - End Time 2025-02-17 00:35:05 [2025-02-17 00:35:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492097', 'tblTempUsageDetail_20' ) start [2025-02-17 00:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492097', 'tblTempUsageDetail_20' ) end [2025-02-17 00:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492097', 'tblTempVendorCDR_20' ) start [2025-02-17 00:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492097', 'tblTempVendorCDR_20' ) end [2025-02-17 00:35:28] Production.INFO: ProcessCDR(1,14492097,1,1,2) [2025-02-17 00:35:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:35:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:35:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492097', 'tblTempUsageDetail_20' ) start [2025-02-17 00:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492097', 'tblTempUsageDetail_20' ) end [2025-02-17 00:35:32] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:35:32] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:35:32] Production.INFO: ==31313== Releasing lock... [2025-02-17 00:35:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:35:32] Production.INFO: 126.75 MB #Memory Used# [2025-02-17 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:36:05 [end_date_ymd] => 2025-02-17 00:36:05 [RateCDR] => 1 ) [2025-02-17 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:36:05' and `end` < '2025-02-17 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:36:21] Production.INFO: count ==12955 [2025-02-17 00:36:29] Production.ERROR: pbx CDR StartTime 2025-02-16 21:36:05 - End Time 2025-02-17 00:36:05 [2025-02-17 00:36:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492102', 'tblTempUsageDetail_20' ) start [2025-02-17 00:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492102', 'tblTempUsageDetail_20' ) end [2025-02-17 00:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492102', 'tblTempVendorCDR_20' ) start [2025-02-17 00:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492102', 'tblTempVendorCDR_20' ) end [2025-02-17 00:36:29] Production.INFO: ProcessCDR(1,14492102,1,1,2) [2025-02-17 00:36:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:36:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:36:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:36:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:36:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492102', 'tblTempUsageDetail_20' ) start [2025-02-17 00:36:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492102', 'tblTempUsageDetail_20' ) end [2025-02-17 00:36:34] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:36:34] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:36:34] Production.INFO: ==31396== Releasing lock... [2025-02-17 00:36:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:36:34] Production.INFO: 125.5 MB #Memory Used# [2025-02-17 00:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:37:06 [end_date_ymd] => 2025-02-17 00:37:06 [RateCDR] => 1 ) [2025-02-17 00:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:37:06' and `end` < '2025-02-17 00:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:37:20] Production.INFO: count ==12780 [2025-02-17 00:37:28] Production.ERROR: pbx CDR StartTime 2025-02-16 21:37:06 - End Time 2025-02-17 00:37:06 [2025-02-17 00:37:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492107', 'tblTempUsageDetail_20' ) start [2025-02-17 00:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492107', 'tblTempUsageDetail_20' ) end [2025-02-17 00:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492107', 'tblTempVendorCDR_20' ) start [2025-02-17 00:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492107', 'tblTempVendorCDR_20' ) end [2025-02-17 00:37:28] Production.INFO: ProcessCDR(1,14492107,1,1,2) [2025-02-17 00:37:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:37:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:37:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:37:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492107', 'tblTempUsageDetail_20' ) start [2025-02-17 00:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492107', 'tblTempUsageDetail_20' ) end [2025-02-17 00:37:31] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:37:31] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:37:31] Production.INFO: ==31484== Releasing lock... [2025-02-17 00:37:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:37:31] Production.INFO: 124.25 MB #Memory Used# [2025-02-17 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:38:05 [end_date_ymd] => 2025-02-17 00:38:05 [RateCDR] => 1 ) [2025-02-17 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:38:05' and `end` < '2025-02-17 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:38:21] Production.INFO: count ==12623 [2025-02-17 00:38:29] Production.ERROR: pbx CDR StartTime 2025-02-16 21:38:05 - End Time 2025-02-17 00:38:05 [2025-02-17 00:38:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492112', 'tblTempUsageDetail_20' ) start [2025-02-17 00:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492112', 'tblTempUsageDetail_20' ) end [2025-02-17 00:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492112', 'tblTempVendorCDR_20' ) start [2025-02-17 00:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492112', 'tblTempVendorCDR_20' ) end [2025-02-17 00:38:30] Production.INFO: ProcessCDR(1,14492112,1,1,2) [2025-02-17 00:38:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:38:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:38:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:38:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492112', 'tblTempUsageDetail_20' ) start [2025-02-17 00:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492112', 'tblTempUsageDetail_20' ) end [2025-02-17 00:38:33] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:38:33] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:38:33] Production.INFO: ==31560== Releasing lock... [2025-02-17 00:38:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:38:33] Production.INFO: 123 MB #Memory Used# [2025-02-17 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:39:05 [end_date_ymd] => 2025-02-17 00:39:05 [RateCDR] => 1 ) [2025-02-17 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:39:05' and `end` < '2025-02-17 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:39:19] Production.INFO: count ==12488 [2025-02-17 00:39:27] Production.ERROR: pbx CDR StartTime 2025-02-16 21:39:05 - End Time 2025-02-17 00:39:05 [2025-02-17 00:39:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492117', 'tblTempUsageDetail_20' ) start [2025-02-17 00:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492117', 'tblTempUsageDetail_20' ) end [2025-02-17 00:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492117', 'tblTempVendorCDR_20' ) start [2025-02-17 00:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492117', 'tblTempVendorCDR_20' ) end [2025-02-17 00:39:27] Production.INFO: ProcessCDR(1,14492117,1,1,2) [2025-02-17 00:39:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:39:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:39:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:39:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492117', 'tblTempUsageDetail_20' ) start [2025-02-17 00:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492117', 'tblTempUsageDetail_20' ) end [2025-02-17 00:39:30] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:39:30] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:39:30] Production.INFO: ==31647== Releasing lock... [2025-02-17 00:39:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:39:30] Production.INFO: 122 MB #Memory Used# [2025-02-17 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:40:06 [end_date_ymd] => 2025-02-17 00:40:06 [RateCDR] => 1 ) [2025-02-17 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-02-16 21:40:06' and `end` < '2025-02-17 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-02-17 00:40:20] Production.INFO: count ==12320 [2025-02-17 00:40:27] Production.ERROR: pbx CDR StartTime 2025-02-16 21:40:06 - End Time 2025-02-17 00:40:06 [2025-02-17 00:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492123', 'tblTempUsageDetail_20' ) start [2025-02-17 00:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492123', 'tblTempUsageDetail_20' ) end [2025-02-17 00:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492123', 'tblTempVendorCDR_20' ) start [2025-02-17 00:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492123', 'tblTempVendorCDR_20' ) end [2025-02-17 00:40:28] Production.INFO: ProcessCDR(1,14492123,1,1,2) [2025-02-17 00:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492123', 'tblTempUsageDetail_20' ) start [2025-02-17 00:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492123', 'tblTempUsageDetail_20' ) end [2025-02-17 00:40:31] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:40:31] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:40:31] Production.INFO: ==31729== Releasing lock... [2025-02-17 00:40:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:40:31] Production.INFO: 120.75 MB #Memory Used# [2025-02-17 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:41:05 [end_date_ymd] => 2025-02-17 00:41:05 [RateCDR] => 1 ) [2025-02-17 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:41:05' and `end` < '2025-02-17 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:41:22] Production.INFO: count ==12161 [2025-02-17 00:41:31] Production.ERROR: pbx CDR StartTime 2025-02-16 21:41:05 - End Time 2025-02-17 00:41:05 [2025-02-17 00:41:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492128', 'tblTempUsageDetail_20' ) start [2025-02-17 00:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492128', 'tblTempUsageDetail_20' ) end [2025-02-17 00:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492128', 'tblTempVendorCDR_20' ) start [2025-02-17 00:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492128', 'tblTempVendorCDR_20' ) end [2025-02-17 00:41:31] Production.INFO: ProcessCDR(1,14492128,1,1,2) [2025-02-17 00:41:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:41:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:41:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:41:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:41:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492128', 'tblTempUsageDetail_20' ) start [2025-02-17 00:41:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492128', 'tblTempUsageDetail_20' ) end [2025-02-17 00:41:34] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:41:34] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:41:34] Production.INFO: ==31816== Releasing lock... [2025-02-17 00:41:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:41:34] Production.INFO: 119.5 MB #Memory Used# [2025-02-17 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:42:05 [end_date_ymd] => 2025-02-17 00:42:05 [RateCDR] => 1 ) [2025-02-17 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-02-16 21:42:05' and `end` < '2025-02-17 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-02-17 00:42:20] Production.INFO: count ==12001 [2025-02-17 00:42:28] Production.ERROR: pbx CDR StartTime 2025-02-16 21:42:05 - End Time 2025-02-17 00:42:05 [2025-02-17 00:42:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492133', 'tblTempUsageDetail_20' ) start [2025-02-17 00:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492133', 'tblTempUsageDetail_20' ) end [2025-02-17 00:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492133', 'tblTempVendorCDR_20' ) start [2025-02-17 00:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492133', 'tblTempVendorCDR_20' ) end [2025-02-17 00:42:29] Production.INFO: ProcessCDR(1,14492133,1,1,2) [2025-02-17 00:42:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:42:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:42:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:42:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492133', 'tblTempUsageDetail_20' ) start [2025-02-17 00:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492133', 'tblTempUsageDetail_20' ) end [2025-02-17 00:42:32] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:42:32] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:42:32] Production.INFO: ==31937== Releasing lock... [2025-02-17 00:42:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:42:32] Production.INFO: 118.25 MB #Memory Used# [2025-02-17 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:43:05 [end_date_ymd] => 2025-02-17 00:43:05 [RateCDR] => 1 ) [2025-02-17 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:43:05' and `end` < '2025-02-17 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:43:19] Production.INFO: count ==11838 [2025-02-17 00:43:26] Production.ERROR: pbx CDR StartTime 2025-02-16 21:43:05 - End Time 2025-02-17 00:43:05 [2025-02-17 00:43:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492138', 'tblTempUsageDetail_20' ) start [2025-02-17 00:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492138', 'tblTempUsageDetail_20' ) end [2025-02-17 00:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492138', 'tblTempVendorCDR_20' ) start [2025-02-17 00:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492138', 'tblTempVendorCDR_20' ) end [2025-02-17 00:43:26] Production.INFO: ProcessCDR(1,14492138,1,1,2) [2025-02-17 00:43:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:43:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:43:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:43:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492138', 'tblTempUsageDetail_20' ) start [2025-02-17 00:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492138', 'tblTempUsageDetail_20' ) end [2025-02-17 00:43:31] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:43:31] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:43:31] Production.INFO: ==32015== Releasing lock... [2025-02-17 00:43:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:43:31] Production.INFO: 117.25 MB #Memory Used# [2025-02-17 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:44:05 [end_date_ymd] => 2025-02-17 00:44:05 [RateCDR] => 1 ) [2025-02-17 00:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:44:05' and `end` < '2025-02-17 00:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:44:21] Production.INFO: count ==11673 [2025-02-17 00:44:29] Production.ERROR: pbx CDR StartTime 2025-02-16 21:44:05 - End Time 2025-02-17 00:44:05 [2025-02-17 00:44:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:44:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492143', 'tblTempUsageDetail_20' ) start [2025-02-17 00:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492143', 'tblTempUsageDetail_20' ) end [2025-02-17 00:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492143', 'tblTempVendorCDR_20' ) start [2025-02-17 00:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492143', 'tblTempVendorCDR_20' ) end [2025-02-17 00:44:30] Production.INFO: ProcessCDR(1,14492143,1,1,2) [2025-02-17 00:44:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:44:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:44:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:44:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:44:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492143', 'tblTempUsageDetail_20' ) start [2025-02-17 00:44:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492143', 'tblTempUsageDetail_20' ) end [2025-02-17 00:44:35] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:44:35] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:44:35] Production.INFO: ==32097== Releasing lock... [2025-02-17 00:44:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:44:35] Production.INFO: 115.75 MB #Memory Used# [2025-02-17 00:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:45:04 [end_date_ymd] => 2025-02-17 00:45:04 [RateCDR] => 1 ) [2025-02-17 00:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:45:04' and `end` < '2025-02-17 00:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:45:18] Production.INFO: count ==11548 [2025-02-17 00:45:26] Production.ERROR: pbx CDR StartTime 2025-02-16 21:45:04 - End Time 2025-02-17 00:45:04 [2025-02-17 00:45:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492148', 'tblTempUsageDetail_20' ) start [2025-02-17 00:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492148', 'tblTempUsageDetail_20' ) end [2025-02-17 00:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492148', 'tblTempVendorCDR_20' ) start [2025-02-17 00:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492148', 'tblTempVendorCDR_20' ) end [2025-02-17 00:45:26] Production.INFO: ProcessCDR(1,14492148,1,1,2) [2025-02-17 00:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:45:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:45:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:45:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492148', 'tblTempUsageDetail_20' ) start [2025-02-17 00:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492148', 'tblTempUsageDetail_20' ) end [2025-02-17 00:45:29] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:45:29] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:45:29] Production.INFO: ==32174== Releasing lock... [2025-02-17 00:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:45:29] Production.INFO: 115 MB #Memory Used# [2025-02-17 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:46:05 [end_date_ymd] => 2025-02-17 00:46:05 [RateCDR] => 1 ) [2025-02-17 00:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:46:05' and `end` < '2025-02-17 00:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:46:19] Production.INFO: count ==11379 [2025-02-17 00:46:26] Production.ERROR: pbx CDR StartTime 2025-02-16 21:46:05 - End Time 2025-02-17 00:46:05 [2025-02-17 00:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492153', 'tblTempUsageDetail_20' ) start [2025-02-17 00:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492153', 'tblTempUsageDetail_20' ) end [2025-02-17 00:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492153', 'tblTempVendorCDR_20' ) start [2025-02-17 00:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492153', 'tblTempVendorCDR_20' ) end [2025-02-17 00:46:26] Production.INFO: ProcessCDR(1,14492153,1,1,2) [2025-02-17 00:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492153', 'tblTempUsageDetail_20' ) start [2025-02-17 00:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492153', 'tblTempUsageDetail_20' ) end [2025-02-17 00:46:29] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:46:29] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:46:30] Production.INFO: ==32250== Releasing lock... [2025-02-17 00:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:46:30] Production.INFO: 113.75 MB #Memory Used# [2025-02-17 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:47:05 [end_date_ymd] => 2025-02-17 00:47:05 [RateCDR] => 1 ) [2025-02-17 00:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:47:05' and `end` < '2025-02-17 00:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:47:20] Production.INFO: count ==11182 [2025-02-17 00:47:27] Production.ERROR: pbx CDR StartTime 2025-02-16 21:47:05 - End Time 2025-02-17 00:47:05 [2025-02-17 00:47:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492158', 'tblTempUsageDetail_20' ) start [2025-02-17 00:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492158', 'tblTempUsageDetail_20' ) end [2025-02-17 00:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492158', 'tblTempVendorCDR_20' ) start [2025-02-17 00:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492158', 'tblTempVendorCDR_20' ) end [2025-02-17 00:47:27] Production.INFO: ProcessCDR(1,14492158,1,1,2) [2025-02-17 00:47:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:47:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:47:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:47:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492158', 'tblTempUsageDetail_20' ) start [2025-02-17 00:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492158', 'tblTempUsageDetail_20' ) end [2025-02-17 00:47:30] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:47:30] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:47:30] Production.INFO: ==32331== Releasing lock... [2025-02-17 00:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:47:30] Production.INFO: 112.25 MB #Memory Used# [2025-02-17 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:48:05 [end_date_ymd] => 2025-02-17 00:48:05 [RateCDR] => 1 ) [2025-02-17 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:48:05' and `end` < '2025-02-17 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:48:19] Production.INFO: count ==10998 [2025-02-17 00:48:25] Production.ERROR: pbx CDR StartTime 2025-02-16 21:48:05 - End Time 2025-02-17 00:48:05 [2025-02-17 00:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492163', 'tblTempUsageDetail_20' ) start [2025-02-17 00:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492163', 'tblTempUsageDetail_20' ) end [2025-02-17 00:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492163', 'tblTempVendorCDR_20' ) start [2025-02-17 00:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492163', 'tblTempVendorCDR_20' ) end [2025-02-17 00:48:26] Production.INFO: ProcessCDR(1,14492163,1,1,2) [2025-02-17 00:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492163', 'tblTempUsageDetail_20' ) start [2025-02-17 00:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492163', 'tblTempUsageDetail_20' ) end [2025-02-17 00:48:29] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:48:29] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:48:29] Production.INFO: ==32414== Releasing lock... [2025-02-17 00:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:48:29] Production.INFO: 110.75 MB #Memory Used# [2025-02-17 00:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:49:06 [end_date_ymd] => 2025-02-17 00:49:06 [RateCDR] => 1 ) [2025-02-17 00:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:49:06' and `end` < '2025-02-17 00:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:49:20] Production.INFO: count ==10835 [2025-02-17 00:49:26] Production.ERROR: pbx CDR StartTime 2025-02-16 21:49:06 - End Time 2025-02-17 00:49:06 [2025-02-17 00:49:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492168', 'tblTempUsageDetail_20' ) start [2025-02-17 00:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492168', 'tblTempUsageDetail_20' ) end [2025-02-17 00:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492168', 'tblTempVendorCDR_20' ) start [2025-02-17 00:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492168', 'tblTempVendorCDR_20' ) end [2025-02-17 00:49:27] Production.INFO: ProcessCDR(1,14492168,1,1,2) [2025-02-17 00:49:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492168', 'tblTempUsageDetail_20' ) start [2025-02-17 00:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492168', 'tblTempUsageDetail_20' ) end [2025-02-17 00:49:30] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:49:30] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:49:30] Production.INFO: ==32494== Releasing lock... [2025-02-17 00:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:49:30] Production.INFO: 109.5 MB #Memory Used# [2025-02-17 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:50:06 [end_date_ymd] => 2025-02-17 00:50:06 [RateCDR] => 1 ) [2025-02-17 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:50:06' and `end` < '2025-02-17 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:50:21] Production.INFO: count ==10701 [2025-02-17 00:50:28] Production.ERROR: pbx CDR StartTime 2025-02-16 21:50:06 - End Time 2025-02-17 00:50:06 [2025-02-17 00:50:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492174', 'tblTempUsageDetail_20' ) start [2025-02-17 00:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492174', 'tblTempUsageDetail_20' ) end [2025-02-17 00:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492174', 'tblTempVendorCDR_20' ) start [2025-02-17 00:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492174', 'tblTempVendorCDR_20' ) end [2025-02-17 00:50:28] Production.INFO: ProcessCDR(1,14492174,1,1,2) [2025-02-17 00:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:50:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:50:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:50:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492174', 'tblTempUsageDetail_20' ) start [2025-02-17 00:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492174', 'tblTempUsageDetail_20' ) end [2025-02-17 00:50:32] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:50:32] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:50:32] Production.INFO: ==32573== Releasing lock... [2025-02-17 00:50:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:50:32] Production.INFO: 108.5 MB #Memory Used# [2025-02-17 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:51:05 [end_date_ymd] => 2025-02-17 00:51:05 [RateCDR] => 1 ) [2025-02-17 00:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:51:05' and `end` < '2025-02-17 00:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:51:21] Production.INFO: count ==10546 [2025-02-17 00:51:27] Production.ERROR: pbx CDR StartTime 2025-02-16 21:51:05 - End Time 2025-02-17 00:51:05 [2025-02-17 00:51:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492179', 'tblTempUsageDetail_20' ) start [2025-02-17 00:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492179', 'tblTempUsageDetail_20' ) end [2025-02-17 00:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492179', 'tblTempVendorCDR_20' ) start [2025-02-17 00:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492179', 'tblTempVendorCDR_20' ) end [2025-02-17 00:51:28] Production.INFO: ProcessCDR(1,14492179,1,1,2) [2025-02-17 00:51:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:51:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:51:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:51:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492179', 'tblTempUsageDetail_20' ) start [2025-02-17 00:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492179', 'tblTempUsageDetail_20' ) end [2025-02-17 00:51:31] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:51:31] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:51:31] Production.INFO: ==32651== Releasing lock... [2025-02-17 00:51:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:51:31] Production.INFO: 107.5 MB #Memory Used# [2025-02-17 00:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:52:04 [end_date_ymd] => 2025-02-17 00:52:04 [RateCDR] => 1 ) [2025-02-17 00:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:52:04' and `end` < '2025-02-17 00:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:52:18] Production.INFO: count ==10408 [2025-02-17 00:52:24] Production.ERROR: pbx CDR StartTime 2025-02-16 21:52:04 - End Time 2025-02-17 00:52:04 [2025-02-17 00:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492184', 'tblTempUsageDetail_20' ) start [2025-02-17 00:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492184', 'tblTempUsageDetail_20' ) end [2025-02-17 00:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492184', 'tblTempVendorCDR_20' ) start [2025-02-17 00:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492184', 'tblTempVendorCDR_20' ) end [2025-02-17 00:52:25] Production.INFO: ProcessCDR(1,14492184,1,1,2) [2025-02-17 00:52:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492184', 'tblTempUsageDetail_20' ) start [2025-02-17 00:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492184', 'tblTempUsageDetail_20' ) end [2025-02-17 00:52:28] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:52:28] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:52:28] Production.INFO: ==32729== Releasing lock... [2025-02-17 00:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:52:28] Production.INFO: 106.5 MB #Memory Used# [2025-02-17 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:53:05 [end_date_ymd] => 2025-02-17 00:53:05 [RateCDR] => 1 ) [2025-02-17 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-02-16 21:53:05' and `end` < '2025-02-17 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-02-17 00:53:19] Production.INFO: count ==10263 [2025-02-17 00:53:26] Production.ERROR: pbx CDR StartTime 2025-02-16 21:53:05 - End Time 2025-02-17 00:53:05 [2025-02-17 00:53:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492189', 'tblTempUsageDetail_20' ) start [2025-02-17 00:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492189', 'tblTempUsageDetail_20' ) end [2025-02-17 00:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492189', 'tblTempVendorCDR_20' ) start [2025-02-17 00:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492189', 'tblTempVendorCDR_20' ) end [2025-02-17 00:53:26] Production.INFO: ProcessCDR(1,14492189,1,1,2) [2025-02-17 00:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492189', 'tblTempUsageDetail_20' ) start [2025-02-17 00:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492189', 'tblTempUsageDetail_20' ) end [2025-02-17 00:53:30] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:53:30] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:53:30] Production.INFO: ==356== Releasing lock... [2025-02-17 00:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:53:30] Production.INFO: 105.25 MB #Memory Used# [2025-02-17 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:54:05 [end_date_ymd] => 2025-02-17 00:54:05 [RateCDR] => 1 ) [2025-02-17 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:54:05' and `end` < '2025-02-17 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:54:20] Production.INFO: count ==10113 [2025-02-17 00:54:26] Production.ERROR: pbx CDR StartTime 2025-02-16 21:54:05 - End Time 2025-02-17 00:54:05 [2025-02-17 00:54:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492194', 'tblTempUsageDetail_20' ) start [2025-02-17 00:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492194', 'tblTempUsageDetail_20' ) end [2025-02-17 00:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492194', 'tblTempVendorCDR_20' ) start [2025-02-17 00:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492194', 'tblTempVendorCDR_20' ) end [2025-02-17 00:54:27] Production.INFO: ProcessCDR(1,14492194,1,1,2) [2025-02-17 00:54:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:54:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:54:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:54:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492194', 'tblTempUsageDetail_20' ) start [2025-02-17 00:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492194', 'tblTempUsageDetail_20' ) end [2025-02-17 00:54:30] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:54:30] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:54:30] Production.INFO: ==431== Releasing lock... [2025-02-17 00:54:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:54:30] Production.INFO: 104.25 MB #Memory Used# [2025-02-17 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:55:05 [end_date_ymd] => 2025-02-17 00:55:05 [RateCDR] => 1 ) [2025-02-17 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-02-16 21:55:05' and `end` < '2025-02-17 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-02-17 00:55:19] Production.INFO: count ==9944 [2025-02-17 00:55:25] Production.ERROR: pbx CDR StartTime 2025-02-16 21:55:05 - End Time 2025-02-17 00:55:05 [2025-02-17 00:55:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492199', 'tblTempUsageDetail_20' ) start [2025-02-17 00:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492199', 'tblTempUsageDetail_20' ) end [2025-02-17 00:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492199', 'tblTempVendorCDR_20' ) start [2025-02-17 00:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492199', 'tblTempVendorCDR_20' ) end [2025-02-17 00:55:25] Production.INFO: ProcessCDR(1,14492199,1,1,2) [2025-02-17 00:55:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:55:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492199', 'tblTempUsageDetail_20' ) start [2025-02-17 00:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492199', 'tblTempUsageDetail_20' ) end [2025-02-17 00:55:29] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:55:29] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:55:29] Production.INFO: ==509== Releasing lock... [2025-02-17 00:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:55:29] Production.INFO: 103 MB #Memory Used# [2025-02-17 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:56:05 [end_date_ymd] => 2025-02-17 00:56:05 [RateCDR] => 1 ) [2025-02-17 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:56:05' and `end` < '2025-02-17 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:56:21] Production.INFO: count ==9784 [2025-02-17 00:56:26] Production.ERROR: pbx CDR StartTime 2025-02-16 21:56:05 - End Time 2025-02-17 00:56:05 [2025-02-17 00:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492204', 'tblTempUsageDetail_20' ) start [2025-02-17 00:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492204', 'tblTempUsageDetail_20' ) end [2025-02-17 00:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492204', 'tblTempVendorCDR_20' ) start [2025-02-17 00:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492204', 'tblTempVendorCDR_20' ) end [2025-02-17 00:56:27] Production.INFO: ProcessCDR(1,14492204,1,1,2) [2025-02-17 00:56:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:56:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:56:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492204', 'tblTempUsageDetail_20' ) start [2025-02-17 00:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492204', 'tblTempUsageDetail_20' ) end [2025-02-17 00:56:30] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:56:30] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:56:30] Production.INFO: ==587== Releasing lock... [2025-02-17 00:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:56:30] Production.INFO: 101.75 MB #Memory Used# [2025-02-17 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:57:05 [end_date_ymd] => 2025-02-17 00:57:05 [RateCDR] => 1 ) [2025-02-17 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:57:05' and `end` < '2025-02-17 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:57:20] Production.INFO: count ==9575 [2025-02-17 00:57:26] Production.ERROR: pbx CDR StartTime 2025-02-16 21:57:05 - End Time 2025-02-17 00:57:05 [2025-02-17 00:57:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492209', 'tblTempUsageDetail_20' ) start [2025-02-17 00:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492209', 'tblTempUsageDetail_20' ) end [2025-02-17 00:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492209', 'tblTempVendorCDR_20' ) start [2025-02-17 00:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492209', 'tblTempVendorCDR_20' ) end [2025-02-17 00:57:27] Production.INFO: ProcessCDR(1,14492209,1,1,2) [2025-02-17 00:57:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492209', 'tblTempUsageDetail_20' ) start [2025-02-17 00:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492209', 'tblTempUsageDetail_20' ) end [2025-02-17 00:57:30] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:57:30] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:57:30] Production.INFO: ==690== Releasing lock... [2025-02-17 00:57:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:57:30] Production.INFO: 100.25 MB #Memory Used# [2025-02-17 00:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:58:06 [end_date_ymd] => 2025-02-17 00:58:06 [RateCDR] => 1 ) [2025-02-17 00:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:58:06' and `end` < '2025-02-17 00:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:58:19] Production.INFO: count ==9404 [2025-02-17 00:58:25] Production.ERROR: pbx CDR StartTime 2025-02-16 21:58:06 - End Time 2025-02-17 00:58:06 [2025-02-17 00:58:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492214', 'tblTempUsageDetail_20' ) start [2025-02-17 00:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492214', 'tblTempUsageDetail_20' ) end [2025-02-17 00:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492214', 'tblTempVendorCDR_20' ) start [2025-02-17 00:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492214', 'tblTempVendorCDR_20' ) end [2025-02-17 00:58:25] Production.INFO: ProcessCDR(1,14492214,1,1,2) [2025-02-17 00:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492214', 'tblTempUsageDetail_20' ) start [2025-02-17 00:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492214', 'tblTempUsageDetail_20' ) end [2025-02-17 00:58:29] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:58:29] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:58:29] Production.INFO: ==812== Releasing lock... [2025-02-17 00:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:58:29] Production.INFO: 99 MB #Memory Used# [2025-02-17 00:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 21:59:05 [end_date_ymd] => 2025-02-17 00:59:05 [RateCDR] => 1 ) [2025-02-17 00:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 21:59:05' and `end` < '2025-02-17 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 00:59:19] Production.INFO: count ==9246 [2025-02-17 00:59:25] Production.ERROR: pbx CDR StartTime 2025-02-16 21:59:05 - End Time 2025-02-17 00:59:05 [2025-02-17 00:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 00:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492219', 'tblTempUsageDetail_20' ) start [2025-02-17 00:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492219', 'tblTempUsageDetail_20' ) end [2025-02-17 00:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492219', 'tblTempVendorCDR_20' ) start [2025-02-17 00:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492219', 'tblTempVendorCDR_20' ) end [2025-02-17 00:59:25] Production.INFO: ProcessCDR(1,14492219,1,1,2) [2025-02-17 00:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 00:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 00:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492219', 'tblTempUsageDetail_20' ) start [2025-02-17 00:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492219', 'tblTempUsageDetail_20' ) end [2025-02-17 00:59:28] Production.ERROR: pbx prc_insertCDR start [2025-02-17 00:59:28] Production.ERROR: pbx prc_insertCDR end [2025-02-17 00:59:28] Production.INFO: ==887== Releasing lock... [2025-02-17 00:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 00:59:28] Production.INFO: 97.75 MB #Memory Used# [2025-02-17 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:00:05 [end_date_ymd] => 2025-02-17 01:00:05 [RateCDR] => 1 ) [2025-02-17 01:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:00:05' and `end` < '2025-02-17 01:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:00:19] Production.INFO: count ==9156 [2025-02-17 01:00:24] Production.ERROR: pbx CDR StartTime 2025-02-16 22:00:05 - End Time 2025-02-17 01:00:05 [2025-02-17 01:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492225', 'tblTempUsageDetail_20' ) start [2025-02-17 01:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492225', 'tblTempUsageDetail_20' ) end [2025-02-17 01:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492225', 'tblTempVendorCDR_20' ) start [2025-02-17 01:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492225', 'tblTempVendorCDR_20' ) end [2025-02-17 01:00:25] Production.INFO: ProcessCDR(1,14492225,1,1,2) [2025-02-17 01:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492225', 'tblTempUsageDetail_20' ) start [2025-02-17 01:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492225', 'tblTempUsageDetail_20' ) end [2025-02-17 01:00:28] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:00:28] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:00:28] Production.INFO: ==970== Releasing lock... [2025-02-17 01:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:00:28] Production.INFO: 97 MB #Memory Used# [2025-02-17 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:01:05 [end_date_ymd] => 2025-02-17 01:01:05 [RateCDR] => 1 ) [2025-02-17 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-02-16 22:01:05' and `end` < '2025-02-17 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-02-17 01:01:19] Production.INFO: count ==9019 [2025-02-17 01:01:24] Production.ERROR: pbx CDR StartTime 2025-02-16 22:01:05 - End Time 2025-02-17 01:01:05 [2025-02-17 01:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492230', 'tblTempUsageDetail_20' ) start [2025-02-17 01:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492230', 'tblTempUsageDetail_20' ) end [2025-02-17 01:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492230', 'tblTempVendorCDR_20' ) start [2025-02-17 01:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492230', 'tblTempVendorCDR_20' ) end [2025-02-17 01:01:25] Production.INFO: ProcessCDR(1,14492230,1,1,2) [2025-02-17 01:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492230', 'tblTempUsageDetail_20' ) start [2025-02-17 01:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492230', 'tblTempUsageDetail_20' ) end [2025-02-17 01:01:29] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:01:29] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:01:29] Production.INFO: ==1065== Releasing lock... [2025-02-17 01:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:01:29] Production.INFO: 96 MB #Memory Used# [2025-02-17 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:02:05 [end_date_ymd] => 2025-02-17 01:02:05 [RateCDR] => 1 ) [2025-02-17 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:02:05' and `end` < '2025-02-17 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:02:22] Production.INFO: count ==8843 [2025-02-17 01:02:27] Production.ERROR: pbx CDR StartTime 2025-02-16 22:02:05 - End Time 2025-02-17 01:02:05 [2025-02-17 01:02:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492235', 'tblTempUsageDetail_20' ) start [2025-02-17 01:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492235', 'tblTempUsageDetail_20' ) end [2025-02-17 01:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492235', 'tblTempVendorCDR_20' ) start [2025-02-17 01:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492235', 'tblTempVendorCDR_20' ) end [2025-02-17 01:02:28] Production.INFO: ProcessCDR(1,14492235,1,1,2) [2025-02-17 01:02:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:02:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:02:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492235', 'tblTempUsageDetail_20' ) start [2025-02-17 01:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492235', 'tblTempUsageDetail_20' ) end [2025-02-17 01:02:31] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:02:31] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:02:31] Production.INFO: ==1152== Releasing lock... [2025-02-17 01:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:02:31] Production.INFO: 94.75 MB #Memory Used# [2025-02-17 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:03:05 [end_date_ymd] => 2025-02-17 01:03:05 [RateCDR] => 1 ) [2025-02-17 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:03:05' and `end` < '2025-02-17 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:03:18] Production.INFO: count ==8662 [2025-02-17 01:03:24] Production.ERROR: pbx CDR StartTime 2025-02-16 22:03:05 - End Time 2025-02-17 01:03:05 [2025-02-17 01:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492240', 'tblTempUsageDetail_20' ) start [2025-02-17 01:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492240', 'tblTempUsageDetail_20' ) end [2025-02-17 01:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492240', 'tblTempVendorCDR_20' ) start [2025-02-17 01:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492240', 'tblTempVendorCDR_20' ) end [2025-02-17 01:03:24] Production.INFO: ProcessCDR(1,14492240,1,1,2) [2025-02-17 01:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492240', 'tblTempUsageDetail_20' ) start [2025-02-17 01:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492240', 'tblTempUsageDetail_20' ) end [2025-02-17 01:03:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:03:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:03:27] Production.INFO: ==1229== Releasing lock... [2025-02-17 01:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:03:27] Production.INFO: 93.25 MB #Memory Used# [2025-02-17 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:04:05 [end_date_ymd] => 2025-02-17 01:04:05 [RateCDR] => 1 ) [2025-02-17 01:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:04:05' and `end` < '2025-02-17 01:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:04:20] Production.INFO: count ==8499 [2025-02-17 01:04:25] Production.ERROR: pbx CDR StartTime 2025-02-16 22:04:05 - End Time 2025-02-17 01:04:05 [2025-02-17 01:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492245', 'tblTempUsageDetail_20' ) start [2025-02-17 01:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492245', 'tblTempUsageDetail_20' ) end [2025-02-17 01:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492245', 'tblTempVendorCDR_20' ) start [2025-02-17 01:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492245', 'tblTempVendorCDR_20' ) end [2025-02-17 01:04:25] Production.INFO: ProcessCDR(1,14492245,1,1,2) [2025-02-17 01:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492245', 'tblTempUsageDetail_20' ) start [2025-02-17 01:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492245', 'tblTempUsageDetail_20' ) end [2025-02-17 01:04:29] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:04:29] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:04:29] Production.INFO: ==1317== Releasing lock... [2025-02-17 01:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:04:29] Production.INFO: 92 MB #Memory Used# [2025-02-17 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:05:05 [end_date_ymd] => 2025-02-17 01:05:05 [RateCDR] => 1 ) [2025-02-17 01:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:05:05' and `end` < '2025-02-17 01:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:05:20] Production.INFO: count ==8399 [2025-02-17 01:05:25] Production.ERROR: pbx CDR StartTime 2025-02-16 22:05:05 - End Time 2025-02-17 01:05:05 [2025-02-17 01:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492250', 'tblTempUsageDetail_20' ) start [2025-02-17 01:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492250', 'tblTempUsageDetail_20' ) end [2025-02-17 01:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492250', 'tblTempVendorCDR_20' ) start [2025-02-17 01:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492250', 'tblTempVendorCDR_20' ) end [2025-02-17 01:05:25] Production.INFO: ProcessCDR(1,14492250,1,1,2) [2025-02-17 01:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492250', 'tblTempUsageDetail_20' ) start [2025-02-17 01:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492250', 'tblTempUsageDetail_20' ) end [2025-02-17 01:05:28] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:05:28] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:05:28] Production.INFO: ==1392== Releasing lock... [2025-02-17 01:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:05:28] Production.INFO: 91.25 MB #Memory Used# [2025-02-17 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:06:05 [end_date_ymd] => 2025-02-17 01:06:05 [RateCDR] => 1 ) [2025-02-17 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:06:05' and `end` < '2025-02-17 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:06:21] Production.INFO: count ==8251 [2025-02-17 01:06:26] Production.ERROR: pbx CDR StartTime 2025-02-16 22:06:05 - End Time 2025-02-17 01:06:05 [2025-02-17 01:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492255', 'tblTempUsageDetail_20' ) start [2025-02-17 01:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492255', 'tblTempUsageDetail_20' ) end [2025-02-17 01:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492255', 'tblTempVendorCDR_20' ) start [2025-02-17 01:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492255', 'tblTempVendorCDR_20' ) end [2025-02-17 01:06:26] Production.INFO: ProcessCDR(1,14492255,1,1,2) [2025-02-17 01:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492255', 'tblTempUsageDetail_20' ) start [2025-02-17 01:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492255', 'tblTempUsageDetail_20' ) end [2025-02-17 01:06:30] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:06:30] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:06:30] Production.INFO: ==1467== Releasing lock... [2025-02-17 01:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:06:30] Production.INFO: 90.25 MB #Memory Used# [2025-02-17 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:07:05 [end_date_ymd] => 2025-02-17 01:07:05 [RateCDR] => 1 ) [2025-02-17 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:07:05' and `end` < '2025-02-17 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:07:18] Production.INFO: count ==8067 [2025-02-17 01:07:23] Production.ERROR: pbx CDR StartTime 2025-02-16 22:07:05 - End Time 2025-02-17 01:07:05 [2025-02-17 01:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492260', 'tblTempUsageDetail_20' ) start [2025-02-17 01:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492260', 'tblTempUsageDetail_20' ) end [2025-02-17 01:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492260', 'tblTempVendorCDR_20' ) start [2025-02-17 01:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492260', 'tblTempVendorCDR_20' ) end [2025-02-17 01:07:24] Production.INFO: ProcessCDR(1,14492260,1,1,2) [2025-02-17 01:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492260', 'tblTempUsageDetail_20' ) start [2025-02-17 01:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492260', 'tblTempUsageDetail_20' ) end [2025-02-17 01:07:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:07:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:07:27] Production.INFO: ==1577== Releasing lock... [2025-02-17 01:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:07:27] Production.INFO: 88.75 MB #Memory Used# [2025-02-17 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:08:05 [end_date_ymd] => 2025-02-17 01:08:05 [RateCDR] => 1 ) [2025-02-17 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:08:05' and `end` < '2025-02-17 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:08:20] Production.INFO: count ==7997 [2025-02-17 01:08:24] Production.ERROR: pbx CDR StartTime 2025-02-16 22:08:05 - End Time 2025-02-17 01:08:05 [2025-02-17 01:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492265', 'tblTempUsageDetail_20' ) start [2025-02-17 01:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492265', 'tblTempUsageDetail_20' ) end [2025-02-17 01:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492265', 'tblTempVendorCDR_20' ) start [2025-02-17 01:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492265', 'tblTempVendorCDR_20' ) end [2025-02-17 01:08:25] Production.INFO: ProcessCDR(1,14492265,1,1,2) [2025-02-17 01:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492265', 'tblTempUsageDetail_20' ) start [2025-02-17 01:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492265', 'tblTempUsageDetail_20' ) end [2025-02-17 01:08:28] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:08:28] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:08:28] Production.INFO: ==1654== Releasing lock... [2025-02-17 01:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:08:28] Production.INFO: 88.25 MB #Memory Used# [2025-02-17 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:09:05 [end_date_ymd] => 2025-02-17 01:09:05 [RateCDR] => 1 ) [2025-02-17 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:09:05' and `end` < '2025-02-17 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:09:19] Production.INFO: count ==7850 [2025-02-17 01:09:24] Production.ERROR: pbx CDR StartTime 2025-02-16 22:09:05 - End Time 2025-02-17 01:09:05 [2025-02-17 01:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492270', 'tblTempUsageDetail_20' ) start [2025-02-17 01:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492270', 'tblTempUsageDetail_20' ) end [2025-02-17 01:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492270', 'tblTempVendorCDR_20' ) start [2025-02-17 01:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492270', 'tblTempVendorCDR_20' ) end [2025-02-17 01:09:24] Production.INFO: ProcessCDR(1,14492270,1,1,2) [2025-02-17 01:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492270', 'tblTempUsageDetail_20' ) start [2025-02-17 01:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492270', 'tblTempUsageDetail_20' ) end [2025-02-17 01:09:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:09:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:09:27] Production.INFO: ==1727== Releasing lock... [2025-02-17 01:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:09:27] Production.INFO: 87 MB #Memory Used# [2025-02-17 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:10:06 [end_date_ymd] => 2025-02-17 01:10:06 [RateCDR] => 1 ) [2025-02-17 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:10:06' and `end` < '2025-02-17 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:10:20] Production.INFO: count ==7666 [2025-02-17 01:10:25] Production.ERROR: pbx CDR StartTime 2025-02-16 22:10:06 - End Time 2025-02-17 01:10:06 [2025-02-17 01:10:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492275', 'tblTempUsageDetail_20' ) start [2025-02-17 01:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492275', 'tblTempUsageDetail_20' ) end [2025-02-17 01:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492275', 'tblTempVendorCDR_20' ) start [2025-02-17 01:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492275', 'tblTempVendorCDR_20' ) end [2025-02-17 01:10:25] Production.INFO: ProcessCDR(1,14492275,1,1,2) [2025-02-17 01:10:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492275', 'tblTempUsageDetail_20' ) start [2025-02-17 01:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492275', 'tblTempUsageDetail_20' ) end [2025-02-17 01:10:29] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:10:29] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:10:29] Production.INFO: ==1804== Releasing lock... [2025-02-17 01:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:10:29] Production.INFO: 85.75 MB #Memory Used# [2025-02-17 01:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:11:04 [end_date_ymd] => 2025-02-17 01:11:04 [RateCDR] => 1 ) [2025-02-17 01:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:11:04' and `end` < '2025-02-17 01:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:11:18] Production.INFO: count ==7504 [2025-02-17 01:11:22] Production.ERROR: pbx CDR StartTime 2025-02-16 22:11:04 - End Time 2025-02-17 01:11:04 [2025-02-17 01:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492281', 'tblTempUsageDetail_20' ) start [2025-02-17 01:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492281', 'tblTempUsageDetail_20' ) end [2025-02-17 01:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492281', 'tblTempVendorCDR_20' ) start [2025-02-17 01:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492281', 'tblTempVendorCDR_20' ) end [2025-02-17 01:11:23] Production.INFO: ProcessCDR(1,14492281,1,1,2) [2025-02-17 01:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492281', 'tblTempUsageDetail_20' ) start [2025-02-17 01:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492281', 'tblTempUsageDetail_20' ) end [2025-02-17 01:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:11:26] Production.INFO: ==1886== Releasing lock... [2025-02-17 01:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:11:26] Production.INFO: 84.5 MB #Memory Used# [2025-02-17 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:12:05 [end_date_ymd] => 2025-02-17 01:12:05 [RateCDR] => 1 ) [2025-02-17 01:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:12:05' and `end` < '2025-02-17 01:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:12:19] Production.INFO: count ==7385 [2025-02-17 01:12:23] Production.ERROR: pbx CDR StartTime 2025-02-16 22:12:05 - End Time 2025-02-17 01:12:05 [2025-02-17 01:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492286', 'tblTempUsageDetail_20' ) start [2025-02-17 01:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492286', 'tblTempUsageDetail_20' ) end [2025-02-17 01:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492286', 'tblTempVendorCDR_20' ) start [2025-02-17 01:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492286', 'tblTempVendorCDR_20' ) end [2025-02-17 01:12:24] Production.INFO: ProcessCDR(1,14492286,1,1,2) [2025-02-17 01:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492286', 'tblTempUsageDetail_20' ) start [2025-02-17 01:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492286', 'tblTempUsageDetail_20' ) end [2025-02-17 01:12:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:12:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:12:27] Production.INFO: ==1966== Releasing lock... [2025-02-17 01:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:12:27] Production.INFO: 83.75 MB #Memory Used# [2025-02-17 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:13:05 [end_date_ymd] => 2025-02-17 01:13:05 [RateCDR] => 1 ) [2025-02-17 01:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:13:05' and `end` < '2025-02-17 01:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:13:18] Production.INFO: count ==7236 [2025-02-17 01:13:23] Production.ERROR: pbx CDR StartTime 2025-02-16 22:13:05 - End Time 2025-02-17 01:13:05 [2025-02-17 01:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492291', 'tblTempUsageDetail_20' ) start [2025-02-17 01:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492291', 'tblTempUsageDetail_20' ) end [2025-02-17 01:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492291', 'tblTempVendorCDR_20' ) start [2025-02-17 01:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492291', 'tblTempVendorCDR_20' ) end [2025-02-17 01:13:23] Production.INFO: ProcessCDR(1,14492291,1,1,2) [2025-02-17 01:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492291', 'tblTempUsageDetail_20' ) start [2025-02-17 01:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492291', 'tblTempUsageDetail_20' ) end [2025-02-17 01:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:13:26] Production.INFO: ==2076== Releasing lock... [2025-02-17 01:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:13:26] Production.INFO: 82.5 MB #Memory Used# [2025-02-17 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:14:05 [end_date_ymd] => 2025-02-17 01:14:05 [RateCDR] => 1 ) [2025-02-17 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:14:05' and `end` < '2025-02-17 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:14:20] Production.INFO: count ==7105 [2025-02-17 01:14:25] Production.ERROR: pbx CDR StartTime 2025-02-16 22:14:05 - End Time 2025-02-17 01:14:05 [2025-02-17 01:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492296', 'tblTempUsageDetail_20' ) start [2025-02-17 01:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492296', 'tblTempUsageDetail_20' ) end [2025-02-17 01:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492296', 'tblTempVendorCDR_20' ) start [2025-02-17 01:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492296', 'tblTempVendorCDR_20' ) end [2025-02-17 01:14:25] Production.INFO: ProcessCDR(1,14492296,1,1,2) [2025-02-17 01:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492296', 'tblTempUsageDetail_20' ) start [2025-02-17 01:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492296', 'tblTempUsageDetail_20' ) end [2025-02-17 01:14:29] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:14:29] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:14:29] Production.INFO: ==2153== Releasing lock... [2025-02-17 01:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:14:29] Production.INFO: 81.5 MB #Memory Used# [2025-02-17 01:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:15:04 [end_date_ymd] => 2025-02-17 01:15:04 [RateCDR] => 1 ) [2025-02-17 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-02-16 22:15:04' and `end` < '2025-02-17 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-02-17 01:15:18] Production.INFO: count ==7029 [2025-02-17 01:15:22] Production.ERROR: pbx CDR StartTime 2025-02-16 22:15:04 - End Time 2025-02-17 01:15:04 [2025-02-17 01:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492301', 'tblTempUsageDetail_20' ) start [2025-02-17 01:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492301', 'tblTempUsageDetail_20' ) end [2025-02-17 01:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492301', 'tblTempVendorCDR_20' ) start [2025-02-17 01:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492301', 'tblTempVendorCDR_20' ) end [2025-02-17 01:15:22] Production.INFO: ProcessCDR(1,14492301,1,1,2) [2025-02-17 01:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492301', 'tblTempUsageDetail_20' ) start [2025-02-17 01:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492301', 'tblTempUsageDetail_20' ) end [2025-02-17 01:15:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:15:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:15:26] Production.INFO: ==2232== Releasing lock... [2025-02-17 01:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:15:26] Production.INFO: 80.5 MB #Memory Used# [2025-02-17 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:16:05 [end_date_ymd] => 2025-02-17 01:16:05 [RateCDR] => 1 ) [2025-02-17 01:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:16:05' and `end` < '2025-02-17 01:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:16:19] Production.INFO: count ==6950 [2025-02-17 01:16:23] Production.ERROR: pbx CDR StartTime 2025-02-16 22:16:05 - End Time 2025-02-17 01:16:05 [2025-02-17 01:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492306', 'tblTempUsageDetail_20' ) start [2025-02-17 01:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492306', 'tblTempUsageDetail_20' ) end [2025-02-17 01:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492306', 'tblTempVendorCDR_20' ) start [2025-02-17 01:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492306', 'tblTempVendorCDR_20' ) end [2025-02-17 01:16:23] Production.INFO: ProcessCDR(1,14492306,1,1,2) [2025-02-17 01:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492306', 'tblTempUsageDetail_20' ) start [2025-02-17 01:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492306', 'tblTempUsageDetail_20' ) end [2025-02-17 01:16:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:16:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:16:26] Production.INFO: ==2310== Releasing lock... [2025-02-17 01:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:16:26] Production.INFO: 80 MB #Memory Used# [2025-02-17 01:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:17:04 [end_date_ymd] => 2025-02-17 01:17:04 [RateCDR] => 1 ) [2025-02-17 01:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:17:04' and `end` < '2025-02-17 01:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:17:18] Production.INFO: count ==6868 [2025-02-17 01:17:22] Production.ERROR: pbx CDR StartTime 2025-02-16 22:17:04 - End Time 2025-02-17 01:17:04 [2025-02-17 01:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492311', 'tblTempUsageDetail_20' ) start [2025-02-17 01:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492311', 'tblTempUsageDetail_20' ) end [2025-02-17 01:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492311', 'tblTempVendorCDR_20' ) start [2025-02-17 01:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492311', 'tblTempVendorCDR_20' ) end [2025-02-17 01:17:22] Production.INFO: ProcessCDR(1,14492311,1,1,2) [2025-02-17 01:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492311', 'tblTempUsageDetail_20' ) start [2025-02-17 01:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492311', 'tblTempUsageDetail_20' ) end [2025-02-17 01:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:17:26] Production.INFO: ==2385== Releasing lock... [2025-02-17 01:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:17:26] Production.INFO: 79.25 MB #Memory Used# [2025-02-17 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:18:05 [end_date_ymd] => 2025-02-17 01:18:05 [RateCDR] => 1 ) [2025-02-17 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:18:05' and `end` < '2025-02-17 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:18:21] Production.INFO: count ==6784 [2025-02-17 01:18:25] Production.ERROR: pbx CDR StartTime 2025-02-16 22:18:05 - End Time 2025-02-17 01:18:05 [2025-02-17 01:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492316', 'tblTempUsageDetail_20' ) start [2025-02-17 01:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492316', 'tblTempUsageDetail_20' ) end [2025-02-17 01:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492316', 'tblTempVendorCDR_20' ) start [2025-02-17 01:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492316', 'tblTempVendorCDR_20' ) end [2025-02-17 01:18:25] Production.INFO: ProcessCDR(1,14492316,1,1,2) [2025-02-17 01:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492316', 'tblTempUsageDetail_20' ) start [2025-02-17 01:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492316', 'tblTempUsageDetail_20' ) end [2025-02-17 01:18:28] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:18:28] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:18:28] Production.INFO: ==2461== Releasing lock... [2025-02-17 01:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:18:28] Production.INFO: 78.75 MB #Memory Used# [2025-02-17 01:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:19:06 [end_date_ymd] => 2025-02-17 01:19:06 [RateCDR] => 1 ) [2025-02-17 01:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:19:06' and `end` < '2025-02-17 01:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:19:19] Production.INFO: count ==6707 [2025-02-17 01:19:23] Production.ERROR: pbx CDR StartTime 2025-02-16 22:19:06 - End Time 2025-02-17 01:19:06 [2025-02-17 01:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492321', 'tblTempUsageDetail_20' ) start [2025-02-17 01:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492321', 'tblTempUsageDetail_20' ) end [2025-02-17 01:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492321', 'tblTempVendorCDR_20' ) start [2025-02-17 01:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492321', 'tblTempVendorCDR_20' ) end [2025-02-17 01:19:24] Production.INFO: ProcessCDR(1,14492321,1,1,2) [2025-02-17 01:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492321', 'tblTempUsageDetail_20' ) start [2025-02-17 01:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492321', 'tblTempUsageDetail_20' ) end [2025-02-17 01:19:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:19:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:19:27] Production.INFO: ==2535== Releasing lock... [2025-02-17 01:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:19:27] Production.INFO: 78 MB #Memory Used# [2025-02-17 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:20:06 [end_date_ymd] => 2025-02-17 01:20:06 [RateCDR] => 1 ) [2025-02-17 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-02-16 22:20:06' and `end` < '2025-02-17 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-02-17 01:20:20] Production.INFO: count ==6626 [2025-02-17 01:20:24] Production.ERROR: pbx CDR StartTime 2025-02-16 22:20:06 - End Time 2025-02-17 01:20:06 [2025-02-17 01:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492327', 'tblTempUsageDetail_20' ) start [2025-02-17 01:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492327', 'tblTempUsageDetail_20' ) end [2025-02-17 01:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492327', 'tblTempVendorCDR_20' ) start [2025-02-17 01:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492327', 'tblTempVendorCDR_20' ) end [2025-02-17 01:20:24] Production.INFO: ProcessCDR(1,14492327,1,1,2) [2025-02-17 01:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492327', 'tblTempUsageDetail_20' ) start [2025-02-17 01:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492327', 'tblTempUsageDetail_20' ) end [2025-02-17 01:20:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:20:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:20:27] Production.INFO: ==2614== Releasing lock... [2025-02-17 01:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:20:27] Production.INFO: 77.5 MB #Memory Used# [2025-02-17 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:21:05 [end_date_ymd] => 2025-02-17 01:21:05 [RateCDR] => 1 ) [2025-02-17 01:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:21:05' and `end` < '2025-02-17 01:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:21:19] Production.INFO: count ==6520 [2025-02-17 01:21:22] Production.ERROR: pbx CDR StartTime 2025-02-16 22:21:05 - End Time 2025-02-17 01:21:05 [2025-02-17 01:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492332', 'tblTempUsageDetail_20' ) start [2025-02-17 01:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492332', 'tblTempUsageDetail_20' ) end [2025-02-17 01:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492332', 'tblTempVendorCDR_20' ) start [2025-02-17 01:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492332', 'tblTempVendorCDR_20' ) end [2025-02-17 01:21:23] Production.INFO: ProcessCDR(1,14492332,1,1,2) [2025-02-17 01:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492332', 'tblTempUsageDetail_20' ) start [2025-02-17 01:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492332', 'tblTempUsageDetail_20' ) end [2025-02-17 01:21:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:21:26] Production.INFO: ==2698== Releasing lock... [2025-02-17 01:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:21:26] Production.INFO: 76.75 MB #Memory Used# [2025-02-17 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:22:05 [end_date_ymd] => 2025-02-17 01:22:05 [RateCDR] => 1 ) [2025-02-17 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:22:05' and `end` < '2025-02-17 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:22:19] Production.INFO: count ==6389 [2025-02-17 01:22:23] Production.ERROR: pbx CDR StartTime 2025-02-16 22:22:05 - End Time 2025-02-17 01:22:05 [2025-02-17 01:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492337', 'tblTempUsageDetail_20' ) start [2025-02-17 01:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492337', 'tblTempUsageDetail_20' ) end [2025-02-17 01:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492337', 'tblTempVendorCDR_20' ) start [2025-02-17 01:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492337', 'tblTempVendorCDR_20' ) end [2025-02-17 01:22:23] Production.INFO: ProcessCDR(1,14492337,1,1,2) [2025-02-17 01:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492337', 'tblTempUsageDetail_20' ) start [2025-02-17 01:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492337', 'tblTempUsageDetail_20' ) end [2025-02-17 01:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:22:26] Production.INFO: ==2770== Releasing lock... [2025-02-17 01:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:22:26] Production.INFO: 75.75 MB #Memory Used# [2025-02-17 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:23:05 [end_date_ymd] => 2025-02-17 01:23:05 [RateCDR] => 1 ) [2025-02-17 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:23:05' and `end` < '2025-02-17 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:23:20] Production.INFO: count ==6254 [2025-02-17 01:23:23] Production.ERROR: pbx CDR StartTime 2025-02-16 22:23:05 - End Time 2025-02-17 01:23:05 [2025-02-17 01:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492342', 'tblTempUsageDetail_20' ) start [2025-02-17 01:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492342', 'tblTempUsageDetail_20' ) end [2025-02-17 01:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492342', 'tblTempVendorCDR_20' ) start [2025-02-17 01:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492342', 'tblTempVendorCDR_20' ) end [2025-02-17 01:23:23] Production.INFO: ProcessCDR(1,14492342,1,1,2) [2025-02-17 01:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492342', 'tblTempUsageDetail_20' ) start [2025-02-17 01:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492342', 'tblTempUsageDetail_20' ) end [2025-02-17 01:23:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:23:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:23:27] Production.INFO: ==2846== Releasing lock... [2025-02-17 01:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:23:27] Production.INFO: 74.75 MB #Memory Used# [2025-02-17 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:24:05 [end_date_ymd] => 2025-02-17 01:24:05 [RateCDR] => 1 ) [2025-02-17 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:24:05' and `end` < '2025-02-17 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:24:18] Production.INFO: count ==6097 [2025-02-17 01:24:22] Production.ERROR: pbx CDR StartTime 2025-02-16 22:24:05 - End Time 2025-02-17 01:24:05 [2025-02-17 01:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492345', 'tblTempUsageDetail_20' ) start [2025-02-17 01:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492345', 'tblTempUsageDetail_20' ) end [2025-02-17 01:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492345', 'tblTempVendorCDR_20' ) start [2025-02-17 01:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492345', 'tblTempVendorCDR_20' ) end [2025-02-17 01:24:22] Production.INFO: ProcessCDR(1,14492345,1,1,2) [2025-02-17 01:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492345', 'tblTempUsageDetail_20' ) start [2025-02-17 01:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492345', 'tblTempUsageDetail_20' ) end [2025-02-17 01:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:24:27] Production.INFO: ==2919== Releasing lock... [2025-02-17 01:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:24:27] Production.INFO: 73.5 MB #Memory Used# [2025-02-17 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:25:06 [end_date_ymd] => 2025-02-17 01:25:06 [RateCDR] => 1 ) [2025-02-17 01:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:25:06' and `end` < '2025-02-17 01:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:25:19] Production.INFO: count ==5991 [2025-02-17 01:25:23] Production.ERROR: pbx CDR StartTime 2025-02-16 22:25:06 - End Time 2025-02-17 01:25:06 [2025-02-17 01:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492352', 'tblTempUsageDetail_20' ) start [2025-02-17 01:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492352', 'tblTempUsageDetail_20' ) end [2025-02-17 01:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492352', 'tblTempVendorCDR_20' ) start [2025-02-17 01:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492352', 'tblTempVendorCDR_20' ) end [2025-02-17 01:25:23] Production.INFO: ProcessCDR(1,14492352,1,1,2) [2025-02-17 01:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492352', 'tblTempUsageDetail_20' ) start [2025-02-17 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492352', 'tblTempUsageDetail_20' ) end [2025-02-17 01:25:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:25:27] Production.INFO: ==2994== Releasing lock... [2025-02-17 01:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:25:27] Production.INFO: 72.75 MB #Memory Used# [2025-02-17 01:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:26:04 [end_date_ymd] => 2025-02-17 01:26:04 [RateCDR] => 1 ) [2025-02-17 01: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-02-16 22:26:04' and `end` < '2025-02-17 01: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-02-17 01:26:18] Production.INFO: count ==5905 [2025-02-17 01:26:21] Production.ERROR: pbx CDR StartTime 2025-02-16 22:26:04 - End Time 2025-02-17 01:26:04 [2025-02-17 01:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492357', 'tblTempUsageDetail_20' ) start [2025-02-17 01:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492357', 'tblTempUsageDetail_20' ) end [2025-02-17 01:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492357', 'tblTempVendorCDR_20' ) start [2025-02-17 01:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492357', 'tblTempVendorCDR_20' ) end [2025-02-17 01:26:21] Production.INFO: ProcessCDR(1,14492357,1,1,2) [2025-02-17 01:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492357', 'tblTempUsageDetail_20' ) start [2025-02-17 01:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492357', 'tblTempUsageDetail_20' ) end [2025-02-17 01:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:26:25] Production.INFO: ==3069== Releasing lock... [2025-02-17 01:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:26:25] Production.INFO: 72 MB #Memory Used# [2025-02-17 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:27:05 [end_date_ymd] => 2025-02-17 01:27:05 [RateCDR] => 1 ) [2025-02-17 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:27:05' and `end` < '2025-02-17 01:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:27:19] Production.INFO: count ==5905 [2025-02-17 01:27:22] Production.ERROR: pbx CDR StartTime 2025-02-16 22:27:05 - End Time 2025-02-17 01:27:05 [2025-02-17 01:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492362', 'tblTempUsageDetail_20' ) start [2025-02-17 01:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492362', 'tblTempUsageDetail_20' ) end [2025-02-17 01:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492362', 'tblTempVendorCDR_20' ) start [2025-02-17 01:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492362', 'tblTempVendorCDR_20' ) end [2025-02-17 01:27:22] Production.INFO: ProcessCDR(1,14492362,1,1,2) [2025-02-17 01:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492362', 'tblTempUsageDetail_20' ) start [2025-02-17 01:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492362', 'tblTempUsageDetail_20' ) end [2025-02-17 01:27:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:27:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:27:27] Production.INFO: ==3145== Releasing lock... [2025-02-17 01:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:27:27] Production.INFO: 72 MB #Memory Used# [2025-02-17 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:28:05 [end_date_ymd] => 2025-02-17 01:28:05 [RateCDR] => 1 ) [2025-02-17 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:28:05' and `end` < '2025-02-17 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:28:19] Production.INFO: count ==5873 [2025-02-17 01:28:22] Production.ERROR: pbx CDR StartTime 2025-02-16 22:28:05 - End Time 2025-02-17 01:28:05 [2025-02-17 01:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492367', 'tblTempUsageDetail_20' ) start [2025-02-17 01:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492367', 'tblTempUsageDetail_20' ) end [2025-02-17 01:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492367', 'tblTempVendorCDR_20' ) start [2025-02-17 01:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492367', 'tblTempVendorCDR_20' ) end [2025-02-17 01:28:22] Production.INFO: ProcessCDR(1,14492367,1,1,2) [2025-02-17 01:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492367', 'tblTempUsageDetail_20' ) start [2025-02-17 01:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492367', 'tblTempUsageDetail_20' ) end [2025-02-17 01:28:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:28:26] Production.INFO: ==3221== Releasing lock... [2025-02-17 01:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:28:26] Production.INFO: 71.75 MB #Memory Used# [2025-02-17 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:29:05 [end_date_ymd] => 2025-02-17 01:29:05 [RateCDR] => 1 ) [2025-02-17 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-02-16 22:29:05' and `end` < '2025-02-17 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-02-17 01:29:19] Production.INFO: count ==5862 [2025-02-17 01:29:22] Production.ERROR: pbx CDR StartTime 2025-02-16 22:29:05 - End Time 2025-02-17 01:29:05 [2025-02-17 01:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492372', 'tblTempUsageDetail_20' ) start [2025-02-17 01:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492372', 'tblTempUsageDetail_20' ) end [2025-02-17 01:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492372', 'tblTempVendorCDR_20' ) start [2025-02-17 01:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492372', 'tblTempVendorCDR_20' ) end [2025-02-17 01:29:22] Production.INFO: ProcessCDR(1,14492372,1,1,2) [2025-02-17 01:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492372', 'tblTempUsageDetail_20' ) start [2025-02-17 01:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492372', 'tblTempUsageDetail_20' ) end [2025-02-17 01:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:29:26] Production.INFO: ==3334== Releasing lock... [2025-02-17 01:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:29:26] Production.INFO: 71.75 MB #Memory Used# [2025-02-17 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:30:06 [end_date_ymd] => 2025-02-17 01:30:06 [RateCDR] => 1 ) [2025-02-17 01:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:30:06' and `end` < '2025-02-17 01:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:30:19] Production.INFO: count ==5986 [2025-02-17 01:30:23] Production.ERROR: pbx CDR StartTime 2025-02-16 22:30:06 - End Time 2025-02-17 01:30:06 [2025-02-17 01:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492378', 'tblTempUsageDetail_20' ) start [2025-02-17 01:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492378', 'tblTempUsageDetail_20' ) end [2025-02-17 01:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492378', 'tblTempVendorCDR_20' ) start [2025-02-17 01:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492378', 'tblTempVendorCDR_20' ) end [2025-02-17 01:30:23] Production.INFO: ProcessCDR(1,14492378,1,1,2) [2025-02-17 01:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492378', 'tblTempUsageDetail_20' ) start [2025-02-17 01:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492378', 'tblTempUsageDetail_20' ) end [2025-02-17 01:30:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:30:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:30:26] Production.INFO: ==3452== Releasing lock... [2025-02-17 01:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:30:26] Production.INFO: 72.75 MB #Memory Used# [2025-02-17 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:31:05 [end_date_ymd] => 2025-02-17 01:31:05 [RateCDR] => 1 ) [2025-02-17 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:31:05' and `end` < '2025-02-17 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:31:19] Production.INFO: count ==5954 [2025-02-17 01:31:22] Production.ERROR: pbx CDR StartTime 2025-02-16 22:31:05 - End Time 2025-02-17 01:31:05 [2025-02-17 01:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492383', 'tblTempUsageDetail_20' ) start [2025-02-17 01:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492383', 'tblTempUsageDetail_20' ) end [2025-02-17 01:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492383', 'tblTempVendorCDR_20' ) start [2025-02-17 01:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492383', 'tblTempVendorCDR_20' ) end [2025-02-17 01:31:22] Production.INFO: ProcessCDR(1,14492383,1,1,2) [2025-02-17 01:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492383', 'tblTempUsageDetail_20' ) start [2025-02-17 01:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492383', 'tblTempUsageDetail_20' ) end [2025-02-17 01:31:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:31:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:31:26] Production.INFO: ==3542== Releasing lock... [2025-02-17 01:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:31:26] Production.INFO: 72.5 MB #Memory Used# [2025-02-17 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:32:05 [end_date_ymd] => 2025-02-17 01:32:05 [RateCDR] => 1 ) [2025-02-17 01:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:32:05' and `end` < '2025-02-17 01:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:32:18] Production.INFO: count ==5939 [2025-02-17 01:32:22] Production.ERROR: pbx CDR StartTime 2025-02-16 22:32:05 - End Time 2025-02-17 01:32:05 [2025-02-17 01:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492388', 'tblTempUsageDetail_20' ) start [2025-02-17 01:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492388', 'tblTempUsageDetail_20' ) end [2025-02-17 01:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492388', 'tblTempVendorCDR_20' ) start [2025-02-17 01:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492388', 'tblTempVendorCDR_20' ) end [2025-02-17 01:32:22] Production.INFO: ProcessCDR(1,14492388,1,1,2) [2025-02-17 01:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492388', 'tblTempUsageDetail_20' ) start [2025-02-17 01:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492388', 'tblTempUsageDetail_20' ) end [2025-02-17 01:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:32:25] Production.INFO: ==3616== Releasing lock... [2025-02-17 01:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:32:25] Production.INFO: 72.25 MB #Memory Used# [2025-02-17 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:33:05 [end_date_ymd] => 2025-02-17 01:33:05 [RateCDR] => 1 ) [2025-02-17 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:33:05' and `end` < '2025-02-17 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:33:19] Production.INFO: count ==5948 [2025-02-17 01:33:22] Production.ERROR: pbx CDR StartTime 2025-02-16 22:33:05 - End Time 2025-02-17 01:33:05 [2025-02-17 01:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492390', 'tblTempUsageDetail_20' ) start [2025-02-17 01:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492390', 'tblTempUsageDetail_20' ) end [2025-02-17 01:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492390', 'tblTempVendorCDR_20' ) start [2025-02-17 01:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492390', 'tblTempVendorCDR_20' ) end [2025-02-17 01:33:23] Production.INFO: ProcessCDR(1,14492390,1,1,2) [2025-02-17 01:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492390', 'tblTempUsageDetail_20' ) start [2025-02-17 01:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492390', 'tblTempUsageDetail_20' ) end [2025-02-17 01:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:33:26] Production.INFO: ==3690== Releasing lock... [2025-02-17 01:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:33:26] Production.INFO: 72.25 MB #Memory Used# [2025-02-17 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:34:05 [end_date_ymd] => 2025-02-17 01:34:05 [RateCDR] => 1 ) [2025-02-17 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:34:05' and `end` < '2025-02-17 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:34:18] Production.INFO: count ==5901 [2025-02-17 01:34:22] Production.ERROR: pbx CDR StartTime 2025-02-16 22:34:05 - End Time 2025-02-17 01:34:05 [2025-02-17 01:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492398', 'tblTempUsageDetail_20' ) start [2025-02-17 01:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492398', 'tblTempUsageDetail_20' ) end [2025-02-17 01:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492398', 'tblTempVendorCDR_20' ) start [2025-02-17 01:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492398', 'tblTempVendorCDR_20' ) end [2025-02-17 01:34:22] Production.INFO: ProcessCDR(1,14492398,1,1,2) [2025-02-17 01:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492398', 'tblTempUsageDetail_20' ) start [2025-02-17 01:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492398', 'tblTempUsageDetail_20' ) end [2025-02-17 01:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:34:26] Production.INFO: ==3767== Releasing lock... [2025-02-17 01:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:34:26] Production.INFO: 72 MB #Memory Used# [2025-02-17 01:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:35:06 [end_date_ymd] => 2025-02-17 01:35:06 [RateCDR] => 1 ) [2025-02-17 01:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:35:06' and `end` < '2025-02-17 01:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:35:19] Production.INFO: count ==5881 [2025-02-17 01:35:23] Production.ERROR: pbx CDR StartTime 2025-02-16 22:35:06 - End Time 2025-02-17 01:35:06 [2025-02-17 01:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492403', 'tblTempUsageDetail_20' ) start [2025-02-17 01:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492403', 'tblTempUsageDetail_20' ) end [2025-02-17 01:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492403', 'tblTempVendorCDR_20' ) start [2025-02-17 01:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492403', 'tblTempVendorCDR_20' ) end [2025-02-17 01:35:23] Production.INFO: ProcessCDR(1,14492403,1,1,2) [2025-02-17 01:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492403', 'tblTempUsageDetail_20' ) start [2025-02-17 01:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492403', 'tblTempUsageDetail_20' ) end [2025-02-17 01:35:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:35:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:35:27] Production.INFO: ==3838== Releasing lock... [2025-02-17 01:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:35:27] Production.INFO: 71.75 MB #Memory Used# [2025-02-17 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:36:05 [end_date_ymd] => 2025-02-17 01:36:05 [RateCDR] => 1 ) [2025-02-17 01:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:36:05' and `end` < '2025-02-17 01:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:36:19] Production.INFO: count ==5865 [2025-02-17 01:36:22] Production.ERROR: pbx CDR StartTime 2025-02-16 22:36:05 - End Time 2025-02-17 01:36:05 [2025-02-17 01:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492408', 'tblTempUsageDetail_20' ) start [2025-02-17 01:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492408', 'tblTempUsageDetail_20' ) end [2025-02-17 01:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492408', 'tblTempVendorCDR_20' ) start [2025-02-17 01:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492408', 'tblTempVendorCDR_20' ) end [2025-02-17 01:36:23] Production.INFO: ProcessCDR(1,14492408,1,1,2) [2025-02-17 01:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492408', 'tblTempUsageDetail_20' ) start [2025-02-17 01:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492408', 'tblTempUsageDetail_20' ) end [2025-02-17 01:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:36:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:36:26] Production.INFO: ==3914== Releasing lock... [2025-02-17 01:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:36:26] Production.INFO: 71.75 MB #Memory Used# [2025-02-17 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:37:05 [end_date_ymd] => 2025-02-17 01:37:05 [RateCDR] => 1 ) [2025-02-17 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-02-16 22:37:05' and `end` < '2025-02-17 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-02-17 01:37:19] Production.INFO: count ==5849 [2025-02-17 01:37:23] Production.ERROR: pbx CDR StartTime 2025-02-16 22:37:05 - End Time 2025-02-17 01:37:05 [2025-02-17 01:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492413', 'tblTempUsageDetail_20' ) start [2025-02-17 01:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492413', 'tblTempUsageDetail_20' ) end [2025-02-17 01:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492413', 'tblTempVendorCDR_20' ) start [2025-02-17 01:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492413', 'tblTempVendorCDR_20' ) end [2025-02-17 01:37:23] Production.INFO: ProcessCDR(1,14492413,1,1,2) [2025-02-17 01:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492413', 'tblTempUsageDetail_20' ) start [2025-02-17 01:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492413', 'tblTempUsageDetail_20' ) end [2025-02-17 01:37:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:37:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:37:26] Production.INFO: ==3995== Releasing lock... [2025-02-17 01:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:37:26] Production.INFO: 71.75 MB #Memory Used# [2025-02-17 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:38:05 [end_date_ymd] => 2025-02-17 01:38:05 [RateCDR] => 1 ) [2025-02-17 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:38:05' and `end` < '2025-02-17 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:38:19] Production.INFO: count ==6019 [2025-02-17 01:38:23] Production.ERROR: pbx CDR StartTime 2025-02-16 22:38:05 - End Time 2025-02-17 01:38:05 [2025-02-17 01:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492418', 'tblTempUsageDetail_20' ) start [2025-02-17 01:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492418', 'tblTempUsageDetail_20' ) end [2025-02-17 01:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492418', 'tblTempVendorCDR_20' ) start [2025-02-17 01:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492418', 'tblTempVendorCDR_20' ) end [2025-02-17 01:38:23] Production.INFO: ProcessCDR(1,14492418,1,1,2) [2025-02-17 01:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492418', 'tblTempUsageDetail_20' ) start [2025-02-17 01:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492418', 'tblTempUsageDetail_20' ) end [2025-02-17 01:38:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:38:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:38:27] Production.INFO: ==4069== Releasing lock... [2025-02-17 01:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:38:27] Production.INFO: 73 MB #Memory Used# [2025-02-17 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:39:05 [end_date_ymd] => 2025-02-17 01:39:05 [RateCDR] => 1 ) [2025-02-17 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:39:05' and `end` < '2025-02-17 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:39:19] Production.INFO: count ==5979 [2025-02-17 01:39:22] Production.ERROR: pbx CDR StartTime 2025-02-16 22:39:05 - End Time 2025-02-17 01:39:05 [2025-02-17 01:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492423', 'tblTempUsageDetail_20' ) start [2025-02-17 01:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492423', 'tblTempUsageDetail_20' ) end [2025-02-17 01:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492423', 'tblTempVendorCDR_20' ) start [2025-02-17 01:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492423', 'tblTempVendorCDR_20' ) end [2025-02-17 01:39:23] Production.INFO: ProcessCDR(1,14492423,1,1,2) [2025-02-17 01:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492423', 'tblTempUsageDetail_20' ) start [2025-02-17 01:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492423', 'tblTempUsageDetail_20' ) end [2025-02-17 01:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:39:26] Production.INFO: ==4144== Releasing lock... [2025-02-17 01:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:39:26] Production.INFO: 72.5 MB #Memory Used# [2025-02-17 01:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:40:07 [end_date_ymd] => 2025-02-17 01:40:07 [RateCDR] => 1 ) [2025-02-17 01:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:40:07' and `end` < '2025-02-17 01:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:40:21] Production.INFO: count ==5973 [2025-02-17 01:40:24] Production.ERROR: pbx CDR StartTime 2025-02-16 22:40:07 - End Time 2025-02-17 01:40:07 [2025-02-17 01:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492429', 'tblTempUsageDetail_20' ) start [2025-02-17 01:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492429', 'tblTempUsageDetail_20' ) end [2025-02-17 01:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492429', 'tblTempVendorCDR_20' ) start [2025-02-17 01:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492429', 'tblTempVendorCDR_20' ) end [2025-02-17 01:40:25] Production.INFO: ProcessCDR(1,14492429,1,1,2) [2025-02-17 01:40:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492429', 'tblTempUsageDetail_20' ) start [2025-02-17 01:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492429', 'tblTempUsageDetail_20' ) end [2025-02-17 01:40:28] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:40:28] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:40:28] Production.INFO: ==4220== Releasing lock... [2025-02-17 01:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:40:28] Production.INFO: 72.5 MB #Memory Used# [2025-02-17 01:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:41:06 [end_date_ymd] => 2025-02-17 01:41:06 [RateCDR] => 1 ) [2025-02-17 01:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:41:06' and `end` < '2025-02-17 01:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:41:19] Production.INFO: count ==5994 [2025-02-17 01:41:23] Production.ERROR: pbx CDR StartTime 2025-02-16 22:41:06 - End Time 2025-02-17 01:41:06 [2025-02-17 01:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492434', 'tblTempUsageDetail_20' ) start [2025-02-17 01:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492434', 'tblTempUsageDetail_20' ) end [2025-02-17 01:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492434', 'tblTempVendorCDR_20' ) start [2025-02-17 01:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492434', 'tblTempVendorCDR_20' ) end [2025-02-17 01:41:23] Production.INFO: ProcessCDR(1,14492434,1,1,2) [2025-02-17 01:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492434', 'tblTempUsageDetail_20' ) start [2025-02-17 01:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492434', 'tblTempUsageDetail_20' ) end [2025-02-17 01:41:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:41:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:41:27] Production.INFO: ==4299== Releasing lock... [2025-02-17 01:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:41:27] Production.INFO: 72.75 MB #Memory Used# [2025-02-17 01:42:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:42:07 [end_date_ymd] => 2025-02-17 01:42:07 [RateCDR] => 1 ) [2025-02-17 01:42:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:42:07' and `end` < '2025-02-17 01:42:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:42:20] Production.INFO: count ==5998 [2025-02-17 01:42:24] Production.ERROR: pbx CDR StartTime 2025-02-16 22:42:07 - End Time 2025-02-17 01:42:07 [2025-02-17 01:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492439', 'tblTempUsageDetail_20' ) start [2025-02-17 01:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492439', 'tblTempUsageDetail_20' ) end [2025-02-17 01:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492439', 'tblTempVendorCDR_20' ) start [2025-02-17 01:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492439', 'tblTempVendorCDR_20' ) end [2025-02-17 01:42:24] Production.INFO: ProcessCDR(1,14492439,1,1,2) [2025-02-17 01:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492439', 'tblTempUsageDetail_20' ) start [2025-02-17 01:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492439', 'tblTempUsageDetail_20' ) end [2025-02-17 01:42:28] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:42:28] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:42:28] Production.INFO: ==4378== Releasing lock... [2025-02-17 01:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:42:28] Production.INFO: 72.75 MB #Memory Used# [2025-02-17 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:43:05 [end_date_ymd] => 2025-02-17 01:43:05 [RateCDR] => 1 ) [2025-02-17 01:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:43:05' and `end` < '2025-02-17 01:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:43:19] Production.INFO: count ==5996 [2025-02-17 01:43:23] Production.ERROR: pbx CDR StartTime 2025-02-16 22:43:05 - End Time 2025-02-17 01:43:05 [2025-02-17 01:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492444', 'tblTempUsageDetail_20' ) start [2025-02-17 01:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492444', 'tblTempUsageDetail_20' ) end [2025-02-17 01:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492444', 'tblTempVendorCDR_20' ) start [2025-02-17 01:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492444', 'tblTempVendorCDR_20' ) end [2025-02-17 01:43:23] Production.INFO: ProcessCDR(1,14492444,1,1,2) [2025-02-17 01:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492444', 'tblTempUsageDetail_20' ) start [2025-02-17 01:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492444', 'tblTempUsageDetail_20' ) end [2025-02-17 01:43:28] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:43:28] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:43:28] Production.INFO: ==4453== Releasing lock... [2025-02-17 01:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:43:28] Production.INFO: 73 MB #Memory Used# [2025-02-17 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:44:05 [end_date_ymd] => 2025-02-17 01:44:05 [RateCDR] => 1 ) [2025-02-17 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-02-16 22:44:05' and `end` < '2025-02-17 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-02-17 01:44:18] Production.INFO: count ==5988 [2025-02-17 01:44:22] Production.ERROR: pbx CDR StartTime 2025-02-16 22:44:05 - End Time 2025-02-17 01:44:05 [2025-02-17 01:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492449', 'tblTempUsageDetail_20' ) start [2025-02-17 01:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492449', 'tblTempUsageDetail_20' ) end [2025-02-17 01:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492449', 'tblTempVendorCDR_20' ) start [2025-02-17 01:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492449', 'tblTempVendorCDR_20' ) end [2025-02-17 01:44:23] Production.INFO: ProcessCDR(1,14492449,1,1,2) [2025-02-17 01:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492449', 'tblTempUsageDetail_20' ) start [2025-02-17 01:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492449', 'tblTempUsageDetail_20' ) end [2025-02-17 01:44:28] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:44:28] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:44:28] Production.INFO: ==4568== Releasing lock... [2025-02-17 01:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:44:28] Production.INFO: 72.75 MB #Memory Used# [2025-02-17 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:45:05 [end_date_ymd] => 2025-02-17 01:45:05 [RateCDR] => 1 ) [2025-02-17 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:45:05' and `end` < '2025-02-17 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:45:19] Production.INFO: count ==5962 [2025-02-17 01:45:22] Production.ERROR: pbx CDR StartTime 2025-02-16 22:45:05 - End Time 2025-02-17 01:45:05 [2025-02-17 01:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492454', 'tblTempUsageDetail_20' ) start [2025-02-17 01:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492454', 'tblTempUsageDetail_20' ) end [2025-02-17 01:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492454', 'tblTempVendorCDR_20' ) start [2025-02-17 01:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492454', 'tblTempVendorCDR_20' ) end [2025-02-17 01:45:23] Production.INFO: ProcessCDR(1,14492454,1,1,2) [2025-02-17 01:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492454', 'tblTempUsageDetail_20' ) start [2025-02-17 01:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492454', 'tblTempUsageDetail_20' ) end [2025-02-17 01:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:45:26] Production.INFO: ==4649== Releasing lock... [2025-02-17 01:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:45:26] Production.INFO: 72.5 MB #Memory Used# [2025-02-17 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:46:06 [end_date_ymd] => 2025-02-17 01:46:06 [RateCDR] => 1 ) [2025-02-17 01:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:46:06' and `end` < '2025-02-17 01:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:46:19] Production.INFO: count ==5961 [2025-02-17 01:46:23] Production.ERROR: pbx CDR StartTime 2025-02-16 22:46:06 - End Time 2025-02-17 01:46:06 [2025-02-17 01:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492459', 'tblTempUsageDetail_20' ) start [2025-02-17 01:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492459', 'tblTempUsageDetail_20' ) end [2025-02-17 01:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492459', 'tblTempVendorCDR_20' ) start [2025-02-17 01:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492459', 'tblTempVendorCDR_20' ) end [2025-02-17 01:46:23] Production.INFO: ProcessCDR(1,14492459,1,1,2) [2025-02-17 01:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492459', 'tblTempUsageDetail_20' ) start [2025-02-17 01:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492459', 'tblTempUsageDetail_20' ) end [2025-02-17 01:46:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:46:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:46:27] Production.INFO: ==4720== Releasing lock... [2025-02-17 01:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:46:27] Production.INFO: 72.5 MB #Memory Used# [2025-02-17 01:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:47:06 [end_date_ymd] => 2025-02-17 01:47:06 [RateCDR] => 1 ) [2025-02-17 01:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:47:06' and `end` < '2025-02-17 01:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:47:20] Production.INFO: count ==6240 [2025-02-17 01:47:24] Production.ERROR: pbx CDR StartTime 2025-02-16 22:47:06 - End Time 2025-02-17 01:47:06 [2025-02-17 01:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492464', 'tblTempUsageDetail_20' ) start [2025-02-17 01:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492464', 'tblTempUsageDetail_20' ) end [2025-02-17 01:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492464', 'tblTempVendorCDR_20' ) start [2025-02-17 01:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492464', 'tblTempVendorCDR_20' ) end [2025-02-17 01:47:25] Production.INFO: ProcessCDR(1,14492464,1,1,2) [2025-02-17 01:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492464', 'tblTempUsageDetail_20' ) start [2025-02-17 01:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492464', 'tblTempUsageDetail_20' ) end [2025-02-17 01:47:29] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:47:29] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:47:29] Production.INFO: ==4799== Releasing lock... [2025-02-17 01:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:47:29] Production.INFO: 74.5 MB #Memory Used# [2025-02-17 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:48:05 [end_date_ymd] => 2025-02-17 01:48:05 [RateCDR] => 1 ) [2025-02-17 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:48:05' and `end` < '2025-02-17 01:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:48:18] Production.INFO: count ==6248 [2025-02-17 01:48:22] Production.ERROR: pbx CDR StartTime 2025-02-16 22:48:05 - End Time 2025-02-17 01:48:05 [2025-02-17 01:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492469', 'tblTempUsageDetail_20' ) start [2025-02-17 01:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492469', 'tblTempUsageDetail_20' ) end [2025-02-17 01:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492469', 'tblTempVendorCDR_20' ) start [2025-02-17 01:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492469', 'tblTempVendorCDR_20' ) end [2025-02-17 01:48:23] Production.INFO: ProcessCDR(1,14492469,1,1,2) [2025-02-17 01:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492469', 'tblTempUsageDetail_20' ) start [2025-02-17 01:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492469', 'tblTempUsageDetail_20' ) end [2025-02-17 01:48:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:48:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:48:26] Production.INFO: ==4881== Releasing lock... [2025-02-17 01:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:48:26] Production.INFO: 74.5 MB #Memory Used# [2025-02-17 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:49:05 [end_date_ymd] => 2025-02-17 01:49:05 [RateCDR] => 1 ) [2025-02-17 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:49:05' and `end` < '2025-02-17 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:49:19] Production.INFO: count ==6245 [2025-02-17 01:49:23] Production.ERROR: pbx CDR StartTime 2025-02-16 22:49:05 - End Time 2025-02-17 01:49:05 [2025-02-17 01:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492474', 'tblTempUsageDetail_20' ) start [2025-02-17 01:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492474', 'tblTempUsageDetail_20' ) end [2025-02-17 01:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492474', 'tblTempVendorCDR_20' ) start [2025-02-17 01:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492474', 'tblTempVendorCDR_20' ) end [2025-02-17 01:49:23] Production.INFO: ProcessCDR(1,14492474,1,1,2) [2025-02-17 01:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492474', 'tblTempUsageDetail_20' ) start [2025-02-17 01:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492474', 'tblTempUsageDetail_20' ) end [2025-02-17 01:49:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:49:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:49:27] Production.INFO: ==4959== Releasing lock... [2025-02-17 01:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:49:27] Production.INFO: 74.5 MB #Memory Used# [2025-02-17 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:50:06 [end_date_ymd] => 2025-02-17 01:50:06 [RateCDR] => 1 ) [2025-02-17 01:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:50:06' and `end` < '2025-02-17 01:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:50:19] Production.INFO: count ==6219 [2025-02-17 01:50:23] Production.ERROR: pbx CDR StartTime 2025-02-16 22:50:06 - End Time 2025-02-17 01:50:06 [2025-02-17 01:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492480', 'tblTempUsageDetail_20' ) start [2025-02-17 01:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492480', 'tblTempUsageDetail_20' ) end [2025-02-17 01:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492480', 'tblTempVendorCDR_20' ) start [2025-02-17 01:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492480', 'tblTempVendorCDR_20' ) end [2025-02-17 01:50:23] Production.INFO: ProcessCDR(1,14492480,1,1,2) [2025-02-17 01:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492480', 'tblTempUsageDetail_20' ) start [2025-02-17 01:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492480', 'tblTempUsageDetail_20' ) end [2025-02-17 01:50:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:50:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:50:27] Production.INFO: ==5042== Releasing lock... [2025-02-17 01:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:50:27] Production.INFO: 74.5 MB #Memory Used# [2025-02-17 01:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:51:06 [end_date_ymd] => 2025-02-17 01:51:06 [RateCDR] => 1 ) [2025-02-17 01:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:51:06' and `end` < '2025-02-17 01:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:51:19] Production.INFO: count ==6230 [2025-02-17 01:51:22] Production.ERROR: pbx CDR StartTime 2025-02-16 22:51:06 - End Time 2025-02-17 01:51:06 [2025-02-17 01:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492485', 'tblTempUsageDetail_20' ) start [2025-02-17 01:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492485', 'tblTempUsageDetail_20' ) end [2025-02-17 01:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492485', 'tblTempVendorCDR_20' ) start [2025-02-17 01:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492485', 'tblTempVendorCDR_20' ) end [2025-02-17 01:51:23] Production.INFO: ProcessCDR(1,14492485,1,1,2) [2025-02-17 01:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492485', 'tblTempUsageDetail_20' ) start [2025-02-17 01:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492485', 'tblTempUsageDetail_20' ) end [2025-02-17 01:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:51:26] Production.INFO: ==5122== Releasing lock... [2025-02-17 01:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:51:26] Production.INFO: 74.5 MB #Memory Used# [2025-02-17 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:52:05 [end_date_ymd] => 2025-02-17 01:52:05 [RateCDR] => 1 ) [2025-02-17 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:52:05' and `end` < '2025-02-17 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:52:19] Production.INFO: count ==6229 [2025-02-17 01:52:23] Production.ERROR: pbx CDR StartTime 2025-02-16 22:52:05 - End Time 2025-02-17 01:52:05 [2025-02-17 01:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492490', 'tblTempUsageDetail_20' ) start [2025-02-17 01:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492490', 'tblTempUsageDetail_20' ) end [2025-02-17 01:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492490', 'tblTempVendorCDR_20' ) start [2025-02-17 01:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492490', 'tblTempVendorCDR_20' ) end [2025-02-17 01:52:23] Production.INFO: ProcessCDR(1,14492490,1,1,2) [2025-02-17 01:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492490', 'tblTempUsageDetail_20' ) start [2025-02-17 01:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492490', 'tblTempUsageDetail_20' ) end [2025-02-17 01:52:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:52:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:52:27] Production.INFO: ==5203== Releasing lock... [2025-02-17 01:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:52:27] Production.INFO: 74.5 MB #Memory Used# [2025-02-17 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:53:05 [end_date_ymd] => 2025-02-17 01:53:05 [RateCDR] => 1 ) [2025-02-17 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-02-16 22:53:05' and `end` < '2025-02-17 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-02-17 01:53:21] Production.INFO: count ==6402 [2025-02-17 01:53:25] Production.ERROR: pbx CDR StartTime 2025-02-16 22:53:05 - End Time 2025-02-17 01:53:05 [2025-02-17 01:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492495', 'tblTempUsageDetail_20' ) start [2025-02-17 01:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492495', 'tblTempUsageDetail_20' ) end [2025-02-17 01:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492495', 'tblTempVendorCDR_20' ) start [2025-02-17 01:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492495', 'tblTempVendorCDR_20' ) end [2025-02-17 01:53:25] Production.INFO: ProcessCDR(1,14492495,1,1,2) [2025-02-17 01:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492495', 'tblTempUsageDetail_20' ) start [2025-02-17 01:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492495', 'tblTempUsageDetail_20' ) end [2025-02-17 01:53:29] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:53:29] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:53:29] Production.INFO: ==5291== Releasing lock... [2025-02-17 01:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:53:29] Production.INFO: 75.75 MB #Memory Used# [2025-02-17 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:54:05 [end_date_ymd] => 2025-02-17 01:54:05 [RateCDR] => 1 ) [2025-02-17 01:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:54:05' and `end` < '2025-02-17 01:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:54:20] Production.INFO: count ==6402 [2025-02-17 01:54:24] Production.ERROR: pbx CDR StartTime 2025-02-16 22:54:05 - End Time 2025-02-17 01:54:05 [2025-02-17 01:54:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492500', 'tblTempUsageDetail_20' ) start [2025-02-17 01:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492500', 'tblTempUsageDetail_20' ) end [2025-02-17 01:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492500', 'tblTempVendorCDR_20' ) start [2025-02-17 01:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492500', 'tblTempVendorCDR_20' ) end [2025-02-17 01:54:24] Production.INFO: ProcessCDR(1,14492500,1,1,2) [2025-02-17 01:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492500', 'tblTempUsageDetail_20' ) start [2025-02-17 01:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492500', 'tblTempUsageDetail_20' ) end [2025-02-17 01:54:28] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:54:28] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:54:28] Production.INFO: ==5373== Releasing lock... [2025-02-17 01:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:54:28] Production.INFO: 75.75 MB #Memory Used# [2025-02-17 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:55:05 [end_date_ymd] => 2025-02-17 01:55:05 [RateCDR] => 1 ) [2025-02-17 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:55:05' and `end` < '2025-02-17 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:55:19] Production.INFO: count ==6402 [2025-02-17 01:55:23] Production.ERROR: pbx CDR StartTime 2025-02-16 22:55:05 - End Time 2025-02-17 01:55:05 [2025-02-17 01:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492505', 'tblTempUsageDetail_20' ) start [2025-02-17 01:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492505', 'tblTempUsageDetail_20' ) end [2025-02-17 01:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492505', 'tblTempVendorCDR_20' ) start [2025-02-17 01:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492505', 'tblTempVendorCDR_20' ) end [2025-02-17 01:55:23] Production.INFO: ProcessCDR(1,14492505,1,1,2) [2025-02-17 01:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492505', 'tblTempUsageDetail_20' ) start [2025-02-17 01:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492505', 'tblTempUsageDetail_20' ) end [2025-02-17 01:55:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:55:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:55:27] Production.INFO: ==5463== Releasing lock... [2025-02-17 01:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:55:27] Production.INFO: 75.75 MB #Memory Used# [2025-02-17 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:56:05 [end_date_ymd] => 2025-02-17 01:56:05 [RateCDR] => 1 ) [2025-02-17 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:56:05' and `end` < '2025-02-17 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:56:20] Production.INFO: count ==6400 [2025-02-17 01:56:24] Production.ERROR: pbx CDR StartTime 2025-02-16 22:56:05 - End Time 2025-02-17 01:56:05 [2025-02-17 01:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492510', 'tblTempUsageDetail_20' ) start [2025-02-17 01:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492510', 'tblTempUsageDetail_20' ) end [2025-02-17 01:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492510', 'tblTempVendorCDR_20' ) start [2025-02-17 01:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492510', 'tblTempVendorCDR_20' ) end [2025-02-17 01:56:25] Production.INFO: ProcessCDR(1,14492510,1,1,2) [2025-02-17 01:56:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492510', 'tblTempUsageDetail_20' ) start [2025-02-17 01:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492510', 'tblTempUsageDetail_20' ) end [2025-02-17 01:56:28] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:56:28] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:56:29] Production.INFO: ==5546== Releasing lock... [2025-02-17 01:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:56:29] Production.INFO: 75.75 MB #Memory Used# [2025-02-17 01:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:57:06 [end_date_ymd] => 2025-02-17 01:57:06 [RateCDR] => 1 ) [2025-02-17 01:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:57:06' and `end` < '2025-02-17 01:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:57:20] Production.INFO: count ==6399 [2025-02-17 01:57:24] Production.ERROR: pbx CDR StartTime 2025-02-16 22:57:06 - End Time 2025-02-17 01:57:06 [2025-02-17 01:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492515', 'tblTempUsageDetail_20' ) start [2025-02-17 01:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492515', 'tblTempUsageDetail_20' ) end [2025-02-17 01:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492515', 'tblTempVendorCDR_20' ) start [2025-02-17 01:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492515', 'tblTempVendorCDR_20' ) end [2025-02-17 01:57:24] Production.INFO: ProcessCDR(1,14492515,1,1,2) [2025-02-17 01:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492515', 'tblTempUsageDetail_20' ) start [2025-02-17 01:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492515', 'tblTempUsageDetail_20' ) end [2025-02-17 01:57:28] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:57:28] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:57:28] Production.INFO: ==5628== Releasing lock... [2025-02-17 01:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:57:28] Production.INFO: 75.75 MB #Memory Used# [2025-02-17 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:58:05 [end_date_ymd] => 2025-02-17 01:58:05 [RateCDR] => 1 ) [2025-02-17 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-02-16 22:58:05' and `end` < '2025-02-17 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-02-17 01:58:19] Production.INFO: count ==6399 [2025-02-17 01:58:23] Production.ERROR: pbx CDR StartTime 2025-02-16 22:58:05 - End Time 2025-02-17 01:58:05 [2025-02-17 01:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492520', 'tblTempUsageDetail_20' ) start [2025-02-17 01:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492520', 'tblTempUsageDetail_20' ) end [2025-02-17 01:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492520', 'tblTempVendorCDR_20' ) start [2025-02-17 01:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492520', 'tblTempVendorCDR_20' ) end [2025-02-17 01:58:23] Production.INFO: ProcessCDR(1,14492520,1,1,2) [2025-02-17 01:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492520', 'tblTempUsageDetail_20' ) start [2025-02-17 01:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492520', 'tblTempUsageDetail_20' ) end [2025-02-17 01:58:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:58:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:58:27] Production.INFO: ==5717== Releasing lock... [2025-02-17 01:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:58:27] Production.INFO: 75.75 MB #Memory Used# [2025-02-17 01:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 22:59:06 [end_date_ymd] => 2025-02-17 01:59:06 [RateCDR] => 1 ) [2025-02-17 01:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 22:59:06' and `end` < '2025-02-17 01:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 01:59:22] Production.INFO: count ==6399 [2025-02-17 01:59:26] Production.ERROR: pbx CDR StartTime 2025-02-16 22:59:06 - End Time 2025-02-17 01:59:06 [2025-02-17 01:59:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 01:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492525', 'tblTempUsageDetail_20' ) start [2025-02-17 01:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492525', 'tblTempUsageDetail_20' ) end [2025-02-17 01:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492525', 'tblTempVendorCDR_20' ) start [2025-02-17 01:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492525', 'tblTempVendorCDR_20' ) end [2025-02-17 01:59:27] Production.INFO: ProcessCDR(1,14492525,1,1,2) [2025-02-17 01:59:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:59:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 01:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:59:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 01:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492525', 'tblTempUsageDetail_20' ) start [2025-02-17 01:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492525', 'tblTempUsageDetail_20' ) end [2025-02-17 01:59:30] Production.ERROR: pbx prc_insertCDR start [2025-02-17 01:59:30] Production.ERROR: pbx prc_insertCDR end [2025-02-17 01:59:30] Production.INFO: ==5798== Releasing lock... [2025-02-17 01:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 01:59:30] Production.INFO: 75.75 MB #Memory Used# [2025-02-17 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:00:07 [end_date_ymd] => 2025-02-17 02:00:07 [RateCDR] => 1 ) [2025-02-17 02:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:00:07' and `end` < '2025-02-17 02:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:00:20] Production.INFO: count ==6411 [2025-02-17 02:00:26] Production.ERROR: pbx CDR StartTime 2025-02-16 23:00:07 - End Time 2025-02-17 02:00:07 [2025-02-17 02:00:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492531', 'tblTempUsageDetail_20' ) start [2025-02-17 02:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492531', 'tblTempUsageDetail_20' ) end [2025-02-17 02:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492531', 'tblTempVendorCDR_20' ) start [2025-02-17 02:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492531', 'tblTempVendorCDR_20' ) end [2025-02-17 02:00:26] Production.INFO: ProcessCDR(1,14492531,1,1,2) [2025-02-17 02:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492531', 'tblTempUsageDetail_20' ) start [2025-02-17 02:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492531', 'tblTempUsageDetail_20' ) end [2025-02-17 02:00:30] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:00:30] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:00:30] Production.INFO: ==5938== Releasing lock... [2025-02-17 02:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:00:30] Production.INFO: 75.75 MB #Memory Used# [2025-02-17 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:01:06 [end_date_ymd] => 2025-02-17 02:01:06 [RateCDR] => 1 ) [2025-02-17 02:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:01:06' and `end` < '2025-02-17 02:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:01:19] Production.INFO: count ==6411 [2025-02-17 02:01:23] Production.ERROR: pbx CDR StartTime 2025-02-16 23:01:06 - End Time 2025-02-17 02:01:06 [2025-02-17 02:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492536', 'tblTempUsageDetail_20' ) start [2025-02-17 02:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492536', 'tblTempUsageDetail_20' ) end [2025-02-17 02:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492536', 'tblTempVendorCDR_20' ) start [2025-02-17 02:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492536', 'tblTempVendorCDR_20' ) end [2025-02-17 02:01:24] Production.INFO: ProcessCDR(1,14492536,1,1,2) [2025-02-17 02:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492536', 'tblTempUsageDetail_20' ) start [2025-02-17 02:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492536', 'tblTempUsageDetail_20' ) end [2025-02-17 02:01:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:01:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:01:27] Production.INFO: ==6144== Releasing lock... [2025-02-17 02:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:01:27] Production.INFO: 75.75 MB #Memory Used# [2025-02-17 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:02:05 [end_date_ymd] => 2025-02-17 02:02:05 [RateCDR] => 1 ) [2025-02-17 02:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:02:05' and `end` < '2025-02-17 02:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:02:19] Production.INFO: count ==6411 [2025-02-17 02:02:24] Production.ERROR: pbx CDR StartTime 2025-02-16 23:02:05 - End Time 2025-02-17 02:02:05 [2025-02-17 02:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492541', 'tblTempUsageDetail_20' ) start [2025-02-17 02:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492541', 'tblTempUsageDetail_20' ) end [2025-02-17 02:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492541', 'tblTempVendorCDR_20' ) start [2025-02-17 02:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492541', 'tblTempVendorCDR_20' ) end [2025-02-17 02:02:24] Production.INFO: ProcessCDR(1,14492541,1,1,2) [2025-02-17 02:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492541', 'tblTempUsageDetail_20' ) start [2025-02-17 02:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492541', 'tblTempUsageDetail_20' ) end [2025-02-17 02:02:28] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:02:28] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:02:28] Production.INFO: ==6230== Releasing lock... [2025-02-17 02:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:02:28] Production.INFO: 75.75 MB #Memory Used# [2025-02-17 02:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:03:06 [end_date_ymd] => 2025-02-17 02:03:06 [RateCDR] => 1 ) [2025-02-17 02:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:03:06' and `end` < '2025-02-17 02:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:03:20] Production.INFO: count ==6406 [2025-02-17 02:03:24] Production.ERROR: pbx CDR StartTime 2025-02-16 23:03:06 - End Time 2025-02-17 02:03:06 [2025-02-17 02:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492546', 'tblTempUsageDetail_20' ) start [2025-02-17 02:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492546', 'tblTempUsageDetail_20' ) end [2025-02-17 02:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492546', 'tblTempVendorCDR_20' ) start [2025-02-17 02:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492546', 'tblTempVendorCDR_20' ) end [2025-02-17 02:03:24] Production.INFO: ProcessCDR(1,14492546,1,1,2) [2025-02-17 02:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492546', 'tblTempUsageDetail_20' ) start [2025-02-17 02:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492546', 'tblTempUsageDetail_20' ) end [2025-02-17 02:03:28] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:03:28] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:03:28] Production.INFO: ==6327== Releasing lock... [2025-02-17 02:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:03:28] Production.INFO: 75.75 MB #Memory Used# [2025-02-17 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:04:05 [end_date_ymd] => 2025-02-17 02:04:05 [RateCDR] => 1 ) [2025-02-17 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-02-16 23:04:05' and `end` < '2025-02-17 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-02-17 02:04:19] Production.INFO: count ==6395 [2025-02-17 02:04:23] Production.ERROR: pbx CDR StartTime 2025-02-16 23:04:05 - End Time 2025-02-17 02:04:05 [2025-02-17 02:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492551', 'tblTempUsageDetail_20' ) start [2025-02-17 02:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492551', 'tblTempUsageDetail_20' ) end [2025-02-17 02:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492551', 'tblTempVendorCDR_20' ) start [2025-02-17 02:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492551', 'tblTempVendorCDR_20' ) end [2025-02-17 02:04:23] Production.INFO: ProcessCDR(1,14492551,1,1,2) [2025-02-17 02:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492551', 'tblTempUsageDetail_20' ) start [2025-02-17 02:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492551', 'tblTempUsageDetail_20' ) end [2025-02-17 02:04:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:04:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:04:27] Production.INFO: ==6421== Releasing lock... [2025-02-17 02:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:04:27] Production.INFO: 75.75 MB #Memory Used# [2025-02-17 02:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:05:06 [end_date_ymd] => 2025-02-17 02:05:06 [RateCDR] => 1 ) [2025-02-17 02:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:05:06' and `end` < '2025-02-17 02:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:05:22] Production.INFO: count ==6348 [2025-02-17 02:05:26] Production.ERROR: pbx CDR StartTime 2025-02-16 23:05:06 - End Time 2025-02-17 02:05:06 [2025-02-17 02:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492556', 'tblTempUsageDetail_20' ) start [2025-02-17 02:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492556', 'tblTempUsageDetail_20' ) end [2025-02-17 02:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492556', 'tblTempVendorCDR_20' ) start [2025-02-17 02:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492556', 'tblTempVendorCDR_20' ) end [2025-02-17 02:05:26] Production.INFO: ProcessCDR(1,14492556,1,1,2) [2025-02-17 02:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492556', 'tblTempUsageDetail_20' ) start [2025-02-17 02:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492556', 'tblTempUsageDetail_20' ) end [2025-02-17 02:05:30] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:05:30] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:05:30] Production.INFO: ==6498== Releasing lock... [2025-02-17 02:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:05:30] Production.INFO: 75.25 MB #Memory Used# [2025-02-17 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:06:05 [end_date_ymd] => 2025-02-17 02:06:05 [RateCDR] => 1 ) [2025-02-17 02:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:06:05' and `end` < '2025-02-17 02:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:06:19] Production.INFO: count ==6302 [2025-02-17 02:06:22] Production.ERROR: pbx CDR StartTime 2025-02-16 23:06:05 - End Time 2025-02-17 02:06:05 [2025-02-17 02:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492561', 'tblTempUsageDetail_20' ) start [2025-02-17 02:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492561', 'tblTempUsageDetail_20' ) end [2025-02-17 02:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492561', 'tblTempVendorCDR_20' ) start [2025-02-17 02:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492561', 'tblTempVendorCDR_20' ) end [2025-02-17 02:06:23] Production.INFO: ProcessCDR(1,14492561,1,1,2) [2025-02-17 02:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492561', 'tblTempUsageDetail_20' ) start [2025-02-17 02:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492561', 'tblTempUsageDetail_20' ) end [2025-02-17 02:06:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:06:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:06:26] Production.INFO: ==6586== Releasing lock... [2025-02-17 02:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:06:26] Production.INFO: 75 MB #Memory Used# [2025-02-17 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:07:05 [end_date_ymd] => 2025-02-17 02:07:05 [RateCDR] => 1 ) [2025-02-17 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:07:05' and `end` < '2025-02-17 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:07:19] Production.INFO: count ==6278 [2025-02-17 02:07:22] Production.ERROR: pbx CDR StartTime 2025-02-16 23:07:05 - End Time 2025-02-17 02:07:05 [2025-02-17 02:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492566', 'tblTempUsageDetail_20' ) start [2025-02-17 02:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492566', 'tblTempUsageDetail_20' ) end [2025-02-17 02:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492566', 'tblTempVendorCDR_20' ) start [2025-02-17 02:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492566', 'tblTempVendorCDR_20' ) end [2025-02-17 02:07:22] Production.INFO: ProcessCDR(1,14492566,1,1,2) [2025-02-17 02:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492566', 'tblTempUsageDetail_20' ) start [2025-02-17 02:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492566', 'tblTempUsageDetail_20' ) end [2025-02-17 02:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:07:26] Production.INFO: ==6667== Releasing lock... [2025-02-17 02:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:07:26] Production.INFO: 74.75 MB #Memory Used# [2025-02-17 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:08:05 [end_date_ymd] => 2025-02-17 02:08:05 [RateCDR] => 1 ) [2025-02-17 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:08:05' and `end` < '2025-02-17 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:08:20] Production.INFO: count ==6257 [2025-02-17 02:08:24] Production.ERROR: pbx CDR StartTime 2025-02-16 23:08:05 - End Time 2025-02-17 02:08:05 [2025-02-17 02:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492571', 'tblTempUsageDetail_20' ) start [2025-02-17 02:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492571', 'tblTempUsageDetail_20' ) end [2025-02-17 02:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492571', 'tblTempVendorCDR_20' ) start [2025-02-17 02:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492571', 'tblTempVendorCDR_20' ) end [2025-02-17 02:08:24] Production.INFO: ProcessCDR(1,14492571,1,1,2) [2025-02-17 02:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492571', 'tblTempUsageDetail_20' ) start [2025-02-17 02:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492571', 'tblTempUsageDetail_20' ) end [2025-02-17 02:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:08:28] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:08:28] Production.INFO: ==6748== Releasing lock... [2025-02-17 02:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:08:28] Production.INFO: 74.75 MB #Memory Used# [2025-02-17 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:09:05 [end_date_ymd] => 2025-02-17 02:09:05 [RateCDR] => 1 ) [2025-02-17 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:09:05' and `end` < '2025-02-17 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:09:20] Production.INFO: count ==6235 [2025-02-17 02:09:24] Production.ERROR: pbx CDR StartTime 2025-02-16 23:09:05 - End Time 2025-02-17 02:09:05 [2025-02-17 02:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492576', 'tblTempUsageDetail_20' ) start [2025-02-17 02:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492576', 'tblTempUsageDetail_20' ) end [2025-02-17 02:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492576', 'tblTempVendorCDR_20' ) start [2025-02-17 02:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492576', 'tblTempVendorCDR_20' ) end [2025-02-17 02:09:24] Production.INFO: ProcessCDR(1,14492576,1,1,2) [2025-02-17 02:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492576', 'tblTempUsageDetail_20' ) start [2025-02-17 02:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492576', 'tblTempUsageDetail_20' ) end [2025-02-17 02:09:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:09:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:09:27] Production.INFO: ==6835== Releasing lock... [2025-02-17 02:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:09:27] Production.INFO: 74.5 MB #Memory Used# [2025-02-17 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:10:06 [end_date_ymd] => 2025-02-17 02:10:06 [RateCDR] => 1 ) [2025-02-17 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-02-16 23:10:06' and `end` < '2025-02-17 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-02-17 02:10:19] Production.INFO: count ==6226 [2025-02-17 02:10:23] Production.ERROR: pbx CDR StartTime 2025-02-16 23:10:06 - End Time 2025-02-17 02:10:06 [2025-02-17 02:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492582', 'tblTempUsageDetail_20' ) start [2025-02-17 02:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492582', 'tblTempUsageDetail_20' ) end [2025-02-17 02:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492582', 'tblTempVendorCDR_20' ) start [2025-02-17 02:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492582', 'tblTempVendorCDR_20' ) end [2025-02-17 02:10:23] Production.INFO: ProcessCDR(1,14492582,1,1,2) [2025-02-17 02:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492582', 'tblTempUsageDetail_20' ) start [2025-02-17 02:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492582', 'tblTempUsageDetail_20' ) end [2025-02-17 02:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:10:26] Production.INFO: ==6917== Releasing lock... [2025-02-17 02:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:10:26] Production.INFO: 74.5 MB #Memory Used# [2025-02-17 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:11:05 [end_date_ymd] => 2025-02-17 02:11:05 [RateCDR] => 1 ) [2025-02-17 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:11:05' and `end` < '2025-02-17 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:11:21] Production.INFO: count ==6218 [2025-02-17 02:11:24] Production.ERROR: pbx CDR StartTime 2025-02-16 23:11:05 - End Time 2025-02-17 02:11:05 [2025-02-17 02:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492587', 'tblTempUsageDetail_20' ) start [2025-02-17 02:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492587', 'tblTempUsageDetail_20' ) end [2025-02-17 02:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492587', 'tblTempVendorCDR_20' ) start [2025-02-17 02:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492587', 'tblTempVendorCDR_20' ) end [2025-02-17 02:11:24] Production.INFO: ProcessCDR(1,14492587,1,1,2) [2025-02-17 02:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492587', 'tblTempUsageDetail_20' ) start [2025-02-17 02:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492587', 'tblTempUsageDetail_20' ) end [2025-02-17 02:11:28] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:11:28] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:11:28] Production.INFO: ==7006== Releasing lock... [2025-02-17 02:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:11:28] Production.INFO: 74.5 MB #Memory Used# [2025-02-17 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:12:05 [end_date_ymd] => 2025-02-17 02:12:05 [RateCDR] => 1 ) [2025-02-17 02:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:12:05' and `end` < '2025-02-17 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-02-17 02:12:19] Production.INFO: count ==6209 [2025-02-17 02:12:23] Production.ERROR: pbx CDR StartTime 2025-02-16 23:12:05 - End Time 2025-02-17 02:12:05 [2025-02-17 02:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492592', 'tblTempUsageDetail_20' ) start [2025-02-17 02:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492592', 'tblTempUsageDetail_20' ) end [2025-02-17 02:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492592', 'tblTempVendorCDR_20' ) start [2025-02-17 02:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492592', 'tblTempVendorCDR_20' ) end [2025-02-17 02:12:23] Production.INFO: ProcessCDR(1,14492592,1,1,2) [2025-02-17 02:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492592', 'tblTempUsageDetail_20' ) start [2025-02-17 02:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492592', 'tblTempUsageDetail_20' ) end [2025-02-17 02:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:12:26] Production.INFO: ==7089== Releasing lock... [2025-02-17 02:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:12:26] Production.INFO: 74.25 MB #Memory Used# [2025-02-17 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:13:05 [end_date_ymd] => 2025-02-17 02:13:05 [RateCDR] => 1 ) [2025-02-17 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:13:05' and `end` < '2025-02-17 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:13:19] Production.INFO: count ==6205 [2025-02-17 02:13:22] Production.ERROR: pbx CDR StartTime 2025-02-16 23:13:05 - End Time 2025-02-17 02:13:05 [2025-02-17 02:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492597', 'tblTempUsageDetail_20' ) start [2025-02-17 02:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492597', 'tblTempUsageDetail_20' ) end [2025-02-17 02:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492597', 'tblTempVendorCDR_20' ) start [2025-02-17 02:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492597', 'tblTempVendorCDR_20' ) end [2025-02-17 02:13:23] Production.INFO: ProcessCDR(1,14492597,1,1,2) [2025-02-17 02:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492597', 'tblTempUsageDetail_20' ) start [2025-02-17 02:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492597', 'tblTempUsageDetail_20' ) end [2025-02-17 02:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:13:26] Production.INFO: ==7168== Releasing lock... [2025-02-17 02:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:13:26] Production.INFO: 74.25 MB #Memory Used# [2025-02-17 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:14:05 [end_date_ymd] => 2025-02-17 02:14:05 [RateCDR] => 1 ) [2025-02-17 02:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:14:05' and `end` < '2025-02-17 02:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:14:19] Production.INFO: count ==6193 [2025-02-17 02:14:22] Production.ERROR: pbx CDR StartTime 2025-02-16 23:14:05 - End Time 2025-02-17 02:14:05 [2025-02-17 02:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492602', 'tblTempUsageDetail_20' ) start [2025-02-17 02:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492602', 'tblTempUsageDetail_20' ) end [2025-02-17 02:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492602', 'tblTempVendorCDR_20' ) start [2025-02-17 02:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492602', 'tblTempVendorCDR_20' ) end [2025-02-17 02:14:22] Production.INFO: ProcessCDR(1,14492602,1,1,2) [2025-02-17 02:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492602', 'tblTempUsageDetail_20' ) start [2025-02-17 02:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492602', 'tblTempUsageDetail_20' ) end [2025-02-17 02:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:14:26] Production.INFO: ==7248== Releasing lock... [2025-02-17 02:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:14:26] Production.INFO: 74.25 MB #Memory Used# [2025-02-17 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:15:05 [end_date_ymd] => 2025-02-17 02:15:05 [RateCDR] => 1 ) [2025-02-17 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:15:05' and `end` < '2025-02-17 02:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:15:19] Production.INFO: count ==6119 [2025-02-17 02:15:22] Production.ERROR: pbx CDR StartTime 2025-02-16 23:15:05 - End Time 2025-02-17 02:15:05 [2025-02-17 02:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492607', 'tblTempUsageDetail_20' ) start [2025-02-17 02:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492607', 'tblTempUsageDetail_20' ) end [2025-02-17 02:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492607', 'tblTempVendorCDR_20' ) start [2025-02-17 02:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492607', 'tblTempVendorCDR_20' ) end [2025-02-17 02:15:22] Production.INFO: ProcessCDR(1,14492607,1,1,2) [2025-02-17 02:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492607', 'tblTempUsageDetail_20' ) start [2025-02-17 02:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492607', 'tblTempUsageDetail_20' ) end [2025-02-17 02:15:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:15:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:15:26] Production.INFO: ==7371== Releasing lock... [2025-02-17 02:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:15:26] Production.INFO: 73.75 MB #Memory Used# [2025-02-17 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:16:05 [end_date_ymd] => 2025-02-17 02:16:05 [RateCDR] => 1 ) [2025-02-17 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:16:05' and `end` < '2025-02-17 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:16:18] Production.INFO: count ==6073 [2025-02-17 02:16:21] Production.ERROR: pbx CDR StartTime 2025-02-16 23:16:05 - End Time 2025-02-17 02:16:05 [2025-02-17 02:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492612', 'tblTempUsageDetail_20' ) start [2025-02-17 02:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492612', 'tblTempUsageDetail_20' ) end [2025-02-17 02:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492612', 'tblTempVendorCDR_20' ) start [2025-02-17 02:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492612', 'tblTempVendorCDR_20' ) end [2025-02-17 02:16:22] Production.INFO: ProcessCDR(1,14492612,1,1,2) [2025-02-17 02:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492612', 'tblTempUsageDetail_20' ) start [2025-02-17 02:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492612', 'tblTempUsageDetail_20' ) end [2025-02-17 02:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:16:25] Production.INFO: ==7455== Releasing lock... [2025-02-17 02:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:16:25] Production.INFO: 73.25 MB #Memory Used# [2025-02-17 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:17:05 [end_date_ymd] => 2025-02-17 02:17:05 [RateCDR] => 1 ) [2025-02-17 02:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:17:05' and `end` < '2025-02-17 02:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:17:21] Production.INFO: count ==6031 [2025-02-17 02:17:24] Production.ERROR: pbx CDR StartTime 2025-02-16 23:17:05 - End Time 2025-02-17 02:17:05 [2025-02-17 02:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492617', 'tblTempUsageDetail_20' ) start [2025-02-17 02:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492617', 'tblTempUsageDetail_20' ) end [2025-02-17 02:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492617', 'tblTempVendorCDR_20' ) start [2025-02-17 02:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492617', 'tblTempVendorCDR_20' ) end [2025-02-17 02:17:24] Production.INFO: ProcessCDR(1,14492617,1,1,2) [2025-02-17 02:17:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492617', 'tblTempUsageDetail_20' ) start [2025-02-17 02:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492617', 'tblTempUsageDetail_20' ) end [2025-02-17 02:17:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:17:27] Production.INFO: ==7540== Releasing lock... [2025-02-17 02:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:17:27] Production.INFO: 73 MB #Memory Used# [2025-02-17 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:18:05 [end_date_ymd] => 2025-02-17 02:18:05 [RateCDR] => 1 ) [2025-02-17 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:18:05' and `end` < '2025-02-17 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:18:19] Production.INFO: count ==6019 [2025-02-17 02:18:22] Production.ERROR: pbx CDR StartTime 2025-02-16 23:18:05 - End Time 2025-02-17 02:18:05 [2025-02-17 02:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492622', 'tblTempUsageDetail_20' ) start [2025-02-17 02:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492622', 'tblTempUsageDetail_20' ) end [2025-02-17 02:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492622', 'tblTempVendorCDR_20' ) start [2025-02-17 02:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492622', 'tblTempVendorCDR_20' ) end [2025-02-17 02:18:22] Production.INFO: ProcessCDR(1,14492622,1,1,2) [2025-02-17 02:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492622', 'tblTempUsageDetail_20' ) start [2025-02-17 02:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492622', 'tblTempUsageDetail_20' ) end [2025-02-17 02:18:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:18:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:18:26] Production.INFO: ==7617== Releasing lock... [2025-02-17 02:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:18:26] Production.INFO: 73 MB #Memory Used# [2025-02-17 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:19:05 [end_date_ymd] => 2025-02-17 02:19:05 [RateCDR] => 1 ) [2025-02-17 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:19:05' and `end` < '2025-02-17 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:19:19] Production.INFO: count ==5983 [2025-02-17 02:19:22] Production.ERROR: pbx CDR StartTime 2025-02-16 23:19:05 - End Time 2025-02-17 02:19:05 [2025-02-17 02:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492627', 'tblTempUsageDetail_20' ) start [2025-02-17 02:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492627', 'tblTempUsageDetail_20' ) end [2025-02-17 02:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492627', 'tblTempVendorCDR_20' ) start [2025-02-17 02:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492627', 'tblTempVendorCDR_20' ) end [2025-02-17 02:19:22] Production.INFO: ProcessCDR(1,14492627,1,1,2) [2025-02-17 02:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492627', 'tblTempUsageDetail_20' ) start [2025-02-17 02:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492627', 'tblTempUsageDetail_20' ) end [2025-02-17 02:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:19:25] Production.INFO: ==7717== Releasing lock... [2025-02-17 02:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:19:25] Production.INFO: 72.75 MB #Memory Used# [2025-02-17 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:20:06 [end_date_ymd] => 2025-02-17 02:20:06 [RateCDR] => 1 ) [2025-02-17 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-02-16 23:20:06' and `end` < '2025-02-17 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-02-17 02:20:20] Production.INFO: count ==5983 [2025-02-17 02:20:23] Production.ERROR: pbx CDR StartTime 2025-02-16 23:20:06 - End Time 2025-02-17 02:20:06 [2025-02-17 02:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492632', 'tblTempUsageDetail_20' ) start [2025-02-17 02:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492632', 'tblTempUsageDetail_20' ) end [2025-02-17 02:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492632', 'tblTempVendorCDR_20' ) start [2025-02-17 02:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492632', 'tblTempVendorCDR_20' ) end [2025-02-17 02:20:24] Production.INFO: ProcessCDR(1,14492632,1,1,2) [2025-02-17 02:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492632', 'tblTempUsageDetail_20' ) start [2025-02-17 02:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492632', 'tblTempUsageDetail_20' ) end [2025-02-17 02:20:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:20:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:20:27] Production.INFO: ==7807== Releasing lock... [2025-02-17 02:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:20:27] Production.INFO: 72.75 MB #Memory Used# [2025-02-17 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:21:05 [end_date_ymd] => 2025-02-17 02:21:05 [RateCDR] => 1 ) [2025-02-17 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-02-16 23:21:05' and `end` < '2025-02-17 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-02-17 02:21:18] Production.INFO: count ==5983 [2025-02-17 02:21:22] Production.ERROR: pbx CDR StartTime 2025-02-16 23:21:05 - End Time 2025-02-17 02:21:05 [2025-02-17 02:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492638', 'tblTempUsageDetail_20' ) start [2025-02-17 02:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492638', 'tblTempUsageDetail_20' ) end [2025-02-17 02:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492638', 'tblTempVendorCDR_20' ) start [2025-02-17 02:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492638', 'tblTempVendorCDR_20' ) end [2025-02-17 02:21:22] Production.INFO: ProcessCDR(1,14492638,1,1,2) [2025-02-17 02:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492638', 'tblTempUsageDetail_20' ) start [2025-02-17 02:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492638', 'tblTempUsageDetail_20' ) end [2025-02-17 02:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:21:25] Production.INFO: ==7886== Releasing lock... [2025-02-17 02:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:21:25] Production.INFO: 72.75 MB #Memory Used# [2025-02-17 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:22:05 [end_date_ymd] => 2025-02-17 02:22:05 [RateCDR] => 1 ) [2025-02-17 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:22:05' and `end` < '2025-02-17 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:22:19] Production.INFO: count ==5983 [2025-02-17 02:22:23] Production.ERROR: pbx CDR StartTime 2025-02-16 23:22:05 - End Time 2025-02-17 02:22:05 [2025-02-17 02:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492643', 'tblTempUsageDetail_20' ) start [2025-02-17 02:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492643', 'tblTempUsageDetail_20' ) end [2025-02-17 02:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492643', 'tblTempVendorCDR_20' ) start [2025-02-17 02:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492643', 'tblTempVendorCDR_20' ) end [2025-02-17 02:22:23] Production.INFO: ProcessCDR(1,14492643,1,1,2) [2025-02-17 02:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492643', 'tblTempUsageDetail_20' ) start [2025-02-17 02:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492643', 'tblTempUsageDetail_20' ) end [2025-02-17 02:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:22:26] Production.INFO: ==7970== Releasing lock... [2025-02-17 02:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:22:26] Production.INFO: 72.75 MB #Memory Used# [2025-02-17 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:23:05 [end_date_ymd] => 2025-02-17 02:23:05 [RateCDR] => 1 ) [2025-02-17 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:23:05' and `end` < '2025-02-17 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:23:19] Production.INFO: count ==5983 [2025-02-17 02:23:23] Production.ERROR: pbx CDR StartTime 2025-02-16 23:23:05 - End Time 2025-02-17 02:23:05 [2025-02-17 02:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492648', 'tblTempUsageDetail_20' ) start [2025-02-17 02:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492648', 'tblTempUsageDetail_20' ) end [2025-02-17 02:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492648', 'tblTempVendorCDR_20' ) start [2025-02-17 02:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492648', 'tblTempVendorCDR_20' ) end [2025-02-17 02:23:23] Production.INFO: ProcessCDR(1,14492648,1,1,2) [2025-02-17 02:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492648', 'tblTempUsageDetail_20' ) start [2025-02-17 02:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492648', 'tblTempUsageDetail_20' ) end [2025-02-17 02:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:23:26] Production.INFO: ==8056== Releasing lock... [2025-02-17 02:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:23:26] Production.INFO: 72.75 MB #Memory Used# [2025-02-17 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:24:05 [end_date_ymd] => 2025-02-17 02:24:05 [RateCDR] => 1 ) [2025-02-17 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:24:05' and `end` < '2025-02-17 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:24:19] Production.INFO: count ==5907 [2025-02-17 02:24:22] Production.ERROR: pbx CDR StartTime 2025-02-16 23:24:05 - End Time 2025-02-17 02:24:05 [2025-02-17 02:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492653', 'tblTempUsageDetail_20' ) start [2025-02-17 02:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492653', 'tblTempUsageDetail_20' ) end [2025-02-17 02:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492653', 'tblTempVendorCDR_20' ) start [2025-02-17 02:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492653', 'tblTempVendorCDR_20' ) end [2025-02-17 02:24:22] Production.INFO: ProcessCDR(1,14492653,1,1,2) [2025-02-17 02:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492653', 'tblTempUsageDetail_20' ) start [2025-02-17 02:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492653', 'tblTempUsageDetail_20' ) end [2025-02-17 02:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:24:25] Production.INFO: ==8144== Releasing lock... [2025-02-17 02:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:24:25] Production.INFO: 72 MB #Memory Used# [2025-02-17 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:25:05 [end_date_ymd] => 2025-02-17 02:25:05 [RateCDR] => 1 ) [2025-02-17 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-02-16 23:25:05' and `end` < '2025-02-17 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-02-17 02:25:18] Production.INFO: count ==5789 [2025-02-17 02:25:21] Production.ERROR: pbx CDR StartTime 2025-02-16 23:25:05 - End Time 2025-02-17 02:25:05 [2025-02-17 02:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492658', 'tblTempUsageDetail_20' ) start [2025-02-17 02:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492658', 'tblTempUsageDetail_20' ) end [2025-02-17 02:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492658', 'tblTempVendorCDR_20' ) start [2025-02-17 02:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492658', 'tblTempVendorCDR_20' ) end [2025-02-17 02:25:21] Production.INFO: ProcessCDR(1,14492658,1,1,2) [2025-02-17 02:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492658', 'tblTempUsageDetail_20' ) start [2025-02-17 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492658', 'tblTempUsageDetail_20' ) end [2025-02-17 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:25:25] Production.INFO: ==8227== Releasing lock... [2025-02-17 02:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:25:25] Production.INFO: 71.25 MB #Memory Used# [2025-02-17 02:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:26:06 [end_date_ymd] => 2025-02-17 02:26:06 [RateCDR] => 1 ) [2025-02-17 02:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:26:06' and `end` < '2025-02-17 02:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:26:19] Production.INFO: count ==5651 [2025-02-17 02:26:22] Production.ERROR: pbx CDR StartTime 2025-02-16 23:26:06 - End Time 2025-02-17 02:26:06 [2025-02-17 02:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492663', 'tblTempUsageDetail_20' ) start [2025-02-17 02:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492663', 'tblTempUsageDetail_20' ) end [2025-02-17 02:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492663', 'tblTempVendorCDR_20' ) start [2025-02-17 02:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492663', 'tblTempVendorCDR_20' ) end [2025-02-17 02:26:22] Production.INFO: ProcessCDR(1,14492663,1,1,2) [2025-02-17 02:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492663', 'tblTempUsageDetail_20' ) start [2025-02-17 02:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492663', 'tblTempUsageDetail_20' ) end [2025-02-17 02:26:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:26:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:26:26] Production.INFO: ==8318== Releasing lock... [2025-02-17 02:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:26:26] Production.INFO: 70.25 MB #Memory Used# [2025-02-17 02:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:27:04 [end_date_ymd] => 2025-02-17 02:27:04 [RateCDR] => 1 ) [2025-02-17 02:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:27:04' and `end` < '2025-02-17 02:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:27:18] Production.INFO: count ==5507 [2025-02-17 02:27:21] Production.ERROR: pbx CDR StartTime 2025-02-16 23:27:04 - End Time 2025-02-17 02:27:04 [2025-02-17 02:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492668', 'tblTempUsageDetail_20' ) start [2025-02-17 02:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492668', 'tblTempUsageDetail_20' ) end [2025-02-17 02:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492668', 'tblTempVendorCDR_20' ) start [2025-02-17 02:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492668', 'tblTempVendorCDR_20' ) end [2025-02-17 02:27:22] Production.INFO: ProcessCDR(1,14492668,1,1,2) [2025-02-17 02:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492668', 'tblTempUsageDetail_20' ) start [2025-02-17 02:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492668', 'tblTempUsageDetail_20' ) end [2025-02-17 02:27:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:27:25] Production.INFO: ==8412== Releasing lock... [2025-02-17 02:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:27:25] Production.INFO: 69 MB #Memory Used# [2025-02-17 02:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:28:06 [end_date_ymd] => 2025-02-17 02:28:06 [RateCDR] => 1 ) [2025-02-17 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-02-16 23:28:06' and `end` < '2025-02-17 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-02-17 02:28:19] Production.INFO: count ==5364 [2025-02-17 02:28:22] Production.ERROR: pbx CDR StartTime 2025-02-16 23:28:06 - End Time 2025-02-17 02:28:06 [2025-02-17 02:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492673', 'tblTempUsageDetail_20' ) start [2025-02-17 02:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492673', 'tblTempUsageDetail_20' ) end [2025-02-17 02:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492673', 'tblTempVendorCDR_20' ) start [2025-02-17 02:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492673', 'tblTempVendorCDR_20' ) end [2025-02-17 02:28:22] Production.INFO: ProcessCDR(1,14492673,1,1,2) [2025-02-17 02:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492673', 'tblTempUsageDetail_20' ) start [2025-02-17 02:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492673', 'tblTempUsageDetail_20' ) end [2025-02-17 02:28:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:28:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:28:25] Production.INFO: ==8504== Releasing lock... [2025-02-17 02:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:28:25] Production.INFO: 68 MB #Memory Used# [2025-02-17 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:29:05 [end_date_ymd] => 2025-02-17 02:29:05 [RateCDR] => 1 ) [2025-02-17 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:29:05' and `end` < '2025-02-17 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:29:19] Production.INFO: count ==5226 [2025-02-17 02:29:21] Production.ERROR: pbx CDR StartTime 2025-02-16 23:29:05 - End Time 2025-02-17 02:29:05 [2025-02-17 02:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492678', 'tblTempUsageDetail_20' ) start [2025-02-17 02:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492678', 'tblTempUsageDetail_20' ) end [2025-02-17 02:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492678', 'tblTempVendorCDR_20' ) start [2025-02-17 02:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492678', 'tblTempVendorCDR_20' ) end [2025-02-17 02:29:22] Production.INFO: ProcessCDR(1,14492678,1,1,2) [2025-02-17 02:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492678', 'tblTempUsageDetail_20' ) start [2025-02-17 02:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492678', 'tblTempUsageDetail_20' ) end [2025-02-17 02:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:29:25] Production.INFO: ==8593== Releasing lock... [2025-02-17 02:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:29:25] Production.INFO: 67 MB #Memory Used# [2025-02-17 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:30:06 [end_date_ymd] => 2025-02-17 02:30:06 [RateCDR] => 1 ) [2025-02-17 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-02-16 23:30:06' and `end` < '2025-02-17 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-02-17 02:30:19] Production.INFO: count ==5041 [2025-02-17 02:30:22] Production.ERROR: pbx CDR StartTime 2025-02-16 23:30:06 - End Time 2025-02-17 02:30:06 [2025-02-17 02:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492684', 'tblTempUsageDetail_20' ) start [2025-02-17 02:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492684', 'tblTempUsageDetail_20' ) end [2025-02-17 02:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492684', 'tblTempVendorCDR_20' ) start [2025-02-17 02:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492684', 'tblTempVendorCDR_20' ) end [2025-02-17 02:30:22] Production.INFO: ProcessCDR(1,14492684,1,1,2) [2025-02-17 02:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492684', 'tblTempUsageDetail_20' ) start [2025-02-17 02:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492684', 'tblTempUsageDetail_20' ) end [2025-02-17 02:30:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:30:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:30:25] Production.INFO: ==8684== Releasing lock... [2025-02-17 02:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:30:25] Production.INFO: 65.5 MB #Memory Used# [2025-02-17 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:31:05 [end_date_ymd] => 2025-02-17 02:31:05 [RateCDR] => 1 ) [2025-02-17 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:31:05' and `end` < '2025-02-17 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:31:18] Production.INFO: count ==4857 [2025-02-17 02:31:21] Production.ERROR: pbx CDR StartTime 2025-02-16 23:31:05 - End Time 2025-02-17 02:31:05 [2025-02-17 02:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492689', 'tblTempUsageDetail_20' ) start [2025-02-17 02:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492689', 'tblTempUsageDetail_20' ) end [2025-02-17 02:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492689', 'tblTempVendorCDR_20' ) start [2025-02-17 02:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492689', 'tblTempVendorCDR_20' ) end [2025-02-17 02:31:21] Production.INFO: ProcessCDR(1,14492689,1,1,2) [2025-02-17 02:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492689', 'tblTempUsageDetail_20' ) start [2025-02-17 02:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492689', 'tblTempUsageDetail_20' ) end [2025-02-17 02:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:31:24] Production.INFO: ==8814== Releasing lock... [2025-02-17 02:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:31:24] Production.INFO: 64.25 MB #Memory Used# [2025-02-17 02:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:32:05 [end_date_ymd] => 2025-02-17 02:32:05 [RateCDR] => 1 ) [2025-02-17 02:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:32:05' and `end` < '2025-02-17 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-02-17 02:32:19] Production.INFO: count ==4667 [2025-02-17 02:32:21] Production.ERROR: pbx CDR StartTime 2025-02-16 23:32:05 - End Time 2025-02-17 02:32:05 [2025-02-17 02:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492694', 'tblTempUsageDetail_20' ) start [2025-02-17 02:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492694', 'tblTempUsageDetail_20' ) end [2025-02-17 02:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492694', 'tblTempVendorCDR_20' ) start [2025-02-17 02:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492694', 'tblTempVendorCDR_20' ) end [2025-02-17 02:32:21] Production.INFO: ProcessCDR(1,14492694,1,1,2) [2025-02-17 02:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492694', 'tblTempUsageDetail_20' ) start [2025-02-17 02:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492694', 'tblTempUsageDetail_20' ) end [2025-02-17 02:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:32:24] Production.INFO: ==8891== Releasing lock... [2025-02-17 02:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:32:24] Production.INFO: 62.75 MB #Memory Used# [2025-02-17 02:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:33:06 [end_date_ymd] => 2025-02-17 02:33:06 [RateCDR] => 1 ) [2025-02-17 02:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:33:06' and `end` < '2025-02-17 02:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:33:19] Production.INFO: count ==4608 [2025-02-17 02:33:21] Production.ERROR: pbx CDR StartTime 2025-02-16 23:33:06 - End Time 2025-02-17 02:33:06 [2025-02-17 02:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492699', 'tblTempUsageDetail_20' ) start [2025-02-17 02:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492699', 'tblTempUsageDetail_20' ) end [2025-02-17 02:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492699', 'tblTempVendorCDR_20' ) start [2025-02-17 02:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492699', 'tblTempVendorCDR_20' ) end [2025-02-17 02:33:21] Production.INFO: ProcessCDR(1,14492699,1,1,2) [2025-02-17 02:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492699', 'tblTempUsageDetail_20' ) start [2025-02-17 02:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492699', 'tblTempUsageDetail_20' ) end [2025-02-17 02:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:33:25] Production.INFO: ==8977== Releasing lock... [2025-02-17 02:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:33:25] Production.INFO: 62.25 MB #Memory Used# [2025-02-17 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:34:05 [end_date_ymd] => 2025-02-17 02:34:05 [RateCDR] => 1 ) [2025-02-17 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-02-16 23:34:05' and `end` < '2025-02-17 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-02-17 02:34:18] Production.INFO: count ==4568 [2025-02-17 02:34:21] Production.ERROR: pbx CDR StartTime 2025-02-16 23:34:05 - End Time 2025-02-17 02:34:05 [2025-02-17 02:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492704', 'tblTempUsageDetail_20' ) start [2025-02-17 02:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492704', 'tblTempUsageDetail_20' ) end [2025-02-17 02:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492704', 'tblTempVendorCDR_20' ) start [2025-02-17 02:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492704', 'tblTempVendorCDR_20' ) end [2025-02-17 02:34:21] Production.INFO: ProcessCDR(1,14492704,1,1,2) [2025-02-17 02:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492704', 'tblTempUsageDetail_20' ) start [2025-02-17 02:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492704', 'tblTempUsageDetail_20' ) end [2025-02-17 02:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:34:25] Production.INFO: ==9068== Releasing lock... [2025-02-17 02:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:34:25] Production.INFO: 62 MB #Memory Used# [2025-02-17 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:35:05 [end_date_ymd] => 2025-02-17 02:35:05 [RateCDR] => 1 ) [2025-02-17 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-02-16 23:35:05' and `end` < '2025-02-17 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-02-17 02:35:19] Production.INFO: count ==4533 [2025-02-17 02:35:22] Production.ERROR: pbx CDR StartTime 2025-02-16 23:35:05 - End Time 2025-02-17 02:35:05 [2025-02-17 02:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492709', 'tblTempUsageDetail_20' ) start [2025-02-17 02:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492709', 'tblTempUsageDetail_20' ) end [2025-02-17 02:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492709', 'tblTempVendorCDR_20' ) start [2025-02-17 02:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492709', 'tblTempVendorCDR_20' ) end [2025-02-17 02:35:22] Production.INFO: ProcessCDR(1,14492709,1,1,2) [2025-02-17 02:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492709', 'tblTempUsageDetail_20' ) start [2025-02-17 02:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492709', 'tblTempUsageDetail_20' ) end [2025-02-17 02:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:35:25] Production.INFO: ==9154== Releasing lock... [2025-02-17 02:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:35:25] Production.INFO: 61.75 MB #Memory Used# [2025-02-17 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:36:05 [end_date_ymd] => 2025-02-17 02:36:05 [RateCDR] => 1 ) [2025-02-17 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-02-16 23:36:05' and `end` < '2025-02-17 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-02-17 02:36:19] Production.INFO: count ==4492 [2025-02-17 02:36:21] Production.ERROR: pbx CDR StartTime 2025-02-16 23:36:05 - End Time 2025-02-17 02:36:05 [2025-02-17 02:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492714', 'tblTempUsageDetail_20' ) start [2025-02-17 02:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492714', 'tblTempUsageDetail_20' ) end [2025-02-17 02:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492714', 'tblTempVendorCDR_20' ) start [2025-02-17 02:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492714', 'tblTempVendorCDR_20' ) end [2025-02-17 02:36:21] Production.INFO: ProcessCDR(1,14492714,1,1,2) [2025-02-17 02:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492714', 'tblTempUsageDetail_20' ) start [2025-02-17 02:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492714', 'tblTempUsageDetail_20' ) end [2025-02-17 02:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:36:24] Production.INFO: ==9240== Releasing lock... [2025-02-17 02:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:36:24] Production.INFO: 61.5 MB #Memory Used# [2025-02-17 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:37:05 [end_date_ymd] => 2025-02-17 02:37:05 [RateCDR] => 1 ) [2025-02-17 02:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:37:05' and `end` < '2025-02-17 02:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:37:18] Production.INFO: count ==4449 [2025-02-17 02:37:21] Production.ERROR: pbx CDR StartTime 2025-02-16 23:37:05 - End Time 2025-02-17 02:37:05 [2025-02-17 02:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492719', 'tblTempUsageDetail_20' ) start [2025-02-17 02:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492719', 'tblTempUsageDetail_20' ) end [2025-02-17 02:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492719', 'tblTempVendorCDR_20' ) start [2025-02-17 02:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492719', 'tblTempVendorCDR_20' ) end [2025-02-17 02:37:21] Production.INFO: ProcessCDR(1,14492719,1,1,2) [2025-02-17 02:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492719', 'tblTempUsageDetail_20' ) start [2025-02-17 02:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492719', 'tblTempUsageDetail_20' ) end [2025-02-17 02:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:37:24] Production.INFO: ==9325== Releasing lock... [2025-02-17 02:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:37:24] Production.INFO: 61.25 MB #Memory Used# [2025-02-17 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:38:05 [end_date_ymd] => 2025-02-17 02:38:05 [RateCDR] => 1 ) [2025-02-17 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:38:05' and `end` < '2025-02-17 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:38:19] Production.INFO: count ==4406 [2025-02-17 02:38:22] Production.ERROR: pbx CDR StartTime 2025-02-16 23:38:05 - End Time 2025-02-17 02:38:05 [2025-02-17 02:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492724', 'tblTempUsageDetail_20' ) start [2025-02-17 02:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492724', 'tblTempUsageDetail_20' ) end [2025-02-17 02:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492724', 'tblTempVendorCDR_20' ) start [2025-02-17 02:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492724', 'tblTempVendorCDR_20' ) end [2025-02-17 02:38:22] Production.INFO: ProcessCDR(1,14492724,1,1,2) [2025-02-17 02:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492724', 'tblTempUsageDetail_20' ) start [2025-02-17 02:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492724', 'tblTempUsageDetail_20' ) end [2025-02-17 02:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:38:25] Production.INFO: ==9414== Releasing lock... [2025-02-17 02:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:38:25] Production.INFO: 60.75 MB #Memory Used# [2025-02-17 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:39:05 [end_date_ymd] => 2025-02-17 02:39:05 [RateCDR] => 1 ) [2025-02-17 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-02-16 23:39:05' and `end` < '2025-02-17 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-02-17 02:39:18] Production.INFO: count ==4360 [2025-02-17 02:39:20] Production.ERROR: pbx CDR StartTime 2025-02-16 23:39:05 - End Time 2025-02-17 02:39:05 [2025-02-17 02:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492729', 'tblTempUsageDetail_20' ) start [2025-02-17 02:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492729', 'tblTempUsageDetail_20' ) end [2025-02-17 02:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492729', 'tblTempVendorCDR_20' ) start [2025-02-17 02:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492729', 'tblTempVendorCDR_20' ) end [2025-02-17 02:39:21] Production.INFO: ProcessCDR(1,14492729,1,1,2) [2025-02-17 02:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492729', 'tblTempUsageDetail_20' ) start [2025-02-17 02:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492729', 'tblTempUsageDetail_20' ) end [2025-02-17 02:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:39:24] Production.INFO: ==9503== Releasing lock... [2025-02-17 02:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:39:24] Production.INFO: 60.5 MB #Memory Used# [2025-02-17 02:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:40:05 [end_date_ymd] => 2025-02-17 02:40:05 [RateCDR] => 1 ) [2025-02-17 02:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:40:05' and `end` < '2025-02-17 02:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:40:19] Production.INFO: count ==4386 [2025-02-17 02:40:21] Production.ERROR: pbx CDR StartTime 2025-02-16 23:40:05 - End Time 2025-02-17 02:40:05 [2025-02-17 02:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492735', 'tblTempUsageDetail_20' ) start [2025-02-17 02:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492735', 'tblTempUsageDetail_20' ) end [2025-02-17 02:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492735', 'tblTempVendorCDR_20' ) start [2025-02-17 02:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492735', 'tblTempVendorCDR_20' ) end [2025-02-17 02:40:21] Production.INFO: ProcessCDR(1,14492735,1,1,2) [2025-02-17 02:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492735', 'tblTempUsageDetail_20' ) start [2025-02-17 02:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492735', 'tblTempUsageDetail_20' ) end [2025-02-17 02:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:40:24] Production.INFO: ==9587== Releasing lock... [2025-02-17 02:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:40:24] Production.INFO: 60.75 MB #Memory Used# [2025-02-17 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:41:05 [end_date_ymd] => 2025-02-17 02:41:05 [RateCDR] => 1 ) [2025-02-17 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:41:05' and `end` < '2025-02-17 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:41:19] Production.INFO: count ==4374 [2025-02-17 02:41:21] Production.ERROR: pbx CDR StartTime 2025-02-16 23:41:05 - End Time 2025-02-17 02:41:05 [2025-02-17 02:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492740', 'tblTempUsageDetail_20' ) start [2025-02-17 02:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492740', 'tblTempUsageDetail_20' ) end [2025-02-17 02:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492740', 'tblTempVendorCDR_20' ) start [2025-02-17 02:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492740', 'tblTempVendorCDR_20' ) end [2025-02-17 02:41:22] Production.INFO: ProcessCDR(1,14492740,1,1,2) [2025-02-17 02:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492740', 'tblTempUsageDetail_20' ) start [2025-02-17 02:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492740', 'tblTempUsageDetail_20' ) end [2025-02-17 02:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:41:25] Production.INFO: ==9687== Releasing lock... [2025-02-17 02:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:41:25] Production.INFO: 60.5 MB #Memory Used# [2025-02-17 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:42:05 [end_date_ymd] => 2025-02-17 02:42:05 [RateCDR] => 1 ) [2025-02-17 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:42:05' and `end` < '2025-02-17 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:42:18] Production.INFO: count ==4351 [2025-02-17 02:42:20] Production.ERROR: pbx CDR StartTime 2025-02-16 23:42:05 - End Time 2025-02-17 02:42:05 [2025-02-17 02:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492745', 'tblTempUsageDetail_20' ) start [2025-02-17 02:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492745', 'tblTempUsageDetail_20' ) end [2025-02-17 02:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492745', 'tblTempVendorCDR_20' ) start [2025-02-17 02:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492745', 'tblTempVendorCDR_20' ) end [2025-02-17 02:42:21] Production.INFO: ProcessCDR(1,14492745,1,1,2) [2025-02-17 02:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492745', 'tblTempUsageDetail_20' ) start [2025-02-17 02:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492745', 'tblTempUsageDetail_20' ) end [2025-02-17 02:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:42:24] Production.INFO: ==9769== Releasing lock... [2025-02-17 02:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:42:24] Production.INFO: 60.5 MB #Memory Used# [2025-02-17 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:43:05 [end_date_ymd] => 2025-02-17 02:43:05 [RateCDR] => 1 ) [2025-02-17 02:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:43:05' and `end` < '2025-02-17 02:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:43:18] Production.INFO: count ==4325 [2025-02-17 02:43:20] Production.ERROR: pbx CDR StartTime 2025-02-16 23:43:05 - End Time 2025-02-17 02:43:05 [2025-02-17 02:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492750', 'tblTempUsageDetail_20' ) start [2025-02-17 02:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492750', 'tblTempUsageDetail_20' ) end [2025-02-17 02:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492750', 'tblTempVendorCDR_20' ) start [2025-02-17 02:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492750', 'tblTempVendorCDR_20' ) end [2025-02-17 02:43:20] Production.INFO: ProcessCDR(1,14492750,1,1,2) [2025-02-17 02:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492750', 'tblTempUsageDetail_20' ) start [2025-02-17 02:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492750', 'tblTempUsageDetail_20' ) end [2025-02-17 02:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:43:23] Production.INFO: ==9857== Releasing lock... [2025-02-17 02:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:43:23] Production.INFO: 60.5 MB #Memory Used# [2025-02-17 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:44:05 [end_date_ymd] => 2025-02-17 02:44:05 [RateCDR] => 1 ) [2025-02-17 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:44:05' and `end` < '2025-02-17 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:44:19] Production.INFO: count ==4258 [2025-02-17 02:44:22] Production.ERROR: pbx CDR StartTime 2025-02-16 23:44:05 - End Time 2025-02-17 02:44:05 [2025-02-17 02:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492755', 'tblTempUsageDetail_20' ) start [2025-02-17 02:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492755', 'tblTempUsageDetail_20' ) end [2025-02-17 02:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492755', 'tblTempVendorCDR_20' ) start [2025-02-17 02:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492755', 'tblTempVendorCDR_20' ) end [2025-02-17 02:44:22] Production.INFO: ProcessCDR(1,14492755,1,1,2) [2025-02-17 02:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492755', 'tblTempUsageDetail_20' ) start [2025-02-17 02:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492755', 'tblTempUsageDetail_20' ) end [2025-02-17 02:44:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:44:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:44:25] Production.INFO: ==9941== Releasing lock... [2025-02-17 02:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:44:25] Production.INFO: 59.75 MB #Memory Used# [2025-02-17 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:45:05 [end_date_ymd] => 2025-02-17 02:45:05 [RateCDR] => 1 ) [2025-02-17 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:45:05' and `end` < '2025-02-17 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:45:18] Production.INFO: count ==4163 [2025-02-17 02:45:20] Production.ERROR: pbx CDR StartTime 2025-02-16 23:45:05 - End Time 2025-02-17 02:45:05 [2025-02-17 02:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492760', 'tblTempUsageDetail_20' ) start [2025-02-17 02:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492760', 'tblTempUsageDetail_20' ) end [2025-02-17 02:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492760', 'tblTempVendorCDR_20' ) start [2025-02-17 02:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492760', 'tblTempVendorCDR_20' ) end [2025-02-17 02:45:21] Production.INFO: ProcessCDR(1,14492760,1,1,2) [2025-02-17 02:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492760', 'tblTempUsageDetail_20' ) start [2025-02-17 02:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492760', 'tblTempUsageDetail_20' ) end [2025-02-17 02:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:45:24] Production.INFO: ==10023== Releasing lock... [2025-02-17 02:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:45:24] Production.INFO: 59 MB #Memory Used# [2025-02-17 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:46:05 [end_date_ymd] => 2025-02-17 02:46:05 [RateCDR] => 1 ) [2025-02-17 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-02-16 23:46:05' and `end` < '2025-02-17 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-02-17 02:46:18] Production.INFO: count ==4064 [2025-02-17 02:46:20] Production.ERROR: pbx CDR StartTime 2025-02-16 23:46:05 - End Time 2025-02-17 02:46:05 [2025-02-17 02:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492765', 'tblTempUsageDetail_20' ) start [2025-02-17 02:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492765', 'tblTempUsageDetail_20' ) end [2025-02-17 02:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492765', 'tblTempVendorCDR_20' ) start [2025-02-17 02:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492765', 'tblTempVendorCDR_20' ) end [2025-02-17 02:46:21] Production.INFO: ProcessCDR(1,14492765,1,1,2) [2025-02-17 02:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492765', 'tblTempUsageDetail_20' ) start [2025-02-17 02:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492765', 'tblTempUsageDetail_20' ) end [2025-02-17 02:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:46:24] Production.INFO: ==10150== Releasing lock... [2025-02-17 02:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:46:24] Production.INFO: 58.25 MB #Memory Used# [2025-02-17 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:47:05 [end_date_ymd] => 2025-02-17 02:47:05 [RateCDR] => 1 ) [2025-02-17 02:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:47:05' and `end` < '2025-02-17 02:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:47:21] Production.INFO: count ==3970 [2025-02-17 02:47:24] Production.ERROR: pbx CDR StartTime 2025-02-16 23:47:05 - End Time 2025-02-17 02:47:05 [2025-02-17 02:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492770', 'tblTempUsageDetail_20' ) start [2025-02-17 02:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492770', 'tblTempUsageDetail_20' ) end [2025-02-17 02:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492770', 'tblTempVendorCDR_20' ) start [2025-02-17 02:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492770', 'tblTempVendorCDR_20' ) end [2025-02-17 02:47:24] Production.INFO: ProcessCDR(1,14492770,1,1,2) [2025-02-17 02:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492770', 'tblTempUsageDetail_20' ) start [2025-02-17 02:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492770', 'tblTempUsageDetail_20' ) end [2025-02-17 02:47:29] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:47:29] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:47:29] Production.INFO: ==10237== Releasing lock... [2025-02-17 02:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:47:29] Production.INFO: 57.5 MB #Memory Used# [2025-02-17 02:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:48:06 [end_date_ymd] => 2025-02-17 02:48:06 [RateCDR] => 1 ) [2025-02-17 02:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:48:06' and `end` < '2025-02-17 02:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:48:19] Production.INFO: count ==3898 [2025-02-17 02:48:21] Production.ERROR: pbx CDR StartTime 2025-02-16 23:48:06 - End Time 2025-02-17 02:48:06 [2025-02-17 02:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492775', 'tblTempUsageDetail_20' ) start [2025-02-17 02:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492775', 'tblTempUsageDetail_20' ) end [2025-02-17 02:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492775', 'tblTempVendorCDR_20' ) start [2025-02-17 02:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492775', 'tblTempVendorCDR_20' ) end [2025-02-17 02:48:21] Production.INFO: ProcessCDR(1,14492775,1,1,2) [2025-02-17 02:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492775', 'tblTempUsageDetail_20' ) start [2025-02-17 02:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492775', 'tblTempUsageDetail_20' ) end [2025-02-17 02:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:48:24] Production.INFO: ==10329== Releasing lock... [2025-02-17 02:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:48:24] Production.INFO: 57 MB #Memory Used# [2025-02-17 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:49:05 [end_date_ymd] => 2025-02-17 02:49:05 [RateCDR] => 1 ) [2025-02-17 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:49:05' and `end` < '2025-02-17 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:49:18] Production.INFO: count ==3816 [2025-02-17 02:49:21] Production.ERROR: pbx CDR StartTime 2025-02-16 23:49:05 - End Time 2025-02-17 02:49:05 [2025-02-17 02:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492780', 'tblTempUsageDetail_20' ) start [2025-02-17 02:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492780', 'tblTempUsageDetail_20' ) end [2025-02-17 02:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492780', 'tblTempVendorCDR_20' ) start [2025-02-17 02:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492780', 'tblTempVendorCDR_20' ) end [2025-02-17 02:49:21] Production.INFO: ProcessCDR(1,14492780,1,1,2) [2025-02-17 02:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492780', 'tblTempUsageDetail_20' ) start [2025-02-17 02:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492780', 'tblTempUsageDetail_20' ) end [2025-02-17 02:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:49:24] Production.INFO: ==10411== Releasing lock... [2025-02-17 02:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:49:24] Production.INFO: 56.5 MB #Memory Used# [2025-02-17 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:50:06 [end_date_ymd] => 2025-02-17 02:50:06 [RateCDR] => 1 ) [2025-02-17 02:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:50:06' and `end` < '2025-02-17 02:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:50:20] Production.INFO: count ==3696 [2025-02-17 02:50:22] Production.ERROR: pbx CDR StartTime 2025-02-16 23:50:06 - End Time 2025-02-17 02:50:06 [2025-02-17 02:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492786', 'tblTempUsageDetail_20' ) start [2025-02-17 02:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492786', 'tblTempUsageDetail_20' ) end [2025-02-17 02:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492786', 'tblTempVendorCDR_20' ) start [2025-02-17 02:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492786', 'tblTempVendorCDR_20' ) end [2025-02-17 02:50:22] Production.INFO: ProcessCDR(1,14492786,1,1,2) [2025-02-17 02:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492786', 'tblTempUsageDetail_20' ) start [2025-02-17 02:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492786', 'tblTempUsageDetail_20' ) end [2025-02-17 02:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:50:26] Production.INFO: ==10500== Releasing lock... [2025-02-17 02:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:50:26] Production.INFO: 55.5 MB #Memory Used# [2025-02-17 02:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:51:04 [end_date_ymd] => 2025-02-17 02:51:04 [RateCDR] => 1 ) [2025-02-17 02: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-02-16 23:51:04' and `end` < '2025-02-17 02: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-02-17 02:51:18] Production.INFO: count ==3540 [2025-02-17 02:51:19] Production.ERROR: pbx CDR StartTime 2025-02-16 23:51:04 - End Time 2025-02-17 02:51:04 [2025-02-17 02:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492791', 'tblTempUsageDetail_20' ) start [2025-02-17 02:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492791', 'tblTempUsageDetail_20' ) end [2025-02-17 02:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492791', 'tblTempVendorCDR_20' ) start [2025-02-17 02:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492791', 'tblTempVendorCDR_20' ) end [2025-02-17 02:51:20] Production.INFO: ProcessCDR(1,14492791,1,1,2) [2025-02-17 02:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492791', 'tblTempUsageDetail_20' ) start [2025-02-17 02:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492791', 'tblTempUsageDetail_20' ) end [2025-02-17 02:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:51:23] Production.INFO: ==10584== Releasing lock... [2025-02-17 02:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:51:23] Production.INFO: 54.25 MB #Memory Used# [2025-02-17 02:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:52:06 [end_date_ymd] => 2025-02-17 02:52:06 [RateCDR] => 1 ) [2025-02-17 02:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:52:06' and `end` < '2025-02-17 02:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:52:19] Production.INFO: count ==3361 [2025-02-17 02:52:20] Production.ERROR: pbx CDR StartTime 2025-02-16 23:52:06 - End Time 2025-02-17 02:52:06 [2025-02-17 02:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492796', 'tblTempUsageDetail_20' ) start [2025-02-17 02:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492796', 'tblTempUsageDetail_20' ) end [2025-02-17 02:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492796', 'tblTempVendorCDR_20' ) start [2025-02-17 02:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492796', 'tblTempVendorCDR_20' ) end [2025-02-17 02:52:21] Production.INFO: ProcessCDR(1,14492796,1,1,2) [2025-02-17 02:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492796', 'tblTempUsageDetail_20' ) start [2025-02-17 02:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492796', 'tblTempUsageDetail_20' ) end [2025-02-17 02:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:52:24] Production.INFO: ==10669== Releasing lock... [2025-02-17 02:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:52:24] Production.INFO: 53 MB #Memory Used# [2025-02-17 02:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:53:04 [end_date_ymd] => 2025-02-17 02:53:04 [RateCDR] => 1 ) [2025-02-17 02:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:53:04' and `end` < '2025-02-17 02:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:53:19] Production.INFO: count ==3236 [2025-02-17 02:53:20] Production.ERROR: pbx CDR StartTime 2025-02-16 23:53:04 - End Time 2025-02-17 02:53:04 [2025-02-17 02:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492801', 'tblTempUsageDetail_20' ) start [2025-02-17 02:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492801', 'tblTempUsageDetail_20' ) end [2025-02-17 02:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492801', 'tblTempVendorCDR_20' ) start [2025-02-17 02:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492801', 'tblTempVendorCDR_20' ) end [2025-02-17 02:53:20] Production.INFO: ProcessCDR(1,14492801,1,1,2) [2025-02-17 02:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492801', 'tblTempUsageDetail_20' ) start [2025-02-17 02:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492801', 'tblTempUsageDetail_20' ) end [2025-02-17 02:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:53:24] Production.INFO: ==10751== Releasing lock... [2025-02-17 02:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:53:24] Production.INFO: 52 MB #Memory Used# [2025-02-17 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:54:05 [end_date_ymd] => 2025-02-17 02:54:05 [RateCDR] => 1 ) [2025-02-17 02:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:54:05' and `end` < '2025-02-17 02:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:54:18] Production.INFO: count ==3175 [2025-02-17 02:54:20] Production.ERROR: pbx CDR StartTime 2025-02-16 23:54:05 - End Time 2025-02-17 02:54:05 [2025-02-17 02:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492806', 'tblTempUsageDetail_20' ) start [2025-02-17 02:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492806', 'tblTempUsageDetail_20' ) end [2025-02-17 02:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492806', 'tblTempVendorCDR_20' ) start [2025-02-17 02:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492806', 'tblTempVendorCDR_20' ) end [2025-02-17 02:54:20] Production.INFO: ProcessCDR(1,14492806,1,1,2) [2025-02-17 02:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492806', 'tblTempUsageDetail_20' ) start [2025-02-17 02:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492806', 'tblTempUsageDetail_20' ) end [2025-02-17 02:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:54:23] Production.INFO: ==10840== Releasing lock... [2025-02-17 02:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:54:23] Production.INFO: 51.5 MB #Memory Used# [2025-02-17 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:55:05 [end_date_ymd] => 2025-02-17 02:55:05 [RateCDR] => 1 ) [2025-02-17 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-02-16 23:55:05' and `end` < '2025-02-17 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-02-17 02:55:18] Production.INFO: count ==3085 [2025-02-17 02:55:20] Production.ERROR: pbx CDR StartTime 2025-02-16 23:55:05 - End Time 2025-02-17 02:55:05 [2025-02-17 02:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492811', 'tblTempUsageDetail_20' ) start [2025-02-17 02:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492811', 'tblTempUsageDetail_20' ) end [2025-02-17 02:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492811', 'tblTempVendorCDR_20' ) start [2025-02-17 02:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492811', 'tblTempVendorCDR_20' ) end [2025-02-17 02:55:20] Production.INFO: ProcessCDR(1,14492811,1,1,2) [2025-02-17 02:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492811', 'tblTempUsageDetail_20' ) start [2025-02-17 02:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492811', 'tblTempUsageDetail_20' ) end [2025-02-17 02:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:55:23] Production.INFO: ==10923== Releasing lock... [2025-02-17 02:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:55:23] Production.INFO: 51 MB #Memory Used# [2025-02-17 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:56:05 [end_date_ymd] => 2025-02-17 02:56:05 [RateCDR] => 1 ) [2025-02-17 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:56:05' and `end` < '2025-02-17 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:56:19] Production.INFO: count ==2951 [2025-02-17 02:56:20] Production.ERROR: pbx CDR StartTime 2025-02-16 23:56:05 - End Time 2025-02-17 02:56:05 [2025-02-17 02:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492816', 'tblTempUsageDetail_20' ) start [2025-02-17 02:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492816', 'tblTempUsageDetail_20' ) end [2025-02-17 02:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492816', 'tblTempVendorCDR_20' ) start [2025-02-17 02:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492816', 'tblTempVendorCDR_20' ) end [2025-02-17 02:56:20] Production.INFO: ProcessCDR(1,14492816,1,1,2) [2025-02-17 02:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492816', 'tblTempUsageDetail_20' ) start [2025-02-17 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492816', 'tblTempUsageDetail_20' ) end [2025-02-17 02:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:56:23] Production.INFO: ==11007== Releasing lock... [2025-02-17 02:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:56:23] Production.INFO: 49.75 MB #Memory Used# [2025-02-17 02:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:57:06 [end_date_ymd] => 2025-02-17 02:57:06 [RateCDR] => 1 ) [2025-02-17 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-02-16 23:57:06' and `end` < '2025-02-17 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-02-17 02:57:19] Production.INFO: count ==2868 [2025-02-17 02:57:20] Production.ERROR: pbx CDR StartTime 2025-02-16 23:57:06 - End Time 2025-02-17 02:57:06 [2025-02-17 02:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492821', 'tblTempUsageDetail_20' ) start [2025-02-17 02:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492821', 'tblTempUsageDetail_20' ) end [2025-02-17 02:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492821', 'tblTempVendorCDR_20' ) start [2025-02-17 02:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492821', 'tblTempVendorCDR_20' ) end [2025-02-17 02:57:21] Production.INFO: ProcessCDR(1,14492821,1,1,2) [2025-02-17 02:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492821', 'tblTempUsageDetail_20' ) start [2025-02-17 02:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492821', 'tblTempUsageDetail_20' ) end [2025-02-17 02:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:57:24] Production.INFO: ==11098== Releasing lock... [2025-02-17 02:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:57:24] Production.INFO: 49 MB #Memory Used# [2025-02-17 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:58:05 [end_date_ymd] => 2025-02-17 02:58:05 [RateCDR] => 1 ) [2025-02-17 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-02-16 23:58:05' and `end` < '2025-02-17 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-02-17 02:58:18] Production.INFO: count ==2757 [2025-02-17 02:58:19] Production.ERROR: pbx CDR StartTime 2025-02-16 23:58:05 - End Time 2025-02-17 02:58:05 [2025-02-17 02:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492826', 'tblTempUsageDetail_20' ) start [2025-02-17 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492826', 'tblTempUsageDetail_20' ) end [2025-02-17 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492826', 'tblTempVendorCDR_20' ) start [2025-02-17 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492826', 'tblTempVendorCDR_20' ) end [2025-02-17 02:58:19] Production.INFO: ProcessCDR(1,14492826,1,1,2) [2025-02-17 02:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492826', 'tblTempUsageDetail_20' ) start [2025-02-17 02:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492826', 'tblTempUsageDetail_20' ) end [2025-02-17 02:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:58:23] Production.INFO: ==11191== Releasing lock... [2025-02-17 02:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:58:23] Production.INFO: 48.5 MB #Memory Used# [2025-02-17 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-16 23:59:05 [end_date_ymd] => 2025-02-17 02:59:05 [RateCDR] => 1 ) [2025-02-17 02:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-16 23:59:05' and `end` < '2025-02-17 02:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 02:59:19] Production.INFO: count ==2633 [2025-02-17 02:59:20] Production.ERROR: pbx CDR StartTime 2025-02-16 23:59:05 - End Time 2025-02-17 02:59:05 [2025-02-17 02:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 02:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492831', 'tblTempUsageDetail_20' ) start [2025-02-17 02:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492831', 'tblTempUsageDetail_20' ) end [2025-02-17 02:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492831', 'tblTempVendorCDR_20' ) start [2025-02-17 02:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492831', 'tblTempVendorCDR_20' ) end [2025-02-17 02:59:20] Production.INFO: ProcessCDR(1,14492831,1,1,2) [2025-02-17 02:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 02:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 02:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492831', 'tblTempUsageDetail_20' ) start [2025-02-17 02:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492831', 'tblTempUsageDetail_20' ) end [2025-02-17 02:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 02:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 02:59:23] Production.INFO: ==11279== Releasing lock... [2025-02-17 02:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 02:59:23] Production.INFO: 47.75 MB #Memory Used# [2025-02-17 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:00:05 [end_date_ymd] => 2025-02-17 03:00:05 [RateCDR] => 1 ) [2025-02-17 03:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:00:05' and `end` < '2025-02-17 03:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:00:19] Production.INFO: count ==2556 [2025-02-17 03:00:20] Production.ERROR: pbx CDR StartTime 2025-02-17 00:00:05 - End Time 2025-02-17 03:00:05 [2025-02-17 03:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492837', 'tblTempUsageDetail_20' ) start [2025-02-17 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492837', 'tblTempUsageDetail_20' ) end [2025-02-17 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492837', 'tblTempVendorCDR_20' ) start [2025-02-17 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492837', 'tblTempVendorCDR_20' ) end [2025-02-17 03:00:20] Production.INFO: ProcessCDR(1,14492837,1,1,2) [2025-02-17 03:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492837', 'tblTempUsageDetail_20' ) start [2025-02-17 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492837', 'tblTempUsageDetail_20' ) end [2025-02-17 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:00:23] Production.INFO: ==11373== Releasing lock... [2025-02-17 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:00:23] Production.INFO: 47.75 MB #Memory Used# [2025-02-17 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:01:05 [end_date_ymd] => 2025-02-17 03:01:05 [RateCDR] => 1 ) [2025-02-17 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:01:05' and `end` < '2025-02-17 03:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:01:18] Production.INFO: count ==2451 [2025-02-17 03:01:20] Production.ERROR: pbx CDR StartTime 2025-02-17 00:01:05 - End Time 2025-02-17 03:01:05 [2025-02-17 03:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492842', 'tblTempUsageDetail_20' ) start [2025-02-17 03:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492842', 'tblTempUsageDetail_20' ) end [2025-02-17 03:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492842', 'tblTempVendorCDR_20' ) start [2025-02-17 03:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492842', 'tblTempVendorCDR_20' ) end [2025-02-17 03:01:20] Production.INFO: ProcessCDR(1,14492842,1,1,2) [2025-02-17 03:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492842', 'tblTempUsageDetail_20' ) start [2025-02-17 03:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492842', 'tblTempUsageDetail_20' ) end [2025-02-17 03:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:01:23] Production.INFO: ==11472== Releasing lock... [2025-02-17 03:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:01:23] Production.INFO: 46.5 MB #Memory Used# [2025-02-17 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:02:05 [end_date_ymd] => 2025-02-17 03:02:05 [RateCDR] => 1 ) [2025-02-17 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:02:05' and `end` < '2025-02-17 03:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:02:19] Production.INFO: count ==2380 [2025-02-17 03:02:20] Production.ERROR: pbx CDR StartTime 2025-02-17 00:02:05 - End Time 2025-02-17 03:02:05 [2025-02-17 03:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492847', 'tblTempUsageDetail_20' ) start [2025-02-17 03:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492847', 'tblTempUsageDetail_20' ) end [2025-02-17 03:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492847', 'tblTempVendorCDR_20' ) start [2025-02-17 03:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492847', 'tblTempVendorCDR_20' ) end [2025-02-17 03:02:20] Production.INFO: ProcessCDR(1,14492847,1,1,2) [2025-02-17 03:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492847', 'tblTempUsageDetail_20' ) start [2025-02-17 03:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492847', 'tblTempUsageDetail_20' ) end [2025-02-17 03:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:02:24] Production.INFO: ==11679== Releasing lock... [2025-02-17 03:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:02:24] Production.INFO: 46.75 MB #Memory Used# [2025-02-17 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:03:05 [end_date_ymd] => 2025-02-17 03:03:05 [RateCDR] => 1 ) [2025-02-17 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:03:05' and `end` < '2025-02-17 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:03:18] Production.INFO: count ==2319 [2025-02-17 03:03:19] Production.ERROR: pbx CDR StartTime 2025-02-17 00:03:05 - End Time 2025-02-17 03:03:05 [2025-02-17 03:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492852', 'tblTempUsageDetail_20' ) start [2025-02-17 03:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492852', 'tblTempUsageDetail_20' ) end [2025-02-17 03:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492852', 'tblTempVendorCDR_20' ) start [2025-02-17 03:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492852', 'tblTempVendorCDR_20' ) end [2025-02-17 03:03:20] Production.INFO: ProcessCDR(1,14492852,1,1,2) [2025-02-17 03:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492852', 'tblTempUsageDetail_20' ) start [2025-02-17 03:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492852', 'tblTempUsageDetail_20' ) end [2025-02-17 03:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:03:23] Production.INFO: ==11765== Releasing lock... [2025-02-17 03:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:03:23] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 03:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:04:04 [end_date_ymd] => 2025-02-17 03:04:04 [RateCDR] => 1 ) [2025-02-17 03: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-02-17 00:04:04' and `end` < '2025-02-17 03: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-02-17 03:04:17] Production.INFO: count ==2244 [2025-02-17 03:04:18] Production.ERROR: pbx CDR StartTime 2025-02-17 00:04:04 - End Time 2025-02-17 03:04:04 [2025-02-17 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492857', 'tblTempUsageDetail_20' ) start [2025-02-17 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492857', 'tblTempUsageDetail_20' ) end [2025-02-17 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492857', 'tblTempVendorCDR_20' ) start [2025-02-17 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492857', 'tblTempVendorCDR_20' ) end [2025-02-17 03:04:19] Production.INFO: ProcessCDR(1,14492857,1,1,2) [2025-02-17 03:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492857', 'tblTempUsageDetail_20' ) start [2025-02-17 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492857', 'tblTempUsageDetail_20' ) end [2025-02-17 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:04:22] Production.INFO: ==11853== Releasing lock... [2025-02-17 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:04:22] Production.INFO: 45.25 MB #Memory Used# [2025-02-17 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:05:05 [end_date_ymd] => 2025-02-17 03:05:05 [RateCDR] => 1 ) [2025-02-17 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:05:05' and `end` < '2025-02-17 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:05:18] Production.INFO: count ==2182 [2025-02-17 03:05:19] Production.ERROR: pbx CDR StartTime 2025-02-17 00:05:05 - End Time 2025-02-17 03:05:05 [2025-02-17 03:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492862', 'tblTempUsageDetail_20' ) start [2025-02-17 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492862', 'tblTempUsageDetail_20' ) end [2025-02-17 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492862', 'tblTempVendorCDR_20' ) start [2025-02-17 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492862', 'tblTempVendorCDR_20' ) end [2025-02-17 03:05:19] Production.INFO: ProcessCDR(1,14492862,1,1,2) [2025-02-17 03:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492862', 'tblTempUsageDetail_20' ) start [2025-02-17 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492862', 'tblTempUsageDetail_20' ) end [2025-02-17 03:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:05:22] Production.INFO: ==11934== Releasing lock... [2025-02-17 03:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:05:22] Production.INFO: 44.75 MB #Memory Used# [2025-02-17 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:06:05 [end_date_ymd] => 2025-02-17 03:06:05 [RateCDR] => 1 ) [2025-02-17 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:06:05' and `end` < '2025-02-17 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:06:18] Production.INFO: count ==2103 [2025-02-17 03:06:19] Production.ERROR: pbx CDR StartTime 2025-02-17 00:06:05 - End Time 2025-02-17 03:06:05 [2025-02-17 03:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492867', 'tblTempUsageDetail_20' ) start [2025-02-17 03:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492867', 'tblTempUsageDetail_20' ) end [2025-02-17 03:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492867', 'tblTempVendorCDR_20' ) start [2025-02-17 03:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492867', 'tblTempVendorCDR_20' ) end [2025-02-17 03:06:20] Production.INFO: ProcessCDR(1,14492867,1,1,2) [2025-02-17 03:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492867', 'tblTempUsageDetail_20' ) start [2025-02-17 03:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492867', 'tblTempUsageDetail_20' ) end [2025-02-17 03:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:06:23] Production.INFO: ==12093== Releasing lock... [2025-02-17 03:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:06:23] Production.INFO: 44 MB #Memory Used# [2025-02-17 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:07:05 [end_date_ymd] => 2025-02-17 03:07:05 [RateCDR] => 1 ) [2025-02-17 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:07:05' and `end` < '2025-02-17 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:07:18] Production.INFO: count ==2024 [2025-02-17 03:07:19] Production.ERROR: pbx CDR StartTime 2025-02-17 00:07:05 - End Time 2025-02-17 03:07:05 [2025-02-17 03:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492872', 'tblTempUsageDetail_20' ) start [2025-02-17 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492872', 'tblTempUsageDetail_20' ) end [2025-02-17 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492872', 'tblTempVendorCDR_20' ) start [2025-02-17 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492872', 'tblTempVendorCDR_20' ) end [2025-02-17 03:07:19] Production.INFO: ProcessCDR(1,14492872,1,1,2) [2025-02-17 03:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492872', 'tblTempUsageDetail_20' ) start [2025-02-17 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492872', 'tblTempUsageDetail_20' ) end [2025-02-17 03:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:07:22] Production.INFO: ==12169== Releasing lock... [2025-02-17 03:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:07:22] Production.INFO: 43.25 MB #Memory Used# [2025-02-17 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:08:05 [end_date_ymd] => 2025-02-17 03:08:05 [RateCDR] => 1 ) [2025-02-17 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:08:05' and `end` < '2025-02-17 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:08:20] Production.INFO: count ==1999 [2025-02-17 03:08:21] Production.ERROR: pbx CDR StartTime 2025-02-17 00:08:05 - End Time 2025-02-17 03:08:05 [2025-02-17 03:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492877', 'tblTempUsageDetail_20' ) start [2025-02-17 03:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492877', 'tblTempUsageDetail_20' ) end [2025-02-17 03:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492877', 'tblTempVendorCDR_20' ) start [2025-02-17 03:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492877', 'tblTempVendorCDR_20' ) end [2025-02-17 03:08:21] Production.INFO: ProcessCDR(1,14492877,1,1,2) [2025-02-17 03:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492877', 'tblTempUsageDetail_20' ) start [2025-02-17 03:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492877', 'tblTempUsageDetail_20' ) end [2025-02-17 03:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:08:24] Production.INFO: ==12249== Releasing lock... [2025-02-17 03:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:08:24] Production.INFO: 43 MB #Memory Used# [2025-02-17 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:09:05 [end_date_ymd] => 2025-02-17 03:09:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 00:09:05' and `end` < '2025-02-17 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-02-17 03:09:18] Production.INFO: count ==1916 [2025-02-17 03:09:18] Production.ERROR: pbx CDR StartTime 2025-02-17 00:09:05 - End Time 2025-02-17 03:09:05 [2025-02-17 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492882', 'tblTempUsageDetail_20' ) start [2025-02-17 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492882', 'tblTempUsageDetail_20' ) end [2025-02-17 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492882', 'tblTempVendorCDR_20' ) start [2025-02-17 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492882', 'tblTempVendorCDR_20' ) end [2025-02-17 03:09:19] Production.INFO: ProcessCDR(1,14492882,1,1,2) [2025-02-17 03:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492882', 'tblTempUsageDetail_20' ) start [2025-02-17 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492882', 'tblTempUsageDetail_20' ) end [2025-02-17 03:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:09:22] Production.INFO: ==12411== Releasing lock... [2025-02-17 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:09:22] Production.INFO: 42.5 MB #Memory Used# [2025-02-17 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:10:06 [end_date_ymd] => 2025-02-17 03:10:06 [RateCDR] => 1 ) [2025-02-17 03:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:10:06' and `end` < '2025-02-17 03:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:10:19] Production.INFO: count ==1824 [2025-02-17 03:10:20] Production.ERROR: pbx CDR StartTime 2025-02-17 00:10:06 - End Time 2025-02-17 03:10:06 [2025-02-17 03:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492888', 'tblTempUsageDetail_20' ) start [2025-02-17 03:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492888', 'tblTempUsageDetail_20' ) end [2025-02-17 03:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492888', 'tblTempVendorCDR_20' ) start [2025-02-17 03:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492888', 'tblTempVendorCDR_20' ) end [2025-02-17 03:10:20] Production.INFO: ProcessCDR(1,14492888,1,1,2) [2025-02-17 03:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492888', 'tblTempUsageDetail_20' ) start [2025-02-17 03:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492888', 'tblTempUsageDetail_20' ) end [2025-02-17 03:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:10:23] Production.INFO: ==12490== Releasing lock... [2025-02-17 03:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:10:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-17 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:11:05 [end_date_ymd] => 2025-02-17 03:11:05 [RateCDR] => 1 ) [2025-02-17 03:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:11:05' and `end` < '2025-02-17 03:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:11:19] Production.INFO: count ==1726 [2025-02-17 03:11:19] Production.ERROR: pbx CDR StartTime 2025-02-17 00:11:05 - End Time 2025-02-17 03:11:05 [2025-02-17 03:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492893', 'tblTempUsageDetail_20' ) start [2025-02-17 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492893', 'tblTempUsageDetail_20' ) end [2025-02-17 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492893', 'tblTempVendorCDR_20' ) start [2025-02-17 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492893', 'tblTempVendorCDR_20' ) end [2025-02-17 03:11:19] Production.INFO: ProcessCDR(1,14492893,1,1,2) [2025-02-17 03:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492893', 'tblTempUsageDetail_20' ) start [2025-02-17 03:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492893', 'tblTempUsageDetail_20' ) end [2025-02-17 03:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:11:23] Production.INFO: ==12567== Releasing lock... [2025-02-17 03:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:11:23] Production.INFO: 41 MB #Memory Used# [2025-02-17 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:12:05 [end_date_ymd] => 2025-02-17 03:12:05 [RateCDR] => 1 ) [2025-02-17 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:12:05' and `end` < '2025-02-17 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:12:19] Production.INFO: count ==1689 [2025-02-17 03:12:19] Production.ERROR: pbx CDR StartTime 2025-02-17 00:12:05 - End Time 2025-02-17 03:12:05 [2025-02-17 03:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492898', 'tblTempUsageDetail_20' ) start [2025-02-17 03:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492898', 'tblTempUsageDetail_20' ) end [2025-02-17 03:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492898', 'tblTempVendorCDR_20' ) start [2025-02-17 03:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492898', 'tblTempVendorCDR_20' ) end [2025-02-17 03:12:20] Production.INFO: ProcessCDR(1,14492898,1,1,2) [2025-02-17 03:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492898', 'tblTempUsageDetail_20' ) start [2025-02-17 03:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492898', 'tblTempUsageDetail_20' ) end [2025-02-17 03:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:12:23] Production.INFO: ==12644== Releasing lock... [2025-02-17 03:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:12:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-17 03:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:13:04 [end_date_ymd] => 2025-02-17 03:13:04 [RateCDR] => 1 ) [2025-02-17 03:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:13:04' and `end` < '2025-02-17 03:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:13:18] Production.INFO: count ==1687 [2025-02-17 03:13:18] Production.ERROR: pbx CDR StartTime 2025-02-17 00:13:04 - End Time 2025-02-17 03:13:04 [2025-02-17 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492903', 'tblTempUsageDetail_20' ) start [2025-02-17 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492903', 'tblTempUsageDetail_20' ) end [2025-02-17 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492903', 'tblTempVendorCDR_20' ) start [2025-02-17 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492903', 'tblTempVendorCDR_20' ) end [2025-02-17 03:13:18] Production.INFO: ProcessCDR(1,14492903,1,1,2) [2025-02-17 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492903', 'tblTempUsageDetail_20' ) start [2025-02-17 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492903', 'tblTempUsageDetail_20' ) end [2025-02-17 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:13:22] Production.INFO: ==12798== Releasing lock... [2025-02-17 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:13:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-17 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:14:05 [end_date_ymd] => 2025-02-17 03:14:05 [RateCDR] => 1 ) [2025-02-17 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:14:05' and `end` < '2025-02-17 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:14:20] Production.INFO: count ==1686 [2025-02-17 03:14:21] Production.ERROR: pbx CDR StartTime 2025-02-17 00:14:05 - End Time 2025-02-17 03:14:05 [2025-02-17 03:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492908', 'tblTempUsageDetail_20' ) start [2025-02-17 03:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492908', 'tblTempUsageDetail_20' ) end [2025-02-17 03:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492908', 'tblTempVendorCDR_20' ) start [2025-02-17 03:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492908', 'tblTempVendorCDR_20' ) end [2025-02-17 03:14:21] Production.INFO: ProcessCDR(1,14492908,1,1,2) [2025-02-17 03:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492908', 'tblTempUsageDetail_20' ) start [2025-02-17 03:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492908', 'tblTempUsageDetail_20' ) end [2025-02-17 03:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:14:24] Production.INFO: ==12871== Releasing lock... [2025-02-17 03:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:14:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-17 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:15:05 [end_date_ymd] => 2025-02-17 03:15:05 [RateCDR] => 1 ) [2025-02-17 03:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:15:05' and `end` < '2025-02-17 03:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:15:18] Production.INFO: count ==1686 [2025-02-17 03:15:18] Production.ERROR: pbx CDR StartTime 2025-02-17 00:15:05 - End Time 2025-02-17 03:15:05 [2025-02-17 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492913', 'tblTempUsageDetail_20' ) start [2025-02-17 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492913', 'tblTempUsageDetail_20' ) end [2025-02-17 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492913', 'tblTempVendorCDR_20' ) start [2025-02-17 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492913', 'tblTempVendorCDR_20' ) end [2025-02-17 03:15:18] Production.INFO: ProcessCDR(1,14492913,1,1,2) [2025-02-17 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492913', 'tblTempUsageDetail_20' ) start [2025-02-17 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492913', 'tblTempUsageDetail_20' ) end [2025-02-17 03:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:15:22] Production.INFO: ==12951== Releasing lock... [2025-02-17 03:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:15:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-17 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:16:05 [end_date_ymd] => 2025-02-17 03:16:05 [RateCDR] => 1 ) [2025-02-17 03:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:16:05' and `end` < '2025-02-17 03:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:16:18] Production.INFO: count ==1686 [2025-02-17 03:16:19] Production.ERROR: pbx CDR StartTime 2025-02-17 00:16:05 - End Time 2025-02-17 03:16:05 [2025-02-17 03:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492918', 'tblTempUsageDetail_20' ) start [2025-02-17 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492918', 'tblTempUsageDetail_20' ) end [2025-02-17 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492918', 'tblTempVendorCDR_20' ) start [2025-02-17 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492918', 'tblTempVendorCDR_20' ) end [2025-02-17 03:16:19] Production.INFO: ProcessCDR(1,14492918,1,1,2) [2025-02-17 03:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492918', 'tblTempUsageDetail_20' ) start [2025-02-17 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492918', 'tblTempUsageDetail_20' ) end [2025-02-17 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:16:22] Production.INFO: ==13030== Releasing lock... [2025-02-17 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:16:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-17 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:17:05 [end_date_ymd] => 2025-02-17 03:17:05 [RateCDR] => 1 ) [2025-02-17 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:17:05' and `end` < '2025-02-17 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:17:20] Production.INFO: count ==1686 [2025-02-17 03:17:20] Production.ERROR: pbx CDR StartTime 2025-02-17 00:17:05 - End Time 2025-02-17 03:17:05 [2025-02-17 03:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492923', 'tblTempUsageDetail_20' ) start [2025-02-17 03:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492923', 'tblTempUsageDetail_20' ) end [2025-02-17 03:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492923', 'tblTempVendorCDR_20' ) start [2025-02-17 03:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492923', 'tblTempVendorCDR_20' ) end [2025-02-17 03:17:20] Production.INFO: ProcessCDR(1,14492923,1,1,2) [2025-02-17 03:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492923', 'tblTempUsageDetail_20' ) start [2025-02-17 03:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492923', 'tblTempUsageDetail_20' ) end [2025-02-17 03:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:17:24] Production.INFO: ==13180== Releasing lock... [2025-02-17 03:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:17:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-17 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:18:05 [end_date_ymd] => 2025-02-17 03:18:05 [RateCDR] => 1 ) [2025-02-17 03:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:18:05' and `end` < '2025-02-17 03:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:18:18] Production.INFO: count ==1682 [2025-02-17 03:18:19] Production.ERROR: pbx CDR StartTime 2025-02-17 00:18:05 - End Time 2025-02-17 03:18:05 [2025-02-17 03:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492928', 'tblTempUsageDetail_20' ) start [2025-02-17 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492928', 'tblTempUsageDetail_20' ) end [2025-02-17 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492928', 'tblTempVendorCDR_20' ) start [2025-02-17 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492928', 'tblTempVendorCDR_20' ) end [2025-02-17 03:18:19] Production.INFO: ProcessCDR(1,14492928,1,1,2) [2025-02-17 03:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492928', 'tblTempUsageDetail_20' ) start [2025-02-17 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492928', 'tblTempUsageDetail_20' ) end [2025-02-17 03:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:18:22] Production.INFO: ==13264== Releasing lock... [2025-02-17 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:18:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-17 03:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:19:06 [end_date_ymd] => 2025-02-17 03:19:06 [RateCDR] => 1 ) [2025-02-17 03:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:19:06' and `end` < '2025-02-17 03:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:19:19] Production.INFO: count ==1677 [2025-02-17 03:19:20] Production.ERROR: pbx CDR StartTime 2025-02-17 00:19:06 - End Time 2025-02-17 03:19:06 [2025-02-17 03:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492933', 'tblTempUsageDetail_20' ) start [2025-02-17 03:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492933', 'tblTempUsageDetail_20' ) end [2025-02-17 03:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492933', 'tblTempVendorCDR_20' ) start [2025-02-17 03:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492933', 'tblTempVendorCDR_20' ) end [2025-02-17 03:19:20] Production.INFO: ProcessCDR(1,14492933,1,1,2) [2025-02-17 03:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492933', 'tblTempUsageDetail_20' ) start [2025-02-17 03:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492933', 'tblTempUsageDetail_20' ) end [2025-02-17 03:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:19:23] Production.INFO: ==13384== Releasing lock... [2025-02-17 03:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:19:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-17 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:20:06 [end_date_ymd] => 2025-02-17 03:20:06 [RateCDR] => 1 ) [2025-02-17 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:20:06' and `end` < '2025-02-17 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:20:19] Production.INFO: count ==1681 [2025-02-17 03:20:20] Production.ERROR: pbx CDR StartTime 2025-02-17 00:20:06 - End Time 2025-02-17 03:20:06 [2025-02-17 03:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492939', 'tblTempUsageDetail_20' ) start [2025-02-17 03:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492939', 'tblTempUsageDetail_20' ) end [2025-02-17 03:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492939', 'tblTempVendorCDR_20' ) start [2025-02-17 03:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492939', 'tblTempVendorCDR_20' ) end [2025-02-17 03:20:20] Production.INFO: ProcessCDR(1,14492939,1,1,2) [2025-02-17 03:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492939', 'tblTempUsageDetail_20' ) start [2025-02-17 03:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492939', 'tblTempUsageDetail_20' ) end [2025-02-17 03:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:20:24] Production.INFO: ==13456== Releasing lock... [2025-02-17 03:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:20:24] Production.INFO: 41 MB #Memory Used# [2025-02-17 03:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:21:06 [end_date_ymd] => 2025-02-17 03:21:06 [RateCDR] => 1 ) [2025-02-17 03:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:21:06' and `end` < '2025-02-17 03:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:21:19] Production.INFO: count ==1659 [2025-02-17 03:21:19] Production.ERROR: pbx CDR StartTime 2025-02-17 00:21:06 - End Time 2025-02-17 03:21:06 [2025-02-17 03:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492944', 'tblTempUsageDetail_20' ) start [2025-02-17 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492944', 'tblTempUsageDetail_20' ) end [2025-02-17 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492944', 'tblTempVendorCDR_20' ) start [2025-02-17 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492944', 'tblTempVendorCDR_20' ) end [2025-02-17 03:21:19] Production.INFO: ProcessCDR(1,14492944,1,1,2) [2025-02-17 03:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492944', 'tblTempUsageDetail_20' ) start [2025-02-17 03:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492944', 'tblTempUsageDetail_20' ) end [2025-02-17 03:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:21:23] Production.INFO: ==13547== Releasing lock... [2025-02-17 03:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:21:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-17 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:22:05 [end_date_ymd] => 2025-02-17 03:22:05 [RateCDR] => 1 ) [2025-02-17 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:22:05' and `end` < '2025-02-17 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:22:19] Production.INFO: count ==1659 [2025-02-17 03:22:20] Production.ERROR: pbx CDR StartTime 2025-02-17 00:22:05 - End Time 2025-02-17 03:22:05 [2025-02-17 03:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492949', 'tblTempUsageDetail_20' ) start [2025-02-17 03:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492949', 'tblTempUsageDetail_20' ) end [2025-02-17 03:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492949', 'tblTempVendorCDR_20' ) start [2025-02-17 03:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492949', 'tblTempVendorCDR_20' ) end [2025-02-17 03:22:20] Production.INFO: ProcessCDR(1,14492949,1,1,2) [2025-02-17 03:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492949', 'tblTempUsageDetail_20' ) start [2025-02-17 03:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492949', 'tblTempUsageDetail_20' ) end [2025-02-17 03:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:22:23] Production.INFO: ==13639== Releasing lock... [2025-02-17 03:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:22:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-17 03:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:23:06 [end_date_ymd] => 2025-02-17 03:23:06 [RateCDR] => 1 ) [2025-02-17 03:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:23:06' and `end` < '2025-02-17 03:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:23:19] Production.INFO: count ==1656 [2025-02-17 03:23:20] Production.ERROR: pbx CDR StartTime 2025-02-17 00:23:06 - End Time 2025-02-17 03:23:06 [2025-02-17 03:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492954', 'tblTempUsageDetail_20' ) start [2025-02-17 03:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492954', 'tblTempUsageDetail_20' ) end [2025-02-17 03:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492954', 'tblTempVendorCDR_20' ) start [2025-02-17 03:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492954', 'tblTempVendorCDR_20' ) end [2025-02-17 03:23:20] Production.INFO: ProcessCDR(1,14492954,1,1,2) [2025-02-17 03:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492954', 'tblTempUsageDetail_20' ) start [2025-02-17 03:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492954', 'tblTempUsageDetail_20' ) end [2025-02-17 03:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:23:24] Production.INFO: ==13725== Releasing lock... [2025-02-17 03:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:23:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-17 03:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:24:06 [end_date_ymd] => 2025-02-17 03:24:06 [RateCDR] => 1 ) [2025-02-17 03:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:24:06' and `end` < '2025-02-17 03:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:24:21] Production.INFO: count ==1654 [2025-02-17 03:24:21] Production.ERROR: pbx CDR StartTime 2025-02-17 00:24:06 - End Time 2025-02-17 03:24:06 [2025-02-17 03:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492959', 'tblTempUsageDetail_20' ) start [2025-02-17 03:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492959', 'tblTempUsageDetail_20' ) end [2025-02-17 03:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492959', 'tblTempVendorCDR_20' ) start [2025-02-17 03:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492959', 'tblTempVendorCDR_20' ) end [2025-02-17 03:24:22] Production.INFO: ProcessCDR(1,14492959,1,1,2) [2025-02-17 03:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492959', 'tblTempUsageDetail_20' ) start [2025-02-17 03:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492959', 'tblTempUsageDetail_20' ) end [2025-02-17 03:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:24:25] Production.INFO: ==13818== Releasing lock... [2025-02-17 03:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:24:25] Production.INFO: 40.5 MB #Memory Used# [2025-02-17 03:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:25:06 [end_date_ymd] => 2025-02-17 03:25:06 [RateCDR] => 1 ) [2025-02-17 03:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:25:06' and `end` < '2025-02-17 03:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:25:19] Production.INFO: count ==1631 [2025-02-17 03:25:19] Production.ERROR: pbx CDR StartTime 2025-02-17 00:25:06 - End Time 2025-02-17 03:25:06 [2025-02-17 03:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492964', 'tblTempUsageDetail_20' ) start [2025-02-17 03:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492964', 'tblTempUsageDetail_20' ) end [2025-02-17 03:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492964', 'tblTempVendorCDR_20' ) start [2025-02-17 03:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492964', 'tblTempVendorCDR_20' ) end [2025-02-17 03:25:20] Production.INFO: ProcessCDR(1,14492964,1,1,2) [2025-02-17 03:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492964', 'tblTempUsageDetail_20' ) start [2025-02-17 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492964', 'tblTempUsageDetail_20' ) end [2025-02-17 03:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:25:23] Production.INFO: ==13911== Releasing lock... [2025-02-17 03:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:25:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-17 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:26:05 [end_date_ymd] => 2025-02-17 03:26:05 [RateCDR] => 1 ) [2025-02-17 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:26:05' and `end` < '2025-02-17 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:26:18] Production.INFO: count ==1625 [2025-02-17 03:26:19] Production.ERROR: pbx CDR StartTime 2025-02-17 00:26:05 - End Time 2025-02-17 03:26:05 [2025-02-17 03:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492969', 'tblTempUsageDetail_20' ) start [2025-02-17 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492969', 'tblTempUsageDetail_20' ) end [2025-02-17 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492969', 'tblTempVendorCDR_20' ) start [2025-02-17 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492969', 'tblTempVendorCDR_20' ) end [2025-02-17 03:26:19] Production.INFO: ProcessCDR(1,14492969,1,1,2) [2025-02-17 03:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492969', 'tblTempUsageDetail_20' ) start [2025-02-17 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492969', 'tblTempUsageDetail_20' ) end [2025-02-17 03:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:26:22] Production.INFO: ==13999== Releasing lock... [2025-02-17 03:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:26:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-17 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:27:05 [end_date_ymd] => 2025-02-17 03:27:05 [RateCDR] => 1 ) [2025-02-17 03:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:27:05' and `end` < '2025-02-17 03:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:27:18] Production.INFO: count ==1624 [2025-02-17 03:27:19] Production.ERROR: pbx CDR StartTime 2025-02-17 00:27:05 - End Time 2025-02-17 03:27:05 [2025-02-17 03:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492974', 'tblTempUsageDetail_20' ) start [2025-02-17 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492974', 'tblTempUsageDetail_20' ) end [2025-02-17 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492974', 'tblTempVendorCDR_20' ) start [2025-02-17 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492974', 'tblTempVendorCDR_20' ) end [2025-02-17 03:27:19] Production.INFO: ProcessCDR(1,14492974,1,1,2) [2025-02-17 03:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492974', 'tblTempUsageDetail_20' ) start [2025-02-17 03:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492974', 'tblTempUsageDetail_20' ) end [2025-02-17 03:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:27:23] Production.INFO: ==14089== Releasing lock... [2025-02-17 03:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:27:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-17 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:28:05 [end_date_ymd] => 2025-02-17 03:28:05 [RateCDR] => 1 ) [2025-02-17 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:28:05' and `end` < '2025-02-17 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:28:18] Production.INFO: count ==1624 [2025-02-17 03:28:19] Production.ERROR: pbx CDR StartTime 2025-02-17 00:28:05 - End Time 2025-02-17 03:28:05 [2025-02-17 03:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492979', 'tblTempUsageDetail_20' ) start [2025-02-17 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492979', 'tblTempUsageDetail_20' ) end [2025-02-17 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492979', 'tblTempVendorCDR_20' ) start [2025-02-17 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492979', 'tblTempVendorCDR_20' ) end [2025-02-17 03:28:19] Production.INFO: ProcessCDR(1,14492979,1,1,2) [2025-02-17 03:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492979', 'tblTempUsageDetail_20' ) start [2025-02-17 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492979', 'tblTempUsageDetail_20' ) end [2025-02-17 03:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:28:22] Production.INFO: ==14179== Releasing lock... [2025-02-17 03:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:28:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-17 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:29:05 [end_date_ymd] => 2025-02-17 03:29:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 00:29:05' and `end` < '2025-02-17 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-02-17 03:29:18] Production.INFO: count ==1622 [2025-02-17 03:29:19] Production.ERROR: pbx CDR StartTime 2025-02-17 00:29:05 - End Time 2025-02-17 03:29:05 [2025-02-17 03:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492984', 'tblTempUsageDetail_20' ) start [2025-02-17 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492984', 'tblTempUsageDetail_20' ) end [2025-02-17 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492984', 'tblTempVendorCDR_20' ) start [2025-02-17 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492984', 'tblTempVendorCDR_20' ) end [2025-02-17 03:29:19] Production.INFO: ProcessCDR(1,14492984,1,1,2) [2025-02-17 03:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492984', 'tblTempUsageDetail_20' ) start [2025-02-17 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492984', 'tblTempUsageDetail_20' ) end [2025-02-17 03:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:29:22] Production.INFO: ==14268== Releasing lock... [2025-02-17 03:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:29:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-17 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:30:06 [end_date_ymd] => 2025-02-17 03:30:06 [RateCDR] => 1 ) [2025-02-17 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:30:06' and `end` < '2025-02-17 03:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:30:19] Production.INFO: count ==1611 [2025-02-17 03:30:20] Production.ERROR: pbx CDR StartTime 2025-02-17 00:30:06 - End Time 2025-02-17 03:30:06 [2025-02-17 03:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492990', 'tblTempUsageDetail_20' ) start [2025-02-17 03:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492990', 'tblTempUsageDetail_20' ) end [2025-02-17 03:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492990', 'tblTempVendorCDR_20' ) start [2025-02-17 03:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492990', 'tblTempVendorCDR_20' ) end [2025-02-17 03:30:20] Production.INFO: ProcessCDR(1,14492990,1,1,2) [2025-02-17 03:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492990', 'tblTempUsageDetail_20' ) start [2025-02-17 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492990', 'tblTempUsageDetail_20' ) end [2025-02-17 03:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:30:23] Production.INFO: ==14359== Releasing lock... [2025-02-17 03:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:30:23] Production.INFO: 40 MB #Memory Used# [2025-02-17 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:31:06 [end_date_ymd] => 2025-02-17 03:31:06 [RateCDR] => 1 ) [2025-02-17 03:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:31:06' and `end` < '2025-02-17 03:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:31:20] Production.INFO: count ==1588 [2025-02-17 03:31:20] Production.ERROR: pbx CDR StartTime 2025-02-17 00:31:06 - End Time 2025-02-17 03:31:06 [2025-02-17 03:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492995', 'tblTempUsageDetail_20' ) start [2025-02-17 03:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14492995', 'tblTempUsageDetail_20' ) end [2025-02-17 03:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492995', 'tblTempVendorCDR_20' ) start [2025-02-17 03:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14492995', 'tblTempVendorCDR_20' ) end [2025-02-17 03:31:21] Production.INFO: ProcessCDR(1,14492995,1,1,2) [2025-02-17 03:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14492995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14492995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14492995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14492995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492995', 'tblTempUsageDetail_20' ) start [2025-02-17 03:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14492995', 'tblTempUsageDetail_20' ) end [2025-02-17 03:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:31:24] Production.INFO: ==14459== Releasing lock... [2025-02-17 03:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:31:24] Production.INFO: 40 MB #Memory Used# [2025-02-17 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:32:05 [end_date_ymd] => 2025-02-17 03:32:05 [RateCDR] => 1 ) [2025-02-17 03:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:32:05' and `end` < '2025-02-17 03:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:32:18] Production.INFO: count ==1590 [2025-02-17 03:32:19] Production.ERROR: pbx CDR StartTime 2025-02-17 00:32:05 - End Time 2025-02-17 03:32:05 [2025-02-17 03:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493000', 'tblTempUsageDetail_20' ) start [2025-02-17 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493000', 'tblTempUsageDetail_20' ) end [2025-02-17 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493000', 'tblTempVendorCDR_20' ) start [2025-02-17 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493000', 'tblTempVendorCDR_20' ) end [2025-02-17 03:32:19] Production.INFO: ProcessCDR(1,14493000,1,1,2) [2025-02-17 03:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493000', 'tblTempUsageDetail_20' ) start [2025-02-17 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493000', 'tblTempUsageDetail_20' ) end [2025-02-17 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:32:23] Production.INFO: ==14545== Releasing lock... [2025-02-17 03:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:32:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-17 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:33:05 [end_date_ymd] => 2025-02-17 03:33:05 [RateCDR] => 1 ) [2025-02-17 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:33:05' and `end` < '2025-02-17 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:33:18] Production.INFO: count ==1589 [2025-02-17 03:33:19] Production.ERROR: pbx CDR StartTime 2025-02-17 00:33:05 - End Time 2025-02-17 03:33:05 [2025-02-17 03:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493005', 'tblTempUsageDetail_20' ) start [2025-02-17 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493005', 'tblTempUsageDetail_20' ) end [2025-02-17 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493005', 'tblTempVendorCDR_20' ) start [2025-02-17 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493005', 'tblTempVendorCDR_20' ) end [2025-02-17 03:33:19] Production.INFO: ProcessCDR(1,14493005,1,1,2) [2025-02-17 03:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493005', 'tblTempUsageDetail_20' ) start [2025-02-17 03:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493005', 'tblTempUsageDetail_20' ) end [2025-02-17 03:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:33:23] Production.INFO: ==14631== Releasing lock... [2025-02-17 03:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:33:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-17 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:34:05 [end_date_ymd] => 2025-02-17 03:34:05 [RateCDR] => 1 ) [2025-02-17 03:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:34:05' and `end` < '2025-02-17 03:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:34:18] Production.INFO: count ==1589 [2025-02-17 03:34:19] Production.ERROR: pbx CDR StartTime 2025-02-17 00:34:05 - End Time 2025-02-17 03:34:05 [2025-02-17 03:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493010', 'tblTempUsageDetail_20' ) start [2025-02-17 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493010', 'tblTempUsageDetail_20' ) end [2025-02-17 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493010', 'tblTempVendorCDR_20' ) start [2025-02-17 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493010', 'tblTempVendorCDR_20' ) end [2025-02-17 03:34:19] Production.INFO: ProcessCDR(1,14493010,1,1,2) [2025-02-17 03:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493010', 'tblTempUsageDetail_20' ) start [2025-02-17 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493010', 'tblTempUsageDetail_20' ) end [2025-02-17 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:34:23] Production.INFO: ==14757== Releasing lock... [2025-02-17 03:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:34:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-17 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:35:05 [end_date_ymd] => 2025-02-17 03:35:05 [RateCDR] => 1 ) [2025-02-17 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:35:05' and `end` < '2025-02-17 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:35:19] Production.INFO: count ==1588 [2025-02-17 03:35:20] Production.ERROR: pbx CDR StartTime 2025-02-17 00:35:05 - End Time 2025-02-17 03:35:05 [2025-02-17 03:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493015', 'tblTempUsageDetail_20' ) start [2025-02-17 03:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493015', 'tblTempUsageDetail_20' ) end [2025-02-17 03:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493015', 'tblTempVendorCDR_20' ) start [2025-02-17 03:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493015', 'tblTempVendorCDR_20' ) end [2025-02-17 03:35:20] Production.INFO: ProcessCDR(1,14493015,1,1,2) [2025-02-17 03:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493015', 'tblTempUsageDetail_20' ) start [2025-02-17 03:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493015', 'tblTempUsageDetail_20' ) end [2025-02-17 03:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:35:24] Production.INFO: ==14843== Releasing lock... [2025-02-17 03:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:35:24] Production.INFO: 40.25 MB #Memory Used# [2025-02-17 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:36:05 [end_date_ymd] => 2025-02-17 03:36:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 00:36:05' and `end` < '2025-02-17 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-02-17 03:36:19] Production.INFO: count ==1587 [2025-02-17 03:36:20] Production.ERROR: pbx CDR StartTime 2025-02-17 00:36:05 - End Time 2025-02-17 03:36:05 [2025-02-17 03:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493020', 'tblTempUsageDetail_20' ) start [2025-02-17 03:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493020', 'tblTempUsageDetail_20' ) end [2025-02-17 03:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493020', 'tblTempVendorCDR_20' ) start [2025-02-17 03:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493020', 'tblTempVendorCDR_20' ) end [2025-02-17 03:36:20] Production.INFO: ProcessCDR(1,14493020,1,1,2) [2025-02-17 03:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493020', 'tblTempUsageDetail_20' ) start [2025-02-17 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493020', 'tblTempUsageDetail_20' ) end [2025-02-17 03:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:36:23] Production.INFO: ==14928== Releasing lock... [2025-02-17 03:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:36:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-17 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:37:05 [end_date_ymd] => 2025-02-17 03:37:05 [RateCDR] => 1 ) [2025-02-17 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:37:05' and `end` < '2025-02-17 03:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:37:18] Production.INFO: count ==1587 [2025-02-17 03:37:19] Production.ERROR: pbx CDR StartTime 2025-02-17 00:37:05 - End Time 2025-02-17 03:37:05 [2025-02-17 03:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493025', 'tblTempUsageDetail_20' ) start [2025-02-17 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493025', 'tblTempUsageDetail_20' ) end [2025-02-17 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493025', 'tblTempVendorCDR_20' ) start [2025-02-17 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493025', 'tblTempVendorCDR_20' ) end [2025-02-17 03:37:19] Production.INFO: ProcessCDR(1,14493025,1,1,2) [2025-02-17 03:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493025', 'tblTempUsageDetail_20' ) start [2025-02-17 03:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493025', 'tblTempUsageDetail_20' ) end [2025-02-17 03:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:37:23] Production.INFO: ==15020== Releasing lock... [2025-02-17 03:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:37:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-17 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:38:05 [end_date_ymd] => 2025-02-17 03:38:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 00:38:05' and `end` < '2025-02-17 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-02-17 03:38:19] Production.INFO: count ==1583 [2025-02-17 03:38:20] Production.ERROR: pbx CDR StartTime 2025-02-17 00:38:05 - End Time 2025-02-17 03:38:05 [2025-02-17 03:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493030', 'tblTempUsageDetail_20' ) start [2025-02-17 03:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493030', 'tblTempUsageDetail_20' ) end [2025-02-17 03:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493030', 'tblTempVendorCDR_20' ) start [2025-02-17 03:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493030', 'tblTempVendorCDR_20' ) end [2025-02-17 03:38:20] Production.INFO: ProcessCDR(1,14493030,1,1,2) [2025-02-17 03:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493030', 'tblTempUsageDetail_20' ) start [2025-02-17 03:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493030', 'tblTempUsageDetail_20' ) end [2025-02-17 03:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:38:23] Production.INFO: ==15111== Releasing lock... [2025-02-17 03:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:38:23] Production.INFO: 40 MB #Memory Used# [2025-02-17 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:39:05 [end_date_ymd] => 2025-02-17 03:39:05 [RateCDR] => 1 ) [2025-02-17 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:39:05' and `end` < '2025-02-17 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:39:19] Production.INFO: count ==1572 [2025-02-17 03:39:20] Production.ERROR: pbx CDR StartTime 2025-02-17 00:39:05 - End Time 2025-02-17 03:39:05 [2025-02-17 03:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493035', 'tblTempUsageDetail_20' ) start [2025-02-17 03:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493035', 'tblTempUsageDetail_20' ) end [2025-02-17 03:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493035', 'tblTempVendorCDR_20' ) start [2025-02-17 03:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493035', 'tblTempVendorCDR_20' ) end [2025-02-17 03:39:20] Production.INFO: ProcessCDR(1,14493035,1,1,2) [2025-02-17 03:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493035', 'tblTempUsageDetail_20' ) start [2025-02-17 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493035', 'tblTempUsageDetail_20' ) end [2025-02-17 03:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:39:23] Production.INFO: ==15195== Releasing lock... [2025-02-17 03:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:39:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-17 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:40:06 [end_date_ymd] => 2025-02-17 03:40:06 [RateCDR] => 1 ) [2025-02-17 03:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:40:06' and `end` < '2025-02-17 03:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:40:19] Production.INFO: count ==1573 [2025-02-17 03:40:20] Production.ERROR: pbx CDR StartTime 2025-02-17 00:40:06 - End Time 2025-02-17 03:40:06 [2025-02-17 03:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493041', 'tblTempUsageDetail_20' ) start [2025-02-17 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493041', 'tblTempUsageDetail_20' ) end [2025-02-17 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493041', 'tblTempVendorCDR_20' ) start [2025-02-17 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493041', 'tblTempVendorCDR_20' ) end [2025-02-17 03:40:20] Production.INFO: ProcessCDR(1,14493041,1,1,2) [2025-02-17 03:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493041', 'tblTempUsageDetail_20' ) start [2025-02-17 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493041', 'tblTempUsageDetail_20' ) end [2025-02-17 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:40:23] Production.INFO: ==15282== Releasing lock... [2025-02-17 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:40:23] Production.INFO: 40 MB #Memory Used# [2025-02-17 03:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:41:06 [end_date_ymd] => 2025-02-17 03:41:06 [RateCDR] => 1 ) [2025-02-17 03:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:41:06' and `end` < '2025-02-17 03:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:41:22] Production.INFO: count ==1563 [2025-02-17 03:41:23] Production.ERROR: pbx CDR StartTime 2025-02-17 00:41:06 - End Time 2025-02-17 03:41:06 [2025-02-17 03:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493046', 'tblTempUsageDetail_20' ) start [2025-02-17 03:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493046', 'tblTempUsageDetail_20' ) end [2025-02-17 03:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493046', 'tblTempVendorCDR_20' ) start [2025-02-17 03:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493046', 'tblTempVendorCDR_20' ) end [2025-02-17 03:41:23] Production.INFO: ProcessCDR(1,14493046,1,1,2) [2025-02-17 03:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493046', 'tblTempUsageDetail_20' ) start [2025-02-17 03:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493046', 'tblTempUsageDetail_20' ) end [2025-02-17 03:41:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:41:26] Production.INFO: ==15375== Releasing lock... [2025-02-17 03:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:41:26] Production.INFO: 40 MB #Memory Used# [2025-02-17 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:42:05 [end_date_ymd] => 2025-02-17 03:42:05 [RateCDR] => 1 ) [2025-02-17 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:42:05' and `end` < '2025-02-17 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:42:18] Production.INFO: count ==1563 [2025-02-17 03:42:19] Production.ERROR: pbx CDR StartTime 2025-02-17 00:42:05 - End Time 2025-02-17 03:42:05 [2025-02-17 03:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493051', 'tblTempUsageDetail_20' ) start [2025-02-17 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493051', 'tblTempUsageDetail_20' ) end [2025-02-17 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493051', 'tblTempVendorCDR_20' ) start [2025-02-17 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493051', 'tblTempVendorCDR_20' ) end [2025-02-17 03:42:19] Production.INFO: ProcessCDR(1,14493051,1,1,2) [2025-02-17 03:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493051', 'tblTempUsageDetail_20' ) start [2025-02-17 03:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493051', 'tblTempUsageDetail_20' ) end [2025-02-17 03:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:42:23] Production.INFO: ==15455== Releasing lock... [2025-02-17 03:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:42:23] Production.INFO: 40 MB #Memory Used# [2025-02-17 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:43:05 [end_date_ymd] => 2025-02-17 03:43:05 [RateCDR] => 1 ) [2025-02-17 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:43:05' and `end` < '2025-02-17 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:43:18] Production.INFO: count ==1563 [2025-02-17 03:43:19] Production.ERROR: pbx CDR StartTime 2025-02-17 00:43:05 - End Time 2025-02-17 03:43:05 [2025-02-17 03:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493056', 'tblTempUsageDetail_20' ) start [2025-02-17 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493056', 'tblTempUsageDetail_20' ) end [2025-02-17 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493056', 'tblTempVendorCDR_20' ) start [2025-02-17 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493056', 'tblTempVendorCDR_20' ) end [2025-02-17 03:43:19] Production.INFO: ProcessCDR(1,14493056,1,1,2) [2025-02-17 03:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493056', 'tblTempUsageDetail_20' ) start [2025-02-17 03:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493056', 'tblTempUsageDetail_20' ) end [2025-02-17 03:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:43:23] Production.INFO: ==15541== Releasing lock... [2025-02-17 03:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:43:23] Production.INFO: 40 MB #Memory Used# [2025-02-17 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:44:06 [end_date_ymd] => 2025-02-17 03:44:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 00:44:06' and `end` < '2025-02-17 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-02-17 03:44:20] Production.INFO: count ==1561 [2025-02-17 03:44:20] Production.ERROR: pbx CDR StartTime 2025-02-17 00:44:06 - End Time 2025-02-17 03:44:06 [2025-02-17 03:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493061', 'tblTempUsageDetail_20' ) start [2025-02-17 03:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493061', 'tblTempUsageDetail_20' ) end [2025-02-17 03:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493061', 'tblTempVendorCDR_20' ) start [2025-02-17 03:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493061', 'tblTempVendorCDR_20' ) end [2025-02-17 03:44:21] Production.INFO: ProcessCDR(1,14493061,1,1,2) [2025-02-17 03:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493061', 'tblTempUsageDetail_20' ) start [2025-02-17 03:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493061', 'tblTempUsageDetail_20' ) end [2025-02-17 03:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:44:24] Production.INFO: ==15627== Releasing lock... [2025-02-17 03:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:44:24] Production.INFO: 39.75 MB #Memory Used# [2025-02-17 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:45:05 [end_date_ymd] => 2025-02-17 03:45:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 00:45:05' and `end` < '2025-02-17 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-02-17 03:45:18] Production.INFO: count ==1561 [2025-02-17 03:45:19] Production.ERROR: pbx CDR StartTime 2025-02-17 00:45:05 - End Time 2025-02-17 03:45:05 [2025-02-17 03:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493066', 'tblTempUsageDetail_20' ) start [2025-02-17 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493066', 'tblTempUsageDetail_20' ) end [2025-02-17 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493066', 'tblTempVendorCDR_20' ) start [2025-02-17 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493066', 'tblTempVendorCDR_20' ) end [2025-02-17 03:45:19] Production.INFO: ProcessCDR(1,14493066,1,1,2) [2025-02-17 03:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493066', 'tblTempUsageDetail_20' ) start [2025-02-17 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493066', 'tblTempUsageDetail_20' ) end [2025-02-17 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:45:22] Production.INFO: ==15723== Releasing lock... [2025-02-17 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:45:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-17 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:46:06 [end_date_ymd] => 2025-02-17 03:46:06 [RateCDR] => 1 ) [2025-02-17 03:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:46:06' and `end` < '2025-02-17 03:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:46:19] Production.INFO: count ==1561 [2025-02-17 03:46:19] Production.ERROR: pbx CDR StartTime 2025-02-17 00:46:06 - End Time 2025-02-17 03:46:06 [2025-02-17 03:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493071', 'tblTempUsageDetail_20' ) start [2025-02-17 03:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493071', 'tblTempUsageDetail_20' ) end [2025-02-17 03:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493071', 'tblTempVendorCDR_20' ) start [2025-02-17 03:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493071', 'tblTempVendorCDR_20' ) end [2025-02-17 03:46:20] Production.INFO: ProcessCDR(1,14493071,1,1,2) [2025-02-17 03:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493071', 'tblTempUsageDetail_20' ) start [2025-02-17 03:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493071', 'tblTempUsageDetail_20' ) end [2025-02-17 03:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:46:23] Production.INFO: ==15808== Releasing lock... [2025-02-17 03:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:46:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-17 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:47:05 [end_date_ymd] => 2025-02-17 03:47:05 [RateCDR] => 1 ) [2025-02-17 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:47:05' and `end` < '2025-02-17 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:47:18] Production.INFO: count ==1559 [2025-02-17 03:47:19] Production.ERROR: pbx CDR StartTime 2025-02-17 00:47:05 - End Time 2025-02-17 03:47:05 [2025-02-17 03:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493076', 'tblTempUsageDetail_20' ) start [2025-02-17 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493076', 'tblTempUsageDetail_20' ) end [2025-02-17 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493076', 'tblTempVendorCDR_20' ) start [2025-02-17 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493076', 'tblTempVendorCDR_20' ) end [2025-02-17 03:47:19] Production.INFO: ProcessCDR(1,14493076,1,1,2) [2025-02-17 03:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493076', 'tblTempUsageDetail_20' ) start [2025-02-17 03:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493076', 'tblTempUsageDetail_20' ) end [2025-02-17 03:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:47:23] Production.INFO: ==15894== Releasing lock... [2025-02-17 03:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:47:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-17 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:48:06 [end_date_ymd] => 2025-02-17 03:48:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 00:48:06' and `end` < '2025-02-17 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-02-17 03:48:19] Production.INFO: count ==1556 [2025-02-17 03:48:20] Production.ERROR: pbx CDR StartTime 2025-02-17 00:48:06 - End Time 2025-02-17 03:48:06 [2025-02-17 03:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493081', 'tblTempUsageDetail_20' ) start [2025-02-17 03:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493081', 'tblTempUsageDetail_20' ) end [2025-02-17 03:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493081', 'tblTempVendorCDR_20' ) start [2025-02-17 03:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493081', 'tblTempVendorCDR_20' ) end [2025-02-17 03:48:20] Production.INFO: ProcessCDR(1,14493081,1,1,2) [2025-02-17 03:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493081', 'tblTempUsageDetail_20' ) start [2025-02-17 03:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493081', 'tblTempUsageDetail_20' ) end [2025-02-17 03:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:48:23] Production.INFO: ==15975== Releasing lock... [2025-02-17 03:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:48:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-17 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:49:05 [end_date_ymd] => 2025-02-17 03:49:05 [RateCDR] => 1 ) [2025-02-17 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:49:05' and `end` < '2025-02-17 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:49:18] Production.INFO: count ==1556 [2025-02-17 03:49:19] Production.ERROR: pbx CDR StartTime 2025-02-17 00:49:05 - End Time 2025-02-17 03:49:05 [2025-02-17 03:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493086', 'tblTempUsageDetail_20' ) start [2025-02-17 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493086', 'tblTempUsageDetail_20' ) end [2025-02-17 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493086', 'tblTempVendorCDR_20' ) start [2025-02-17 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493086', 'tblTempVendorCDR_20' ) end [2025-02-17 03:49:19] Production.INFO: ProcessCDR(1,14493086,1,1,2) [2025-02-17 03:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493086', 'tblTempUsageDetail_20' ) start [2025-02-17 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493086', 'tblTempUsageDetail_20' ) end [2025-02-17 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:49:22] Production.INFO: ==16097== Releasing lock... [2025-02-17 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:49:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-17 03:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:50:07 [end_date_ymd] => 2025-02-17 03:50:07 [RateCDR] => 1 ) [2025-02-17 03:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:50:07' and `end` < '2025-02-17 03:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:50:20] Production.INFO: count ==1543 [2025-02-17 03:50:21] Production.ERROR: pbx CDR StartTime 2025-02-17 00:50:07 - End Time 2025-02-17 03:50:07 [2025-02-17 03:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493092', 'tblTempUsageDetail_20' ) start [2025-02-17 03:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493092', 'tblTempUsageDetail_20' ) end [2025-02-17 03:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493092', 'tblTempVendorCDR_20' ) start [2025-02-17 03:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493092', 'tblTempVendorCDR_20' ) end [2025-02-17 03:50:21] Production.INFO: ProcessCDR(1,14493092,1,1,2) [2025-02-17 03:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493092', 'tblTempUsageDetail_20' ) start [2025-02-17 03:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493092', 'tblTempUsageDetail_20' ) end [2025-02-17 03:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:50:25] Production.INFO: ==16228== Releasing lock... [2025-02-17 03:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:50:25] Production.INFO: 39.5 MB #Memory Used# [2025-02-17 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:51:05 [end_date_ymd] => 2025-02-17 03:51:05 [RateCDR] => 1 ) [2025-02-17 03:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:51:05' and `end` < '2025-02-17 03:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:51:18] Production.INFO: count ==1537 [2025-02-17 03:51:19] Production.ERROR: pbx CDR StartTime 2025-02-17 00:51:05 - End Time 2025-02-17 03:51:05 [2025-02-17 03:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493097', 'tblTempUsageDetail_20' ) start [2025-02-17 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493097', 'tblTempUsageDetail_20' ) end [2025-02-17 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493097', 'tblTempVendorCDR_20' ) start [2025-02-17 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493097', 'tblTempVendorCDR_20' ) end [2025-02-17 03:51:19] Production.INFO: ProcessCDR(1,14493097,1,1,2) [2025-02-17 03:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493097', 'tblTempUsageDetail_20' ) start [2025-02-17 03:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493097', 'tblTempUsageDetail_20' ) end [2025-02-17 03:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:51:23] Production.INFO: ==16311== Releasing lock... [2025-02-17 03:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:51:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-17 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:52:05 [end_date_ymd] => 2025-02-17 03:52:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 00:52:05' and `end` < '2025-02-17 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-02-17 03:52:19] Production.INFO: count ==1537 [2025-02-17 03:52:20] Production.ERROR: pbx CDR StartTime 2025-02-17 00:52:05 - End Time 2025-02-17 03:52:05 [2025-02-17 03:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493102', 'tblTempUsageDetail_20' ) start [2025-02-17 03:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493102', 'tblTempUsageDetail_20' ) end [2025-02-17 03:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493102', 'tblTempVendorCDR_20' ) start [2025-02-17 03:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493102', 'tblTempVendorCDR_20' ) end [2025-02-17 03:52:20] Production.INFO: ProcessCDR(1,14493102,1,1,2) [2025-02-17 03:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493102', 'tblTempUsageDetail_20' ) start [2025-02-17 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493102', 'tblTempUsageDetail_20' ) end [2025-02-17 03:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:52:23] Production.INFO: ==16397== Releasing lock... [2025-02-17 03:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:52:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-17 03:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:53:06 [end_date_ymd] => 2025-02-17 03:53:06 [RateCDR] => 1 ) [2025-02-17 03:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:53:06' and `end` < '2025-02-17 03:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:53:19] Production.INFO: count ==1537 [2025-02-17 03:53:20] Production.ERROR: pbx CDR StartTime 2025-02-17 00:53:06 - End Time 2025-02-17 03:53:06 [2025-02-17 03:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493107', 'tblTempUsageDetail_20' ) start [2025-02-17 03:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493107', 'tblTempUsageDetail_20' ) end [2025-02-17 03:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493107', 'tblTempVendorCDR_20' ) start [2025-02-17 03:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493107', 'tblTempVendorCDR_20' ) end [2025-02-17 03:53:20] Production.INFO: ProcessCDR(1,14493107,1,1,2) [2025-02-17 03:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493107', 'tblTempUsageDetail_20' ) start [2025-02-17 03:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493107', 'tblTempUsageDetail_20' ) end [2025-02-17 03:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:53:23] Production.INFO: ==16481== Releasing lock... [2025-02-17 03:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:53:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-17 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:54:05 [end_date_ymd] => 2025-02-17 03:54:05 [RateCDR] => 1 ) [2025-02-17 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:54:05' and `end` < '2025-02-17 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:54:18] Production.INFO: count ==1536 [2025-02-17 03:54:19] Production.ERROR: pbx CDR StartTime 2025-02-17 00:54:05 - End Time 2025-02-17 03:54:05 [2025-02-17 03:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493112', 'tblTempUsageDetail_20' ) start [2025-02-17 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493112', 'tblTempUsageDetail_20' ) end [2025-02-17 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493112', 'tblTempVendorCDR_20' ) start [2025-02-17 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493112', 'tblTempVendorCDR_20' ) end [2025-02-17 03:54:19] Production.INFO: ProcessCDR(1,14493112,1,1,2) [2025-02-17 03:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493112', 'tblTempUsageDetail_20' ) start [2025-02-17 03:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493112', 'tblTempUsageDetail_20' ) end [2025-02-17 03:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:54:23] Production.INFO: ==16565== Releasing lock... [2025-02-17 03:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:54:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-17 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:55:06 [end_date_ymd] => 2025-02-17 03:55:06 [RateCDR] => 1 ) [2025-02-17 03:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:55:06' and `end` < '2025-02-17 03:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:55:19] Production.INFO: count ==1533 [2025-02-17 03:55:19] Production.ERROR: pbx CDR StartTime 2025-02-17 00:55:06 - End Time 2025-02-17 03:55:06 [2025-02-17 03:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493117', 'tblTempUsageDetail_20' ) start [2025-02-17 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493117', 'tblTempUsageDetail_20' ) end [2025-02-17 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493117', 'tblTempVendorCDR_20' ) start [2025-02-17 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493117', 'tblTempVendorCDR_20' ) end [2025-02-17 03:55:19] Production.INFO: ProcessCDR(1,14493117,1,1,2) [2025-02-17 03:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493117', 'tblTempUsageDetail_20' ) start [2025-02-17 03:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493117', 'tblTempUsageDetail_20' ) end [2025-02-17 03:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:55:23] Production.INFO: ==16650== Releasing lock... [2025-02-17 03:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:55:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-17 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:56:06 [end_date_ymd] => 2025-02-17 03:56:06 [RateCDR] => 1 ) [2025-02-17 03:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:56:06' and `end` < '2025-02-17 03:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:56:21] Production.INFO: count ==1532 [2025-02-17 03:56:21] Production.ERROR: pbx CDR StartTime 2025-02-17 00:56:06 - End Time 2025-02-17 03:56:06 [2025-02-17 03:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493122', 'tblTempUsageDetail_20' ) start [2025-02-17 03:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493122', 'tblTempUsageDetail_20' ) end [2025-02-17 03:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493122', 'tblTempVendorCDR_20' ) start [2025-02-17 03:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493122', 'tblTempVendorCDR_20' ) end [2025-02-17 03:56:21] Production.INFO: ProcessCDR(1,14493122,1,1,2) [2025-02-17 03:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493122', 'tblTempUsageDetail_20' ) start [2025-02-17 03:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493122', 'tblTempUsageDetail_20' ) end [2025-02-17 03:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:56:25] Production.INFO: ==16741== Releasing lock... [2025-02-17 03:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:56:25] Production.INFO: 39.75 MB #Memory Used# [2025-02-17 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:57:05 [end_date_ymd] => 2025-02-17 03:57:05 [RateCDR] => 1 ) [2025-02-17 03:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:57:05' and `end` < '2025-02-17 03:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:57:18] Production.INFO: count ==1531 [2025-02-17 03:57:19] Production.ERROR: pbx CDR StartTime 2025-02-17 00:57:05 - End Time 2025-02-17 03:57:05 [2025-02-17 03:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493127', 'tblTempUsageDetail_20' ) start [2025-02-17 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493127', 'tblTempUsageDetail_20' ) end [2025-02-17 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493127', 'tblTempVendorCDR_20' ) start [2025-02-17 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493127', 'tblTempVendorCDR_20' ) end [2025-02-17 03:57:19] Production.INFO: ProcessCDR(1,14493127,1,1,2) [2025-02-17 03:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493127', 'tblTempUsageDetail_20' ) start [2025-02-17 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493127', 'tblTempUsageDetail_20' ) end [2025-02-17 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:57:22] Production.INFO: ==16830== Releasing lock... [2025-02-17 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:57:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-17 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:58:06 [end_date_ymd] => 2025-02-17 03:58:06 [RateCDR] => 1 ) [2025-02-17 03:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 00:58:06' and `end` < '2025-02-17 03:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 03:58:19] Production.INFO: count ==1530 [2025-02-17 03:58:20] Production.ERROR: pbx CDR StartTime 2025-02-17 00:58:06 - End Time 2025-02-17 03:58:06 [2025-02-17 03:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493132', 'tblTempUsageDetail_20' ) start [2025-02-17 03:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493132', 'tblTempUsageDetail_20' ) end [2025-02-17 03:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493132', 'tblTempVendorCDR_20' ) start [2025-02-17 03:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493132', 'tblTempVendorCDR_20' ) end [2025-02-17 03:58:20] Production.INFO: ProcessCDR(1,14493132,1,1,2) [2025-02-17 03:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493132', 'tblTempUsageDetail_20' ) start [2025-02-17 03:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493132', 'tblTempUsageDetail_20' ) end [2025-02-17 03:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:58:23] Production.INFO: ==16916== Releasing lock... [2025-02-17 03:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:58:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-17 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 00:59:05 [end_date_ymd] => 2025-02-17 03:59:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 00:59:05' and `end` < '2025-02-17 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-02-17 03:59:18] Production.INFO: count ==1523 [2025-02-17 03:59:18] Production.ERROR: pbx CDR StartTime 2025-02-17 00:59:05 - End Time 2025-02-17 03:59:05 [2025-02-17 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493137', 'tblTempUsageDetail_20' ) start [2025-02-17 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493137', 'tblTempUsageDetail_20' ) end [2025-02-17 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493137', 'tblTempVendorCDR_20' ) start [2025-02-17 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493137', 'tblTempVendorCDR_20' ) end [2025-02-17 03:59:19] Production.INFO: ProcessCDR(1,14493137,1,1,2) [2025-02-17 03:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493137', 'tblTempUsageDetail_20' ) start [2025-02-17 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493137', 'tblTempUsageDetail_20' ) end [2025-02-17 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 03:59:22] Production.INFO: ==16998== Releasing lock... [2025-02-17 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 03:59:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-17 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:00:07 [end_date_ymd] => 2025-02-17 04:00:07 [RateCDR] => 1 ) [2025-02-17 04:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:00:07' and `end` < '2025-02-17 04:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:00:20] Production.INFO: count ==1501 [2025-02-17 04:00:21] Production.ERROR: pbx CDR StartTime 2025-02-17 01:00:07 - End Time 2025-02-17 04:00:07 [2025-02-17 04:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493143', 'tblTempUsageDetail_20' ) start [2025-02-17 04:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493143', 'tblTempUsageDetail_20' ) end [2025-02-17 04:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493143', 'tblTempVendorCDR_20' ) start [2025-02-17 04:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493143', 'tblTempVendorCDR_20' ) end [2025-02-17 04:00:21] Production.INFO: ProcessCDR(1,14493143,1,1,2) [2025-02-17 04:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493143', 'tblTempUsageDetail_20' ) start [2025-02-17 04:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493143', 'tblTempUsageDetail_20' ) end [2025-02-17 04:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:00:25] Production.INFO: ==17091== Releasing lock... [2025-02-17 04:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:00:25] Production.INFO: 39.25 MB #Memory Used# [2025-02-17 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:01:05 [end_date_ymd] => 2025-02-17 04:01:05 [RateCDR] => 1 ) [2025-02-17 04:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:01:05' and `end` < '2025-02-17 04:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:01:18] Production.INFO: count ==1480 [2025-02-17 04:01:19] Production.ERROR: pbx CDR StartTime 2025-02-17 01:01:05 - End Time 2025-02-17 04:01:05 [2025-02-17 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493149', 'tblTempUsageDetail_20' ) start [2025-02-17 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493149', 'tblTempUsageDetail_20' ) end [2025-02-17 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493149', 'tblTempVendorCDR_20' ) start [2025-02-17 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493149', 'tblTempVendorCDR_20' ) end [2025-02-17 04:01:19] Production.INFO: ProcessCDR(1,14493149,1,1,2) [2025-02-17 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493149', 'tblTempUsageDetail_20' ) start [2025-02-17 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493149', 'tblTempUsageDetail_20' ) end [2025-02-17 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:01:22] Production.INFO: ==17193== Releasing lock... [2025-02-17 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:01:22] Production.INFO: 39 MB #Memory Used# [2025-02-17 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:02:06 [end_date_ymd] => 2025-02-17 04:02:06 [RateCDR] => 1 ) [2025-02-17 04:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:02:06' and `end` < '2025-02-17 04:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:02:20] Production.INFO: count ==1480 [2025-02-17 04:02:21] Production.ERROR: pbx CDR StartTime 2025-02-17 01:02:06 - End Time 2025-02-17 04:02:06 [2025-02-17 04:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493154', 'tblTempUsageDetail_20' ) start [2025-02-17 04:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493154', 'tblTempUsageDetail_20' ) end [2025-02-17 04:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493154', 'tblTempVendorCDR_20' ) start [2025-02-17 04:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493154', 'tblTempVendorCDR_20' ) end [2025-02-17 04:02:21] Production.INFO: ProcessCDR(1,14493154,1,1,2) [2025-02-17 04:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493154', 'tblTempUsageDetail_20' ) start [2025-02-17 04:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493154', 'tblTempUsageDetail_20' ) end [2025-02-17 04:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:02:24] Production.INFO: ==17283== Releasing lock... [2025-02-17 04:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:02:24] Production.INFO: 39 MB #Memory Used# [2025-02-17 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:03:05 [end_date_ymd] => 2025-02-17 04:03:05 [RateCDR] => 1 ) [2025-02-17 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:03:05' and `end` < '2025-02-17 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:03:18] Production.INFO: count ==1474 [2025-02-17 04:03:19] Production.ERROR: pbx CDR StartTime 2025-02-17 01:03:05 - End Time 2025-02-17 04:03:05 [2025-02-17 04:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493159', 'tblTempUsageDetail_20' ) start [2025-02-17 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493159', 'tblTempUsageDetail_20' ) end [2025-02-17 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493159', 'tblTempVendorCDR_20' ) start [2025-02-17 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493159', 'tblTempVendorCDR_20' ) end [2025-02-17 04:03:19] Production.INFO: ProcessCDR(1,14493159,1,1,2) [2025-02-17 04:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493159', 'tblTempUsageDetail_20' ) start [2025-02-17 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493159', 'tblTempUsageDetail_20' ) end [2025-02-17 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:03:22] Production.INFO: ==17370== Releasing lock... [2025-02-17 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:03:22] Production.INFO: 39 MB #Memory Used# [2025-02-17 04:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:04:06 [end_date_ymd] => 2025-02-17 04:04:06 [RateCDR] => 1 ) [2025-02-17 04:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:04:06' and `end` < '2025-02-17 04:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:04:19] Production.INFO: count ==1468 [2025-02-17 04:04:19] Production.ERROR: pbx CDR StartTime 2025-02-17 01:04:06 - End Time 2025-02-17 04:04:06 [2025-02-17 04:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493164', 'tblTempUsageDetail_20' ) start [2025-02-17 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493164', 'tblTempUsageDetail_20' ) end [2025-02-17 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493164', 'tblTempVendorCDR_20' ) start [2025-02-17 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493164', 'tblTempVendorCDR_20' ) end [2025-02-17 04:04:19] Production.INFO: ProcessCDR(1,14493164,1,1,2) [2025-02-17 04:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493164', 'tblTempUsageDetail_20' ) start [2025-02-17 04:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493164', 'tblTempUsageDetail_20' ) end [2025-02-17 04:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:04:23] Production.INFO: ==17462== Releasing lock... [2025-02-17 04:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:04:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-17 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:05:05 [end_date_ymd] => 2025-02-17 04:05:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 01:05:05' and `end` < '2025-02-17 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-02-17 04:05:18] Production.INFO: count ==1467 [2025-02-17 04:05:19] Production.ERROR: pbx CDR StartTime 2025-02-17 01:05:05 - End Time 2025-02-17 04:05:05 [2025-02-17 04:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493169', 'tblTempUsageDetail_20' ) start [2025-02-17 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493169', 'tblTempUsageDetail_20' ) end [2025-02-17 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493169', 'tblTempVendorCDR_20' ) start [2025-02-17 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493169', 'tblTempVendorCDR_20' ) end [2025-02-17 04:05:19] Production.INFO: ProcessCDR(1,14493169,1,1,2) [2025-02-17 04:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493169', 'tblTempUsageDetail_20' ) start [2025-02-17 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493169', 'tblTempUsageDetail_20' ) end [2025-02-17 04:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:05:22] Production.INFO: ==17588== Releasing lock... [2025-02-17 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:05:22] Production.INFO: 39 MB #Memory Used# [2025-02-17 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:06:05 [end_date_ymd] => 2025-02-17 04:06:05 [RateCDR] => 1 ) [2025-02-17 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:06:05' and `end` < '2025-02-17 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:06:19] Production.INFO: count ==1467 [2025-02-17 04:06:19] Production.ERROR: pbx CDR StartTime 2025-02-17 01:06:05 - End Time 2025-02-17 04:06:05 [2025-02-17 04:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493174', 'tblTempUsageDetail_20' ) start [2025-02-17 04:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493174', 'tblTempUsageDetail_20' ) end [2025-02-17 04:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493174', 'tblTempVendorCDR_20' ) start [2025-02-17 04:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493174', 'tblTempVendorCDR_20' ) end [2025-02-17 04:06:20] Production.INFO: ProcessCDR(1,14493174,1,1,2) [2025-02-17 04:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493174', 'tblTempUsageDetail_20' ) start [2025-02-17 04:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493174', 'tblTempUsageDetail_20' ) end [2025-02-17 04:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:06:23] Production.INFO: ==17676== Releasing lock... [2025-02-17 04:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:06:23] Production.INFO: 39 MB #Memory Used# [2025-02-17 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:07:05 [end_date_ymd] => 2025-02-17 04:07:05 [RateCDR] => 1 ) [2025-02-17 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:07:05' and `end` < '2025-02-17 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:07:18] Production.INFO: count ==1467 [2025-02-17 04:07:19] Production.ERROR: pbx CDR StartTime 2025-02-17 01:07:05 - End Time 2025-02-17 04:07:05 [2025-02-17 04:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493179', 'tblTempUsageDetail_20' ) start [2025-02-17 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493179', 'tblTempUsageDetail_20' ) end [2025-02-17 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493179', 'tblTempVendorCDR_20' ) start [2025-02-17 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493179', 'tblTempVendorCDR_20' ) end [2025-02-17 04:07:19] Production.INFO: ProcessCDR(1,14493179,1,1,2) [2025-02-17 04:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493179', 'tblTempUsageDetail_20' ) start [2025-02-17 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493179', 'tblTempUsageDetail_20' ) end [2025-02-17 04:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:07:22] Production.INFO: ==17767== Releasing lock... [2025-02-17 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:07:22] Production.INFO: 39 MB #Memory Used# [2025-02-17 04:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:08:06 [end_date_ymd] => 2025-02-17 04:08:06 [RateCDR] => 1 ) [2025-02-17 04:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:08:06' and `end` < '2025-02-17 04:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:08:19] Production.INFO: count ==1467 [2025-02-17 04:08:20] Production.ERROR: pbx CDR StartTime 2025-02-17 01:08:06 - End Time 2025-02-17 04:08:06 [2025-02-17 04:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493184', 'tblTempUsageDetail_20' ) start [2025-02-17 04:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493184', 'tblTempUsageDetail_20' ) end [2025-02-17 04:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493184', 'tblTempVendorCDR_20' ) start [2025-02-17 04:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493184', 'tblTempVendorCDR_20' ) end [2025-02-17 04:08:20] Production.INFO: ProcessCDR(1,14493184,1,1,2) [2025-02-17 04:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493184', 'tblTempUsageDetail_20' ) start [2025-02-17 04:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493184', 'tblTempUsageDetail_20' ) end [2025-02-17 04:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:08:23] Production.INFO: ==17854== Releasing lock... [2025-02-17 04:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:08:23] Production.INFO: 39 MB #Memory Used# [2025-02-17 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:09:05 [end_date_ymd] => 2025-02-17 04:09:05 [RateCDR] => 1 ) [2025-02-17 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:09:05' and `end` < '2025-02-17 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:09:18] Production.INFO: count ==1467 [2025-02-17 04:09:19] Production.ERROR: pbx CDR StartTime 2025-02-17 01:09:05 - End Time 2025-02-17 04:09:05 [2025-02-17 04:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493189', 'tblTempUsageDetail_20' ) start [2025-02-17 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493189', 'tblTempUsageDetail_20' ) end [2025-02-17 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493189', 'tblTempVendorCDR_20' ) start [2025-02-17 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493189', 'tblTempVendorCDR_20' ) end [2025-02-17 04:09:19] Production.INFO: ProcessCDR(1,14493189,1,1,2) [2025-02-17 04:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493189', 'tblTempUsageDetail_20' ) start [2025-02-17 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493189', 'tblTempUsageDetail_20' ) end [2025-02-17 04:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:09:22] Production.INFO: ==17946== Releasing lock... [2025-02-17 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:09:22] Production.INFO: 39 MB #Memory Used# [2025-02-17 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:10:06 [end_date_ymd] => 2025-02-17 04:10:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 01:10:06' and `end` < '2025-02-17 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-02-17 04:10:19] Production.INFO: count ==1459 [2025-02-17 04:10:19] Production.ERROR: pbx CDR StartTime 2025-02-17 01:10:06 - End Time 2025-02-17 04:10:06 [2025-02-17 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493194', 'tblTempUsageDetail_20' ) start [2025-02-17 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493194', 'tblTempUsageDetail_20' ) end [2025-02-17 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493194', 'tblTempVendorCDR_20' ) start [2025-02-17 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493194', 'tblTempVendorCDR_20' ) end [2025-02-17 04:10:19] Production.INFO: ProcessCDR(1,14493194,1,1,2) [2025-02-17 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493194', 'tblTempUsageDetail_20' ) start [2025-02-17 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493194', 'tblTempUsageDetail_20' ) end [2025-02-17 04:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:10:23] Production.INFO: ==18036== Releasing lock... [2025-02-17 04:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:10:23] Production.INFO: 39 MB #Memory Used# [2025-02-17 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:11:05 [end_date_ymd] => 2025-02-17 04:11:05 [RateCDR] => 1 ) [2025-02-17 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:11:05' and `end` < '2025-02-17 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:11:19] Production.INFO: count ==1452 [2025-02-17 04:11:20] Production.ERROR: pbx CDR StartTime 2025-02-17 01:11:05 - End Time 2025-02-17 04:11:05 [2025-02-17 04:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493200', 'tblTempUsageDetail_20' ) start [2025-02-17 04:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493200', 'tblTempUsageDetail_20' ) end [2025-02-17 04:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493200', 'tblTempVendorCDR_20' ) start [2025-02-17 04:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493200', 'tblTempVendorCDR_20' ) end [2025-02-17 04:11:20] Production.INFO: ProcessCDR(1,14493200,1,1,2) [2025-02-17 04:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493200', 'tblTempUsageDetail_20' ) start [2025-02-17 04:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493200', 'tblTempUsageDetail_20' ) end [2025-02-17 04:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:11:23] Production.INFO: ==18127== Releasing lock... [2025-02-17 04:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:11:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-17 04:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:12:06 [end_date_ymd] => 2025-02-17 04:12:06 [RateCDR] => 1 ) [2025-02-17 04:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:12:06' and `end` < '2025-02-17 04:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:12:19] Production.INFO: count ==1442 [2025-02-17 04:12:19] Production.ERROR: pbx CDR StartTime 2025-02-17 01:12:06 - End Time 2025-02-17 04:12:06 [2025-02-17 04:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493205', 'tblTempUsageDetail_20' ) start [2025-02-17 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493205', 'tblTempUsageDetail_20' ) end [2025-02-17 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493205', 'tblTempVendorCDR_20' ) start [2025-02-17 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493205', 'tblTempVendorCDR_20' ) end [2025-02-17 04:12:19] Production.INFO: ProcessCDR(1,14493205,1,1,2) [2025-02-17 04:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493205', 'tblTempUsageDetail_20' ) start [2025-02-17 04:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493205', 'tblTempUsageDetail_20' ) end [2025-02-17 04:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:12:23] Production.INFO: ==18220== Releasing lock... [2025-02-17 04:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:12:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-17 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:13:05 [end_date_ymd] => 2025-02-17 04:13:05 [RateCDR] => 1 ) [2025-02-17 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:13:05' and `end` < '2025-02-17 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:13:18] Production.INFO: count ==1432 [2025-02-17 04:13:18] Production.ERROR: pbx CDR StartTime 2025-02-17 01:13:05 - End Time 2025-02-17 04:13:05 [2025-02-17 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493210', 'tblTempUsageDetail_20' ) start [2025-02-17 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493210', 'tblTempUsageDetail_20' ) end [2025-02-17 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493210', 'tblTempVendorCDR_20' ) start [2025-02-17 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493210', 'tblTempVendorCDR_20' ) end [2025-02-17 04:13:18] Production.INFO: ProcessCDR(1,14493210,1,1,2) [2025-02-17 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493210', 'tblTempUsageDetail_20' ) start [2025-02-17 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493210', 'tblTempUsageDetail_20' ) end [2025-02-17 04:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:13:22] Production.INFO: ==18304== Releasing lock... [2025-02-17 04:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:13:22] Production.INFO: 39 MB #Memory Used# [2025-02-17 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:14:05 [end_date_ymd] => 2025-02-17 04:14:05 [RateCDR] => 1 ) [2025-02-17 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:14:05' and `end` < '2025-02-17 04:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:14:18] Production.INFO: count ==1418 [2025-02-17 04:14:19] Production.ERROR: pbx CDR StartTime 2025-02-17 01:14:05 - End Time 2025-02-17 04:14:05 [2025-02-17 04:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493215', 'tblTempUsageDetail_20' ) start [2025-02-17 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493215', 'tblTempUsageDetail_20' ) end [2025-02-17 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493215', 'tblTempVendorCDR_20' ) start [2025-02-17 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493215', 'tblTempVendorCDR_20' ) end [2025-02-17 04:14:19] Production.INFO: ProcessCDR(1,14493215,1,1,2) [2025-02-17 04:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493215', 'tblTempUsageDetail_20' ) start [2025-02-17 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493215', 'tblTempUsageDetail_20' ) end [2025-02-17 04:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:14:22] Production.INFO: ==18394== Releasing lock... [2025-02-17 04:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:14:22] Production.INFO: 39 MB #Memory Used# [2025-02-17 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:15:05 [end_date_ymd] => 2025-02-17 04:15:05 [RateCDR] => 1 ) [2025-02-17 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:15:05' and `end` < '2025-02-17 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:15:18] Production.INFO: count ==1408 [2025-02-17 04:15:18] Production.ERROR: pbx CDR StartTime 2025-02-17 01:15:05 - End Time 2025-02-17 04:15:05 [2025-02-17 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493220', 'tblTempUsageDetail_20' ) start [2025-02-17 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493220', 'tblTempUsageDetail_20' ) end [2025-02-17 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493220', 'tblTempVendorCDR_20' ) start [2025-02-17 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493220', 'tblTempVendorCDR_20' ) end [2025-02-17 04:15:18] Production.INFO: ProcessCDR(1,14493220,1,1,2) [2025-02-17 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493220', 'tblTempUsageDetail_20' ) start [2025-02-17 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493220', 'tblTempUsageDetail_20' ) end [2025-02-17 04:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:15:22] Production.INFO: ==18483== Releasing lock... [2025-02-17 04:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:15:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-17 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:16:05 [end_date_ymd] => 2025-02-17 04:16:05 [RateCDR] => 1 ) [2025-02-17 04:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:16:05' and `end` < '2025-02-17 04:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:16:18] Production.INFO: count ==1399 [2025-02-17 04:16:19] Production.ERROR: pbx CDR StartTime 2025-02-17 01:16:05 - End Time 2025-02-17 04:16:05 [2025-02-17 04:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493225', 'tblTempUsageDetail_20' ) start [2025-02-17 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493225', 'tblTempUsageDetail_20' ) end [2025-02-17 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493225', 'tblTempVendorCDR_20' ) start [2025-02-17 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493225', 'tblTempVendorCDR_20' ) end [2025-02-17 04:16:19] Production.INFO: ProcessCDR(1,14493225,1,1,2) [2025-02-17 04:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493225', 'tblTempUsageDetail_20' ) start [2025-02-17 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493225', 'tblTempUsageDetail_20' ) end [2025-02-17 04:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:16:22] Production.INFO: ==18577== Releasing lock... [2025-02-17 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:16:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-17 04:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:17:06 [end_date_ymd] => 2025-02-17 04:17:06 [RateCDR] => 1 ) [2025-02-17 04:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:17:06' and `end` < '2025-02-17 04:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:17:19] Production.INFO: count ==1387 [2025-02-17 04:17:20] Production.ERROR: pbx CDR StartTime 2025-02-17 01:17:06 - End Time 2025-02-17 04:17:06 [2025-02-17 04:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493230', 'tblTempUsageDetail_20' ) start [2025-02-17 04:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493230', 'tblTempUsageDetail_20' ) end [2025-02-17 04:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493230', 'tblTempVendorCDR_20' ) start [2025-02-17 04:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493230', 'tblTempVendorCDR_20' ) end [2025-02-17 04:17:20] Production.INFO: ProcessCDR(1,14493230,1,1,2) [2025-02-17 04:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493230', 'tblTempUsageDetail_20' ) start [2025-02-17 04:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493230', 'tblTempUsageDetail_20' ) end [2025-02-17 04:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:17:23] Production.INFO: ==18667== Releasing lock... [2025-02-17 04:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:17:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-17 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:18:05 [end_date_ymd] => 2025-02-17 04:18:05 [RateCDR] => 1 ) [2025-02-17 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:18:05' and `end` < '2025-02-17 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:18:18] Production.INFO: count ==1378 [2025-02-17 04:18:19] Production.ERROR: pbx CDR StartTime 2025-02-17 01:18:05 - End Time 2025-02-17 04:18:05 [2025-02-17 04:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493235', 'tblTempUsageDetail_20' ) start [2025-02-17 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493235', 'tblTempUsageDetail_20' ) end [2025-02-17 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493235', 'tblTempVendorCDR_20' ) start [2025-02-17 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493235', 'tblTempVendorCDR_20' ) end [2025-02-17 04:18:19] Production.INFO: ProcessCDR(1,14493235,1,1,2) [2025-02-17 04:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493235', 'tblTempUsageDetail_20' ) start [2025-02-17 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493235', 'tblTempUsageDetail_20' ) end [2025-02-17 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:18:22] Production.INFO: ==18772== Releasing lock... [2025-02-17 04:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:18:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-17 04:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:19:06 [end_date_ymd] => 2025-02-17 04:19:06 [RateCDR] => 1 ) [2025-02-17 04:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:19:06' and `end` < '2025-02-17 04:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:19:19] Production.INFO: count ==1366 [2025-02-17 04:19:20] Production.ERROR: pbx CDR StartTime 2025-02-17 01:19:06 - End Time 2025-02-17 04:19:06 [2025-02-17 04:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493240', 'tblTempUsageDetail_20' ) start [2025-02-17 04:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493240', 'tblTempUsageDetail_20' ) end [2025-02-17 04:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493240', 'tblTempVendorCDR_20' ) start [2025-02-17 04:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493240', 'tblTempVendorCDR_20' ) end [2025-02-17 04:19:20] Production.INFO: ProcessCDR(1,14493240,1,1,2) [2025-02-17 04:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493240', 'tblTempUsageDetail_20' ) start [2025-02-17 04:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493240', 'tblTempUsageDetail_20' ) end [2025-02-17 04:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:19:23] Production.INFO: ==18862== Releasing lock... [2025-02-17 04:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:19:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-17 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:20:06 [end_date_ymd] => 2025-02-17 04:20:06 [RateCDR] => 1 ) [2025-02-17 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:20:06' and `end` < '2025-02-17 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:20:19] Production.INFO: count ==1345 [2025-02-17 04:20:20] Production.ERROR: pbx CDR StartTime 2025-02-17 01:20:06 - End Time 2025-02-17 04:20:06 [2025-02-17 04:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493246', 'tblTempUsageDetail_20' ) start [2025-02-17 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493246', 'tblTempUsageDetail_20' ) end [2025-02-17 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493246', 'tblTempVendorCDR_20' ) start [2025-02-17 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493246', 'tblTempVendorCDR_20' ) end [2025-02-17 04:20:20] Production.INFO: ProcessCDR(1,14493246,1,1,2) [2025-02-17 04:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493246', 'tblTempUsageDetail_20' ) start [2025-02-17 04:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493246', 'tblTempUsageDetail_20' ) end [2025-02-17 04:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:20:23] Production.INFO: ==18994== Releasing lock... [2025-02-17 04:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:20:23] Production.INFO: 38 MB #Memory Used# [2025-02-17 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:21:05 [end_date_ymd] => 2025-02-17 04:21:05 [RateCDR] => 1 ) [2025-02-17 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:21:05' and `end` < '2025-02-17 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:21:18] Production.INFO: count ==1313 [2025-02-17 04:21:19] Production.ERROR: pbx CDR StartTime 2025-02-17 01:21:05 - End Time 2025-02-17 04:21:05 [2025-02-17 04:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493251', 'tblTempUsageDetail_20' ) start [2025-02-17 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493251', 'tblTempUsageDetail_20' ) end [2025-02-17 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493251', 'tblTempVendorCDR_20' ) start [2025-02-17 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493251', 'tblTempVendorCDR_20' ) end [2025-02-17 04:21:19] Production.INFO: ProcessCDR(1,14493251,1,1,2) [2025-02-17 04:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493251', 'tblTempUsageDetail_20' ) start [2025-02-17 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493251', 'tblTempUsageDetail_20' ) end [2025-02-17 04:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:21:22] Production.INFO: ==19091== Releasing lock... [2025-02-17 04:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:21:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-17 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:22:05 [end_date_ymd] => 2025-02-17 04:22:05 [RateCDR] => 1 ) [2025-02-17 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:22:05' and `end` < '2025-02-17 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:22:18] Production.INFO: count ==1302 [2025-02-17 04:22:18] Production.ERROR: pbx CDR StartTime 2025-02-17 01:22:05 - End Time 2025-02-17 04:22:05 [2025-02-17 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493256', 'tblTempUsageDetail_20' ) start [2025-02-17 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493256', 'tblTempUsageDetail_20' ) end [2025-02-17 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493256', 'tblTempVendorCDR_20' ) start [2025-02-17 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493256', 'tblTempVendorCDR_20' ) end [2025-02-17 04:22:18] Production.INFO: ProcessCDR(1,14493256,1,1,2) [2025-02-17 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493256', 'tblTempUsageDetail_20' ) start [2025-02-17 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493256', 'tblTempUsageDetail_20' ) end [2025-02-17 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:22:21] Production.INFO: ==19176== Releasing lock... [2025-02-17 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:22:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-17 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:23:05 [end_date_ymd] => 2025-02-17 04:23:05 [RateCDR] => 1 ) [2025-02-17 04:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:23:05' and `end` < '2025-02-17 04:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:23:19] Production.INFO: count ==1292 [2025-02-17 04:23:20] Production.ERROR: pbx CDR StartTime 2025-02-17 01:23:05 - End Time 2025-02-17 04:23:05 [2025-02-17 04:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493261', 'tblTempUsageDetail_20' ) start [2025-02-17 04:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493261', 'tblTempUsageDetail_20' ) end [2025-02-17 04:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493261', 'tblTempVendorCDR_20' ) start [2025-02-17 04:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493261', 'tblTempVendorCDR_20' ) end [2025-02-17 04:23:20] Production.INFO: ProcessCDR(1,14493261,1,1,2) [2025-02-17 04:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493261', 'tblTempUsageDetail_20' ) start [2025-02-17 04:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493261', 'tblTempUsageDetail_20' ) end [2025-02-17 04:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:23:23] Production.INFO: ==19271== Releasing lock... [2025-02-17 04:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:23:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-17 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:24:05 [end_date_ymd] => 2025-02-17 04:24:05 [RateCDR] => 1 ) [2025-02-17 04:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:24:05' and `end` < '2025-02-17 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:24:18] Production.INFO: count ==1283 [2025-02-17 04:24:18] Production.ERROR: pbx CDR StartTime 2025-02-17 01:24:05 - End Time 2025-02-17 04:24:05 [2025-02-17 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493266', 'tblTempUsageDetail_20' ) start [2025-02-17 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493266', 'tblTempUsageDetail_20' ) end [2025-02-17 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493266', 'tblTempVendorCDR_20' ) start [2025-02-17 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493266', 'tblTempVendorCDR_20' ) end [2025-02-17 04:24:19] Production.INFO: ProcessCDR(1,14493266,1,1,2) [2025-02-17 04:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493266', 'tblTempUsageDetail_20' ) start [2025-02-17 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493266', 'tblTempUsageDetail_20' ) end [2025-02-17 04:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:24:22] Production.INFO: ==19364== Releasing lock... [2025-02-17 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:24:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-17 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:25:05 [end_date_ymd] => 2025-02-17 04:25:05 [RateCDR] => 1 ) [2025-02-17 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:25:05' and `end` < '2025-02-17 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:25:18] Production.INFO: count ==1270 [2025-02-17 04:25:19] Production.ERROR: pbx CDR StartTime 2025-02-17 01:25:05 - End Time 2025-02-17 04:25:05 [2025-02-17 04:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493271', 'tblTempUsageDetail_20' ) start [2025-02-17 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493271', 'tblTempUsageDetail_20' ) end [2025-02-17 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493271', 'tblTempVendorCDR_20' ) start [2025-02-17 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493271', 'tblTempVendorCDR_20' ) end [2025-02-17 04:25:19] Production.INFO: ProcessCDR(1,14493271,1,1,2) [2025-02-17 04:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493271', 'tblTempUsageDetail_20' ) start [2025-02-17 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493271', 'tblTempUsageDetail_20' ) end [2025-02-17 04:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:25:22] Production.INFO: ==19461== Releasing lock... [2025-02-17 04:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:25:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-17 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:26:05 [end_date_ymd] => 2025-02-17 04:26:05 [RateCDR] => 1 ) [2025-02-17 04:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:26:05' and `end` < '2025-02-17 04:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:26:20] Production.INFO: count ==1214 [2025-02-17 04:26:20] Production.ERROR: pbx CDR StartTime 2025-02-17 01:26:05 - End Time 2025-02-17 04:26:05 [2025-02-17 04:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493276', 'tblTempUsageDetail_20' ) start [2025-02-17 04:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493276', 'tblTempUsageDetail_20' ) end [2025-02-17 04:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493276', 'tblTempVendorCDR_20' ) start [2025-02-17 04:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493276', 'tblTempVendorCDR_20' ) end [2025-02-17 04:26:20] Production.INFO: ProcessCDR(1,14493276,1,1,2) [2025-02-17 04:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493276', 'tblTempUsageDetail_20' ) start [2025-02-17 04:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493276', 'tblTempUsageDetail_20' ) end [2025-02-17 04:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:26:23] Production.INFO: ==19562== Releasing lock... [2025-02-17 04:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:26:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-17 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:27:05 [end_date_ymd] => 2025-02-17 04:27:05 [RateCDR] => 1 ) [2025-02-17 04:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:27:05' and `end` < '2025-02-17 04:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:27:18] Production.INFO: count ==1166 [2025-02-17 04:27:19] Production.ERROR: pbx CDR StartTime 2025-02-17 01:27:05 - End Time 2025-02-17 04:27:05 [2025-02-17 04:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493281', 'tblTempUsageDetail_20' ) start [2025-02-17 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493281', 'tblTempUsageDetail_20' ) end [2025-02-17 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493281', 'tblTempVendorCDR_20' ) start [2025-02-17 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493281', 'tblTempVendorCDR_20' ) end [2025-02-17 04:27:19] Production.INFO: ProcessCDR(1,14493281,1,1,2) [2025-02-17 04:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493281', 'tblTempUsageDetail_20' ) start [2025-02-17 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493281', 'tblTempUsageDetail_20' ) end [2025-02-17 04:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:27:22] Production.INFO: ==19659== Releasing lock... [2025-02-17 04:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:27:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-17 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:28:05 [end_date_ymd] => 2025-02-17 04:28:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 01:28:05' and `end` < '2025-02-17 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-02-17 04:28:18] Production.INFO: count ==1121 [2025-02-17 04:28:18] Production.ERROR: pbx CDR StartTime 2025-02-17 01:28:05 - End Time 2025-02-17 04:28:05 [2025-02-17 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493286', 'tblTempUsageDetail_20' ) start [2025-02-17 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493286', 'tblTempUsageDetail_20' ) end [2025-02-17 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493286', 'tblTempVendorCDR_20' ) start [2025-02-17 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493286', 'tblTempVendorCDR_20' ) end [2025-02-17 04:28:18] Production.INFO: ProcessCDR(1,14493286,1,1,2) [2025-02-17 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493286', 'tblTempUsageDetail_20' ) start [2025-02-17 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493286', 'tblTempUsageDetail_20' ) end [2025-02-17 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:28:21] Production.INFO: ==19753== Releasing lock... [2025-02-17 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:28:21] Production.INFO: 37 MB #Memory Used# [2025-02-17 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:29:05 [end_date_ymd] => 2025-02-17 04:29:05 [RateCDR] => 1 ) [2025-02-17 04:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:29:05' and `end` < '2025-02-17 04:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:29:19] Production.INFO: count ==1076 [2025-02-17 04:29:19] Production.ERROR: pbx CDR StartTime 2025-02-17 01:29:05 - End Time 2025-02-17 04:29:05 [2025-02-17 04:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493291', 'tblTempUsageDetail_20' ) start [2025-02-17 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493291', 'tblTempUsageDetail_20' ) end [2025-02-17 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493291', 'tblTempVendorCDR_20' ) start [2025-02-17 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493291', 'tblTempVendorCDR_20' ) end [2025-02-17 04:29:19] Production.INFO: ProcessCDR(1,14493291,1,1,2) [2025-02-17 04:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493291', 'tblTempUsageDetail_20' ) start [2025-02-17 04:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493291', 'tblTempUsageDetail_20' ) end [2025-02-17 04:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:29:23] Production.INFO: ==19849== Releasing lock... [2025-02-17 04:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:29:23] Production.INFO: 37 MB #Memory Used# [2025-02-17 04:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:30:07 [end_date_ymd] => 2025-02-17 04:30:07 [RateCDR] => 1 ) [2025-02-17 04:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:30:07' and `end` < '2025-02-17 04:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:30:19] Production.INFO: count ==1056 [2025-02-17 04:30:20] Production.ERROR: pbx CDR StartTime 2025-02-17 01:30:07 - End Time 2025-02-17 04:30:07 [2025-02-17 04:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493297', 'tblTempUsageDetail_20' ) start [2025-02-17 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493297', 'tblTempUsageDetail_20' ) end [2025-02-17 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493297', 'tblTempVendorCDR_20' ) start [2025-02-17 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493297', 'tblTempVendorCDR_20' ) end [2025-02-17 04:30:20] Production.INFO: ProcessCDR(1,14493297,1,1,2) [2025-02-17 04:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493297', 'tblTempUsageDetail_20' ) start [2025-02-17 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493297', 'tblTempUsageDetail_20' ) end [2025-02-17 04:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:30:23] Production.INFO: ==19951== Releasing lock... [2025-02-17 04:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:30:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-17 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:31:05 [end_date_ymd] => 2025-02-17 04:31:05 [RateCDR] => 1 ) [2025-02-17 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:31:05' and `end` < '2025-02-17 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:31:18] Production.INFO: count ==1036 [2025-02-17 04:31:19] Production.ERROR: pbx CDR StartTime 2025-02-17 01:31:05 - End Time 2025-02-17 04:31:05 [2025-02-17 04:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493303', 'tblTempUsageDetail_20' ) start [2025-02-17 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493303', 'tblTempUsageDetail_20' ) end [2025-02-17 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493303', 'tblTempVendorCDR_20' ) start [2025-02-17 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493303', 'tblTempVendorCDR_20' ) end [2025-02-17 04:31:19] Production.INFO: ProcessCDR(1,14493303,1,1,2) [2025-02-17 04:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493303', 'tblTempUsageDetail_20' ) start [2025-02-17 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493303', 'tblTempUsageDetail_20' ) end [2025-02-17 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:31:22] Production.INFO: ==20051== Releasing lock... [2025-02-17 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:31:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-17 04:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:32:06 [end_date_ymd] => 2025-02-17 04:32:06 [RateCDR] => 1 ) [2025-02-17 04:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:32:06' and `end` < '2025-02-17 04:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:32:20] Production.INFO: count ==980 [2025-02-17 04:32:20] Production.ERROR: pbx CDR StartTime 2025-02-17 01:32:06 - End Time 2025-02-17 04:32:06 [2025-02-17 04:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493308', 'tblTempUsageDetail_20' ) start [2025-02-17 04:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493308', 'tblTempUsageDetail_20' ) end [2025-02-17 04:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493308', 'tblTempVendorCDR_20' ) start [2025-02-17 04:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493308', 'tblTempVendorCDR_20' ) end [2025-02-17 04:32:20] Production.INFO: ProcessCDR(1,14493308,1,1,2) [2025-02-17 04:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493308', 'tblTempUsageDetail_20' ) start [2025-02-17 04:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493308', 'tblTempUsageDetail_20' ) end [2025-02-17 04:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:32:23] Production.INFO: ==20200== Releasing lock... [2025-02-17 04:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:32:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-17 04:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:33:04 [end_date_ymd] => 2025-02-17 04:33:04 [RateCDR] => 1 ) [2025-02-17 04:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:33:04' and `end` < '2025-02-17 04:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:33:18] Production.INFO: count ==931 [2025-02-17 04:33:18] Production.ERROR: pbx CDR StartTime 2025-02-17 01:33:04 - End Time 2025-02-17 04:33:04 [2025-02-17 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493313', 'tblTempUsageDetail_20' ) start [2025-02-17 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493313', 'tblTempUsageDetail_20' ) end [2025-02-17 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493313', 'tblTempVendorCDR_20' ) start [2025-02-17 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493313', 'tblTempVendorCDR_20' ) end [2025-02-17 04:33:18] Production.INFO: ProcessCDR(1,14493313,1,1,2) [2025-02-17 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493313', 'tblTempUsageDetail_20' ) start [2025-02-17 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493313', 'tblTempUsageDetail_20' ) end [2025-02-17 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:33:21] Production.INFO: ==20313== Releasing lock... [2025-02-17 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:33:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-17 04:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:34:06 [end_date_ymd] => 2025-02-17 04:34:06 [RateCDR] => 1 ) [2025-02-17 04:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:34:06' and `end` < '2025-02-17 04:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:34:18] Production.INFO: count ==888 [2025-02-17 04:34:19] Production.ERROR: pbx CDR StartTime 2025-02-17 01:34:06 - End Time 2025-02-17 04:34:06 [2025-02-17 04:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493318', 'tblTempUsageDetail_20' ) start [2025-02-17 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493318', 'tblTempUsageDetail_20' ) end [2025-02-17 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493318', 'tblTempVendorCDR_20' ) start [2025-02-17 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493318', 'tblTempVendorCDR_20' ) end [2025-02-17 04:34:19] Production.INFO: ProcessCDR(1,14493318,1,1,2) [2025-02-17 04:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493318', 'tblTempUsageDetail_20' ) start [2025-02-17 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493318', 'tblTempUsageDetail_20' ) end [2025-02-17 04:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:34:22] Production.INFO: ==20414== Releasing lock... [2025-02-17 04:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:34:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-17 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:35:05 [end_date_ymd] => 2025-02-17 04:35:05 [RateCDR] => 1 ) [2025-02-17 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:35:05' and `end` < '2025-02-17 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:35:18] Production.INFO: count ==851 [2025-02-17 04:35:18] Production.ERROR: pbx CDR StartTime 2025-02-17 01:35:05 - End Time 2025-02-17 04:35:05 [2025-02-17 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493323', 'tblTempUsageDetail_20' ) start [2025-02-17 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493323', 'tblTempUsageDetail_20' ) end [2025-02-17 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493323', 'tblTempVendorCDR_20' ) start [2025-02-17 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493323', 'tblTempVendorCDR_20' ) end [2025-02-17 04:35:18] Production.INFO: ProcessCDR(1,14493323,1,1,2) [2025-02-17 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493323', 'tblTempUsageDetail_20' ) start [2025-02-17 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493323', 'tblTempUsageDetail_20' ) end [2025-02-17 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:35:21] Production.INFO: ==20517== Releasing lock... [2025-02-17 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:35:21] Production.INFO: 35 MB #Memory Used# [2025-02-17 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:36:05 [end_date_ymd] => 2025-02-17 04:36:05 [RateCDR] => 1 ) [2025-02-17 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:36:05' and `end` < '2025-02-17 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:36:19] Production.INFO: count ==815 [2025-02-17 04:36:20] Production.ERROR: pbx CDR StartTime 2025-02-17 01:36:05 - End Time 2025-02-17 04:36:05 [2025-02-17 04:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493328', 'tblTempUsageDetail_20' ) start [2025-02-17 04:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493328', 'tblTempUsageDetail_20' ) end [2025-02-17 04:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493328', 'tblTempVendorCDR_20' ) start [2025-02-17 04:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493328', 'tblTempVendorCDR_20' ) end [2025-02-17 04:36:20] Production.INFO: ProcessCDR(1,14493328,1,1,2) [2025-02-17 04:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493328', 'tblTempUsageDetail_20' ) start [2025-02-17 04:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493328', 'tblTempUsageDetail_20' ) end [2025-02-17 04:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:36:23] Production.INFO: ==20642== Releasing lock... [2025-02-17 04:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:36:23] Production.INFO: 34 MB #Memory Used# [2025-02-17 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:37:05 [end_date_ymd] => 2025-02-17 04:37:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 01:37:05' and `end` < '2025-02-17 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-02-17 04:37:17] Production.INFO: count ==776 [2025-02-17 04:37:18] Production.ERROR: pbx CDR StartTime 2025-02-17 01:37:05 - End Time 2025-02-17 04:37:05 [2025-02-17 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493333', 'tblTempUsageDetail_20' ) start [2025-02-17 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493333', 'tblTempUsageDetail_20' ) end [2025-02-17 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493333', 'tblTempVendorCDR_20' ) start [2025-02-17 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493333', 'tblTempVendorCDR_20' ) end [2025-02-17 04:37:18] Production.INFO: ProcessCDR(1,14493333,1,1,2) [2025-02-17 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493333', 'tblTempUsageDetail_20' ) start [2025-02-17 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493333', 'tblTempUsageDetail_20' ) end [2025-02-17 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:37:21] Production.INFO: ==20749== Releasing lock... [2025-02-17 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:37:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-17 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:38:05 [end_date_ymd] => 2025-02-17 04:38:05 [RateCDR] => 1 ) [2025-02-17 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:38:05' and `end` < '2025-02-17 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:38:19] Production.INFO: count ==768 [2025-02-17 04:38:19] Production.ERROR: pbx CDR StartTime 2025-02-17 01:38:05 - End Time 2025-02-17 04:38:05 [2025-02-17 04:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493338', 'tblTempUsageDetail_20' ) start [2025-02-17 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493338', 'tblTempUsageDetail_20' ) end [2025-02-17 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493338', 'tblTempVendorCDR_20' ) start [2025-02-17 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493338', 'tblTempVendorCDR_20' ) end [2025-02-17 04:38:19] Production.INFO: ProcessCDR(1,14493338,1,1,2) [2025-02-17 04:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493338', 'tblTempUsageDetail_20' ) start [2025-02-17 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493338', 'tblTempUsageDetail_20' ) end [2025-02-17 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:38:22] Production.INFO: ==20836== Releasing lock... [2025-02-17 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:38:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-17 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:39:05 [end_date_ymd] => 2025-02-17 04:39:05 [RateCDR] => 1 ) [2025-02-17 04:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:39:05' and `end` < '2025-02-17 04:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:39:18] Production.INFO: count ==753 [2025-02-17 04:39:18] Production.ERROR: pbx CDR StartTime 2025-02-17 01:39:05 - End Time 2025-02-17 04:39:05 [2025-02-17 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493343', 'tblTempUsageDetail_20' ) start [2025-02-17 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493343', 'tblTempUsageDetail_20' ) end [2025-02-17 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493343', 'tblTempVendorCDR_20' ) start [2025-02-17 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493343', 'tblTempVendorCDR_20' ) end [2025-02-17 04:39:18] Production.INFO: ProcessCDR(1,14493343,1,1,2) [2025-02-17 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493343', 'tblTempUsageDetail_20' ) start [2025-02-17 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493343', 'tblTempUsageDetail_20' ) end [2025-02-17 04:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:39:22] Production.INFO: ==20916== Releasing lock... [2025-02-17 04:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:39:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-17 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:40:06 [end_date_ymd] => 2025-02-17 04:40:06 [RateCDR] => 1 ) [2025-02-17 04:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:40:06' and `end` < '2025-02-17 04:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:40:19] Production.INFO: count ==703 [2025-02-17 04:40:19] Production.ERROR: pbx CDR StartTime 2025-02-17 01:40:06 - End Time 2025-02-17 04:40:06 [2025-02-17 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493348', 'tblTempUsageDetail_20' ) start [2025-02-17 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493348', 'tblTempUsageDetail_20' ) end [2025-02-17 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493348', 'tblTempVendorCDR_20' ) start [2025-02-17 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493348', 'tblTempVendorCDR_20' ) end [2025-02-17 04:40:19] Production.INFO: ProcessCDR(1,14493348,1,1,2) [2025-02-17 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493348', 'tblTempUsageDetail_20' ) start [2025-02-17 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493348', 'tblTempUsageDetail_20' ) end [2025-02-17 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:40:22] Production.INFO: ==21001== Releasing lock... [2025-02-17 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:40:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-17 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:41:05 [end_date_ymd] => 2025-02-17 04:41:05 [RateCDR] => 1 ) [2025-02-17 04:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:41:05' and `end` < '2025-02-17 04:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:41:19] Production.INFO: count ==642 [2025-02-17 04:41:19] Production.ERROR: pbx CDR StartTime 2025-02-17 01:41:05 - End Time 2025-02-17 04:41:05 [2025-02-17 04:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493354', 'tblTempUsageDetail_20' ) start [2025-02-17 04:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493354', 'tblTempUsageDetail_20' ) end [2025-02-17 04:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493354', 'tblTempVendorCDR_20' ) start [2025-02-17 04:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493354', 'tblTempVendorCDR_20' ) end [2025-02-17 04:41:19] Production.INFO: ProcessCDR(1,14493354,1,1,2) [2025-02-17 04:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493354', 'tblTempUsageDetail_20' ) start [2025-02-17 04:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493354', 'tblTempUsageDetail_20' ) end [2025-02-17 04:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:41:22] Production.INFO: ==21081== Releasing lock... [2025-02-17 04:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:41:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-17 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:42:05 [end_date_ymd] => 2025-02-17 04:42:05 [RateCDR] => 1 ) [2025-02-17 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:42:05' and `end` < '2025-02-17 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:42:18] Production.INFO: count ==606 [2025-02-17 04:42:19] Production.ERROR: pbx CDR StartTime 2025-02-17 01:42:05 - End Time 2025-02-17 04:42:05 [2025-02-17 04:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493359', 'tblTempUsageDetail_20' ) start [2025-02-17 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493359', 'tblTempUsageDetail_20' ) end [2025-02-17 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493359', 'tblTempVendorCDR_20' ) start [2025-02-17 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493359', 'tblTempVendorCDR_20' ) end [2025-02-17 04:42:19] Production.INFO: ProcessCDR(1,14493359,1,1,2) [2025-02-17 04:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493359', 'tblTempUsageDetail_20' ) start [2025-02-17 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493359', 'tblTempUsageDetail_20' ) end [2025-02-17 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:42:22] Production.INFO: ==21159== Releasing lock... [2025-02-17 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:42:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-17 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:43:05 [end_date_ymd] => 2025-02-17 04:43:05 [RateCDR] => 1 ) [2025-02-17 04:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:43:05' and `end` < '2025-02-17 04:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:43:18] Production.INFO: count ==571 [2025-02-17 04:43:18] Production.ERROR: pbx CDR StartTime 2025-02-17 01:43:05 - End Time 2025-02-17 04:43:05 [2025-02-17 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493364', 'tblTempUsageDetail_20' ) start [2025-02-17 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493364', 'tblTempUsageDetail_20' ) end [2025-02-17 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493364', 'tblTempVendorCDR_20' ) start [2025-02-17 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493364', 'tblTempVendorCDR_20' ) end [2025-02-17 04:43:18] Production.INFO: ProcessCDR(1,14493364,1,1,2) [2025-02-17 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493364', 'tblTempUsageDetail_20' ) start [2025-02-17 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493364', 'tblTempUsageDetail_20' ) end [2025-02-17 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:43:21] Production.INFO: ==21241== Releasing lock... [2025-02-17 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:43:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-17 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:44:05 [end_date_ymd] => 2025-02-17 04:44:05 [RateCDR] => 1 ) [2025-02-17 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:44:05' and `end` < '2025-02-17 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:44:19] Production.INFO: count ==535 [2025-02-17 04:44:19] Production.ERROR: pbx CDR StartTime 2025-02-17 01:44:05 - End Time 2025-02-17 04:44:05 [2025-02-17 04:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493369', 'tblTempUsageDetail_20' ) start [2025-02-17 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493369', 'tblTempUsageDetail_20' ) end [2025-02-17 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493369', 'tblTempVendorCDR_20' ) start [2025-02-17 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493369', 'tblTempVendorCDR_20' ) end [2025-02-17 04:44:19] Production.INFO: ProcessCDR(1,14493369,1,1,2) [2025-02-17 04:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493369', 'tblTempUsageDetail_20' ) start [2025-02-17 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493369', 'tblTempUsageDetail_20' ) end [2025-02-17 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:44:22] Production.INFO: ==21318== Releasing lock... [2025-02-17 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:44:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-17 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:45:05 [end_date_ymd] => 2025-02-17 04:45:05 [RateCDR] => 1 ) [2025-02-17 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:45:05' and `end` < '2025-02-17 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:45:18] Production.INFO: count ==501 [2025-02-17 04:45:18] Production.ERROR: pbx CDR StartTime 2025-02-17 01:45:05 - End Time 2025-02-17 04:45:05 [2025-02-17 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493374', 'tblTempUsageDetail_20' ) start [2025-02-17 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493374', 'tblTempUsageDetail_20' ) end [2025-02-17 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493374', 'tblTempVendorCDR_20' ) start [2025-02-17 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493374', 'tblTempVendorCDR_20' ) end [2025-02-17 04:45:18] Production.INFO: ProcessCDR(1,14493374,1,1,2) [2025-02-17 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493374', 'tblTempUsageDetail_20' ) start [2025-02-17 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493374', 'tblTempUsageDetail_20' ) end [2025-02-17 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:45:21] Production.INFO: ==21399== Releasing lock... [2025-02-17 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:45:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-17 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:46:05 [end_date_ymd] => 2025-02-17 04:46:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 01:46:05' and `end` < '2025-02-17 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-02-17 04:46:21] Production.INFO: count ==466 [2025-02-17 04:46:21] Production.ERROR: pbx CDR StartTime 2025-02-17 01:46:05 - End Time 2025-02-17 04:46:05 [2025-02-17 04:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493379', 'tblTempUsageDetail_20' ) start [2025-02-17 04:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493379', 'tblTempUsageDetail_20' ) end [2025-02-17 04:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493379', 'tblTempVendorCDR_20' ) start [2025-02-17 04:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493379', 'tblTempVendorCDR_20' ) end [2025-02-17 04:46:21] Production.INFO: ProcessCDR(1,14493379,1,1,2) [2025-02-17 04:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493379', 'tblTempUsageDetail_20' ) start [2025-02-17 04:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493379', 'tblTempUsageDetail_20' ) end [2025-02-17 04:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:46:24] Production.INFO: ==21476== Releasing lock... [2025-02-17 04:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:46:24] Production.INFO: 31.75 MB #Memory Used# [2025-02-17 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:47:05 [end_date_ymd] => 2025-02-17 04:47:05 [RateCDR] => 1 ) [2025-02-17 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:47:05' and `end` < '2025-02-17 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:47:21] Production.INFO: count ==442 [2025-02-17 04:47:21] Production.ERROR: pbx CDR StartTime 2025-02-17 01:47:05 - End Time 2025-02-17 04:47:05 [2025-02-17 04:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493384', 'tblTempUsageDetail_20' ) start [2025-02-17 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493384', 'tblTempUsageDetail_20' ) end [2025-02-17 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493384', 'tblTempVendorCDR_20' ) start [2025-02-17 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493384', 'tblTempVendorCDR_20' ) end [2025-02-17 04:47:21] Production.INFO: ProcessCDR(1,14493384,1,1,2) [2025-02-17 04:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493384', 'tblTempUsageDetail_20' ) start [2025-02-17 04:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493384', 'tblTempUsageDetail_20' ) end [2025-02-17 04:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:47:24] Production.INFO: ==21560== Releasing lock... [2025-02-17 04:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:47:24] Production.INFO: 32 MB #Memory Used# [2025-02-17 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:48:05 [end_date_ymd] => 2025-02-17 04:48:05 [RateCDR] => 1 ) [2025-02-17 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:48:05' and `end` < '2025-02-17 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:48:19] Production.INFO: count ==399 [2025-02-17 04:48:19] Production.ERROR: pbx CDR StartTime 2025-02-17 01:48:05 - End Time 2025-02-17 04:48:05 [2025-02-17 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493389', 'tblTempUsageDetail_20' ) start [2025-02-17 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493389', 'tblTempUsageDetail_20' ) end [2025-02-17 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493389', 'tblTempVendorCDR_20' ) start [2025-02-17 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493389', 'tblTempVendorCDR_20' ) end [2025-02-17 04:48:19] Production.INFO: ProcessCDR(1,14493389,1,1,2) [2025-02-17 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493389', 'tblTempUsageDetail_20' ) start [2025-02-17 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493389', 'tblTempUsageDetail_20' ) end [2025-02-17 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:48:22] Production.INFO: ==21644== Releasing lock... [2025-02-17 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:48:22] Production.INFO: 31 MB #Memory Used# [2025-02-17 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:49:05 [end_date_ymd] => 2025-02-17 04:49:05 [RateCDR] => 1 ) [2025-02-17 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:49:05' and `end` < '2025-02-17 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:49:21] Production.INFO: count ==354 [2025-02-17 04:49:22] Production.ERROR: pbx CDR StartTime 2025-02-17 01:49:05 - End Time 2025-02-17 04:49:05 [2025-02-17 04:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493394', 'tblTempUsageDetail_20' ) start [2025-02-17 04:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493394', 'tblTempUsageDetail_20' ) end [2025-02-17 04:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493394', 'tblTempVendorCDR_20' ) start [2025-02-17 04:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493394', 'tblTempVendorCDR_20' ) end [2025-02-17 04:49:22] Production.INFO: ProcessCDR(1,14493394,1,1,2) [2025-02-17 04:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493394', 'tblTempUsageDetail_20' ) start [2025-02-17 04:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493394', 'tblTempUsageDetail_20' ) end [2025-02-17 04:49:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:49:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:49:25] Production.INFO: ==21728== Releasing lock... [2025-02-17 04:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:49:25] Production.INFO: 31.25 MB #Memory Used# [2025-02-17 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:50:06 [end_date_ymd] => 2025-02-17 04:50:06 [RateCDR] => 1 ) [2025-02-17 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:50:06' and `end` < '2025-02-17 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:50:20] Production.INFO: count ==306 [2025-02-17 04:50:20] Production.ERROR: pbx CDR StartTime 2025-02-17 01:50:06 - End Time 2025-02-17 04:50:06 [2025-02-17 04:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493400', 'tblTempUsageDetail_20' ) start [2025-02-17 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493400', 'tblTempUsageDetail_20' ) end [2025-02-17 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493400', 'tblTempVendorCDR_20' ) start [2025-02-17 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493400', 'tblTempVendorCDR_20' ) end [2025-02-17 04:50:20] Production.INFO: ProcessCDR(1,14493400,1,1,2) [2025-02-17 04:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493400', 'tblTempUsageDetail_20' ) start [2025-02-17 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493400', 'tblTempUsageDetail_20' ) end [2025-02-17 04:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:50:23] Production.INFO: ==21805== Releasing lock... [2025-02-17 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:50:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-17 04:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:51:06 [end_date_ymd] => 2025-02-17 04:51:06 [RateCDR] => 1 ) [2025-02-17 04:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:51:06' and `end` < '2025-02-17 04:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:51:20] Production.INFO: count ==262 [2025-02-17 04:51:20] Production.ERROR: pbx CDR StartTime 2025-02-17 01:51:06 - End Time 2025-02-17 04:51:06 [2025-02-17 04:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493405', 'tblTempUsageDetail_20' ) start [2025-02-17 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493405', 'tblTempUsageDetail_20' ) end [2025-02-17 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493405', 'tblTempVendorCDR_20' ) start [2025-02-17 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493405', 'tblTempVendorCDR_20' ) end [2025-02-17 04:51:20] Production.INFO: ProcessCDR(1,14493405,1,1,2) [2025-02-17 04:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493405', 'tblTempUsageDetail_20' ) start [2025-02-17 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493405', 'tblTempUsageDetail_20' ) end [2025-02-17 04:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:51:23] Production.INFO: ==21931== Releasing lock... [2025-02-17 04:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:51:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-17 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:52:05 [end_date_ymd] => 2025-02-17 04:52:05 [RateCDR] => 1 ) [2025-02-17 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:52:05' and `end` < '2025-02-17 04:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:52:20] Production.INFO: count ==227 [2025-02-17 04:52:20] Production.ERROR: pbx CDR StartTime 2025-02-17 01:52:05 - End Time 2025-02-17 04:52:05 [2025-02-17 04:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493410', 'tblTempUsageDetail_20' ) start [2025-02-17 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493410', 'tblTempUsageDetail_20' ) end [2025-02-17 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493410', 'tblTempVendorCDR_20' ) start [2025-02-17 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493410', 'tblTempVendorCDR_20' ) end [2025-02-17 04:52:20] Production.INFO: ProcessCDR(1,14493410,1,1,2) [2025-02-17 04:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493410', 'tblTempUsageDetail_20' ) start [2025-02-17 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493410', 'tblTempUsageDetail_20' ) end [2025-02-17 04:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:52:23] Production.INFO: ==22017== Releasing lock... [2025-02-17 04:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:52:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-17 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:53:05 [end_date_ymd] => 2025-02-17 04:53:05 [RateCDR] => 1 ) [2025-02-17 04:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:53:05' and `end` < '2025-02-17 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:53:20] Production.INFO: count ==199 [2025-02-17 04:53:20] Production.ERROR: pbx CDR StartTime 2025-02-17 01:53:05 - End Time 2025-02-17 04:53:05 [2025-02-17 04:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493415', 'tblTempUsageDetail_20' ) start [2025-02-17 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493415', 'tblTempUsageDetail_20' ) end [2025-02-17 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493415', 'tblTempVendorCDR_20' ) start [2025-02-17 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493415', 'tblTempVendorCDR_20' ) end [2025-02-17 04:53:20] Production.INFO: ProcessCDR(1,14493415,1,1,2) [2025-02-17 04:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493415', 'tblTempUsageDetail_20' ) start [2025-02-17 04:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493415', 'tblTempUsageDetail_20' ) end [2025-02-17 04:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:53:24] Production.INFO: ==22105== Releasing lock... [2025-02-17 04:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:53:24] Production.INFO: 29.75 MB #Memory Used# [2025-02-17 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:54:05 [end_date_ymd] => 2025-02-17 04:54:05 [RateCDR] => 1 ) [2025-02-17 04:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:54:05' and `end` < '2025-02-17 04:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:54:21] Production.INFO: count ==199 [2025-02-17 04:54:21] Production.ERROR: pbx CDR StartTime 2025-02-17 01:54:05 - End Time 2025-02-17 04:54:05 [2025-02-17 04:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493420', 'tblTempUsageDetail_20' ) start [2025-02-17 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493420', 'tblTempUsageDetail_20' ) end [2025-02-17 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493420', 'tblTempVendorCDR_20' ) start [2025-02-17 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493420', 'tblTempVendorCDR_20' ) end [2025-02-17 04:54:21] Production.INFO: ProcessCDR(1,14493420,1,1,2) [2025-02-17 04:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493420', 'tblTempUsageDetail_20' ) start [2025-02-17 04:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493420', 'tblTempUsageDetail_20' ) end [2025-02-17 04:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:54:24] Production.INFO: ==22196== Releasing lock... [2025-02-17 04:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:54:24] Production.INFO: 29.75 MB #Memory Used# [2025-02-17 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:55:05 [end_date_ymd] => 2025-02-17 04:55:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 01:55:05' and `end` < '2025-02-17 04:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:55:20] Production.INFO: count ==199 [2025-02-17 04:55:20] Production.ERROR: pbx CDR StartTime 2025-02-17 01:55:05 - End Time 2025-02-17 04:55:05 [2025-02-17 04:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493425', 'tblTempUsageDetail_20' ) start [2025-02-17 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493425', 'tblTempUsageDetail_20' ) end [2025-02-17 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493425', 'tblTempVendorCDR_20' ) start [2025-02-17 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493425', 'tblTempVendorCDR_20' ) end [2025-02-17 04:55:20] Production.INFO: ProcessCDR(1,14493425,1,1,2) [2025-02-17 04:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493425', 'tblTempUsageDetail_20' ) start [2025-02-17 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493425', 'tblTempUsageDetail_20' ) end [2025-02-17 04:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:55:23] Production.INFO: ==22275== Releasing lock... [2025-02-17 04:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:55:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-17 04:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:56:06 [end_date_ymd] => 2025-02-17 04:56:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 01:56:06' and `end` < '2025-02-17 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-02-17 04:56:20] Production.INFO: count ==199 [2025-02-17 04:56:20] Production.ERROR: pbx CDR StartTime 2025-02-17 01:56:06 - End Time 2025-02-17 04:56:06 [2025-02-17 04:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493430', 'tblTempUsageDetail_20' ) start [2025-02-17 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493430', 'tblTempUsageDetail_20' ) end [2025-02-17 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493430', 'tblTempVendorCDR_20' ) start [2025-02-17 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493430', 'tblTempVendorCDR_20' ) end [2025-02-17 04:56:20] Production.INFO: ProcessCDR(1,14493430,1,1,2) [2025-02-17 04:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493430', 'tblTempUsageDetail_20' ) start [2025-02-17 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493430', 'tblTempUsageDetail_20' ) end [2025-02-17 04:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:56:23] Production.INFO: ==22356== Releasing lock... [2025-02-17 04:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:56:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-17 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:57:05 [end_date_ymd] => 2025-02-17 04:57:05 [RateCDR] => 1 ) [2025-02-17 04:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:57:05' and `end` < '2025-02-17 04:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:57:20] Production.INFO: count ==199 [2025-02-17 04:57:20] Production.ERROR: pbx CDR StartTime 2025-02-17 01:57:05 - End Time 2025-02-17 04:57:05 [2025-02-17 04:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493435', 'tblTempUsageDetail_20' ) start [2025-02-17 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493435', 'tblTempUsageDetail_20' ) end [2025-02-17 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493435', 'tblTempVendorCDR_20' ) start [2025-02-17 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493435', 'tblTempVendorCDR_20' ) end [2025-02-17 04:57:20] Production.INFO: ProcessCDR(1,14493435,1,1,2) [2025-02-17 04:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493435', 'tblTempUsageDetail_20' ) start [2025-02-17 04:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493435', 'tblTempUsageDetail_20' ) end [2025-02-17 04:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:57:24] Production.INFO: ==22440== Releasing lock... [2025-02-17 04:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:57:24] Production.INFO: 29.75 MB #Memory Used# [2025-02-17 04:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:58:06 [end_date_ymd] => 2025-02-17 04:58:06 [RateCDR] => 1 ) [2025-02-17 04:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:58:06' and `end` < '2025-02-17 04:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:58:20] Production.INFO: count ==199 [2025-02-17 04:58:20] Production.ERROR: pbx CDR StartTime 2025-02-17 01:58:06 - End Time 2025-02-17 04:58:06 [2025-02-17 04:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493440', 'tblTempUsageDetail_20' ) start [2025-02-17 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493440', 'tblTempUsageDetail_20' ) end [2025-02-17 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493440', 'tblTempVendorCDR_20' ) start [2025-02-17 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493440', 'tblTempVendorCDR_20' ) end [2025-02-17 04:58:20] Production.INFO: ProcessCDR(1,14493440,1,1,2) [2025-02-17 04:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493440', 'tblTempUsageDetail_20' ) start [2025-02-17 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493440', 'tblTempUsageDetail_20' ) end [2025-02-17 04:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:58:23] Production.INFO: ==22521== Releasing lock... [2025-02-17 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:58:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-17 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 01:59:05 [end_date_ymd] => 2025-02-17 04:59:05 [RateCDR] => 1 ) [2025-02-17 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 01:59:05' and `end` < '2025-02-17 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 04:59:20] Production.INFO: count ==199 [2025-02-17 04:59:20] Production.ERROR: pbx CDR StartTime 2025-02-17 01:59:05 - End Time 2025-02-17 04:59:05 [2025-02-17 04:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493445', 'tblTempUsageDetail_20' ) start [2025-02-17 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493445', 'tblTempUsageDetail_20' ) end [2025-02-17 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493445', 'tblTempVendorCDR_20' ) start [2025-02-17 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493445', 'tblTempVendorCDR_20' ) end [2025-02-17 04:59:20] Production.INFO: ProcessCDR(1,14493445,1,1,2) [2025-02-17 04:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 04:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493445', 'tblTempUsageDetail_20' ) start [2025-02-17 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493445', 'tblTempUsageDetail_20' ) end [2025-02-17 04:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 04:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 04:59:23] Production.INFO: ==22600== Releasing lock... [2025-02-17 04:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 04:59:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-17 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:00:06 [end_date_ymd] => 2025-02-17 05:00:06 [RateCDR] => 1 ) [2025-02-17 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:00:06' and `end` < '2025-02-17 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:00:22] Production.INFO: count ==189 [2025-02-17 05:00:22] Production.ERROR: pbx CDR StartTime 2025-02-17 02:00:06 - End Time 2025-02-17 05:00:06 [2025-02-17 05:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493450', 'tblTempUsageDetail_20' ) start [2025-02-17 05:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493450', 'tblTempUsageDetail_20' ) end [2025-02-17 05:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493450', 'tblTempVendorCDR_20' ) start [2025-02-17 05:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493450', 'tblTempVendorCDR_20' ) end [2025-02-17 05:00:22] Production.INFO: ProcessCDR(1,14493450,1,1,2) [2025-02-17 05:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493450', 'tblTempUsageDetail_20' ) start [2025-02-17 05:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493450', 'tblTempUsageDetail_20' ) end [2025-02-17 05:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:00:25] Production.INFO: ==22688== Releasing lock... [2025-02-17 05:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:00:25] Production.INFO: 30 MB #Memory Used# [2025-02-17 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:01:05 [end_date_ymd] => 2025-02-17 05:01:05 [RateCDR] => 1 ) [2025-02-17 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:01:05' and `end` < '2025-02-17 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:01:19] Production.INFO: count ==186 [2025-02-17 05:01:19] Production.ERROR: pbx CDR StartTime 2025-02-17 02:01:05 - End Time 2025-02-17 05:01:05 [2025-02-17 05:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493456', 'tblTempUsageDetail_20' ) start [2025-02-17 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493456', 'tblTempUsageDetail_20' ) end [2025-02-17 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493456', 'tblTempVendorCDR_20' ) start [2025-02-17 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493456', 'tblTempVendorCDR_20' ) end [2025-02-17 05:01:19] Production.INFO: ProcessCDR(1,14493456,1,1,2) [2025-02-17 05:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493456', 'tblTempUsageDetail_20' ) start [2025-02-17 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493456', 'tblTempUsageDetail_20' ) end [2025-02-17 05:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:01:22] Production.INFO: ==22786== Releasing lock... [2025-02-17 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:01:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-17 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:02:06 [end_date_ymd] => 2025-02-17 05:02:06 [RateCDR] => 1 ) [2025-02-17 05:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:02:06' and `end` < '2025-02-17 05:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:02:20] Production.INFO: count ==186 [2025-02-17 05:02:20] Production.ERROR: pbx CDR StartTime 2025-02-17 02:02:06 - End Time 2025-02-17 05:02:06 [2025-02-17 05:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493461', 'tblTempUsageDetail_20' ) start [2025-02-17 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493461', 'tblTempUsageDetail_20' ) end [2025-02-17 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493461', 'tblTempVendorCDR_20' ) start [2025-02-17 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493461', 'tblTempVendorCDR_20' ) end [2025-02-17 05:02:20] Production.INFO: ProcessCDR(1,14493461,1,1,2) [2025-02-17 05:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493461', 'tblTempUsageDetail_20' ) start [2025-02-17 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493461', 'tblTempUsageDetail_20' ) end [2025-02-17 05:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:02:23] Production.INFO: ==22872== Releasing lock... [2025-02-17 05:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:02:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-17 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:03:05 [end_date_ymd] => 2025-02-17 05:03:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 02:03:05' and `end` < '2025-02-17 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-02-17 05:03:19] Production.INFO: count ==185 [2025-02-17 05:03:19] Production.ERROR: pbx CDR StartTime 2025-02-17 02:03:05 - End Time 2025-02-17 05:03:05 [2025-02-17 05:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493466', 'tblTempUsageDetail_20' ) start [2025-02-17 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493466', 'tblTempUsageDetail_20' ) end [2025-02-17 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493466', 'tblTempVendorCDR_20' ) start [2025-02-17 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493466', 'tblTempVendorCDR_20' ) end [2025-02-17 05:03:19] Production.INFO: ProcessCDR(1,14493466,1,1,2) [2025-02-17 05:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493466', 'tblTempUsageDetail_20' ) start [2025-02-17 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493466', 'tblTempUsageDetail_20' ) end [2025-02-17 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:03:22] Production.INFO: ==22949== Releasing lock... [2025-02-17 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:03:22] Production.INFO: 30 MB #Memory Used# [2025-02-17 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:04:05 [end_date_ymd] => 2025-02-17 05:04:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 02:04:05' and `end` < '2025-02-17 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-02-17 05:04:18] Production.INFO: count ==185 [2025-02-17 05:04:18] Production.ERROR: pbx CDR StartTime 2025-02-17 02:04:05 - End Time 2025-02-17 05:04:05 [2025-02-17 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493471', 'tblTempUsageDetail_20' ) start [2025-02-17 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493471', 'tblTempUsageDetail_20' ) end [2025-02-17 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493471', 'tblTempVendorCDR_20' ) start [2025-02-17 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493471', 'tblTempVendorCDR_20' ) end [2025-02-17 05:04:18] Production.INFO: ProcessCDR(1,14493471,1,1,2) [2025-02-17 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493471', 'tblTempUsageDetail_20' ) start [2025-02-17 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493471', 'tblTempUsageDetail_20' ) end [2025-02-17 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:04:21] Production.INFO: ==23034== Releasing lock... [2025-02-17 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:04:21] Production.INFO: 30 MB #Memory Used# [2025-02-17 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:05:05 [end_date_ymd] => 2025-02-17 05:05:05 [RateCDR] => 1 ) [2025-02-17 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:05:05' and `end` < '2025-02-17 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:05:18] Production.INFO: count ==184 [2025-02-17 05:05:18] Production.ERROR: pbx CDR StartTime 2025-02-17 02:05:05 - End Time 2025-02-17 05:05:05 [2025-02-17 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493476', 'tblTempUsageDetail_20' ) start [2025-02-17 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493476', 'tblTempUsageDetail_20' ) end [2025-02-17 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493476', 'tblTempVendorCDR_20' ) start [2025-02-17 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493476', 'tblTempVendorCDR_20' ) end [2025-02-17 05:05:18] Production.INFO: ProcessCDR(1,14493476,1,1,2) [2025-02-17 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493476', 'tblTempUsageDetail_20' ) start [2025-02-17 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493476', 'tblTempUsageDetail_20' ) end [2025-02-17 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:05:21] Production.INFO: ==23117== Releasing lock... [2025-02-17 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:05:21] Production.INFO: 30 MB #Memory Used# [2025-02-17 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:06:05 [end_date_ymd] => 2025-02-17 05:06:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 02:06:05' and `end` < '2025-02-17 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-02-17 05:06:19] Production.INFO: count ==184 [2025-02-17 05:06:19] Production.ERROR: pbx CDR StartTime 2025-02-17 02:06:05 - End Time 2025-02-17 05:06:05 [2025-02-17 05:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493481', 'tblTempUsageDetail_20' ) start [2025-02-17 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493481', 'tblTempUsageDetail_20' ) end [2025-02-17 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493481', 'tblTempVendorCDR_20' ) start [2025-02-17 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493481', 'tblTempVendorCDR_20' ) end [2025-02-17 05:06:19] Production.INFO: ProcessCDR(1,14493481,1,1,2) [2025-02-17 05:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493481', 'tblTempUsageDetail_20' ) start [2025-02-17 05:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493481', 'tblTempUsageDetail_20' ) end [2025-02-17 05:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:06:23] Production.INFO: ==23201== Releasing lock... [2025-02-17 05:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:06:23] Production.INFO: 30 MB #Memory Used# [2025-02-17 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:07:05 [end_date_ymd] => 2025-02-17 05:07:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 02:07:05' and `end` < '2025-02-17 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-02-17 05:07:18] Production.INFO: count ==184 [2025-02-17 05:07:18] Production.ERROR: pbx CDR StartTime 2025-02-17 02:07:05 - End Time 2025-02-17 05:07:05 [2025-02-17 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493486', 'tblTempUsageDetail_20' ) start [2025-02-17 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493486', 'tblTempUsageDetail_20' ) end [2025-02-17 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493486', 'tblTempVendorCDR_20' ) start [2025-02-17 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493486', 'tblTempVendorCDR_20' ) end [2025-02-17 05:07:18] Production.INFO: ProcessCDR(1,14493486,1,1,2) [2025-02-17 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493486', 'tblTempUsageDetail_20' ) start [2025-02-17 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493486', 'tblTempUsageDetail_20' ) end [2025-02-17 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:07:21] Production.INFO: ==23331== Releasing lock... [2025-02-17 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:07:21] Production.INFO: 30 MB #Memory Used# [2025-02-17 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:08:05 [end_date_ymd] => 2025-02-17 05:08:05 [RateCDR] => 1 ) [2025-02-17 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:08:05' and `end` < '2025-02-17 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:08:19] Production.INFO: count ==184 [2025-02-17 05:08:19] Production.ERROR: pbx CDR StartTime 2025-02-17 02:08:05 - End Time 2025-02-17 05:08:05 [2025-02-17 05:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493491', 'tblTempUsageDetail_20' ) start [2025-02-17 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493491', 'tblTempUsageDetail_20' ) end [2025-02-17 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493491', 'tblTempVendorCDR_20' ) start [2025-02-17 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493491', 'tblTempVendorCDR_20' ) end [2025-02-17 05:08:19] Production.INFO: ProcessCDR(1,14493491,1,1,2) [2025-02-17 05:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493491', 'tblTempUsageDetail_20' ) start [2025-02-17 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493491', 'tblTempUsageDetail_20' ) end [2025-02-17 05:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:08:22] Production.INFO: ==23419== Releasing lock... [2025-02-17 05:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:08:22] Production.INFO: 30 MB #Memory Used# [2025-02-17 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:09:05 [end_date_ymd] => 2025-02-17 05:09:05 [RateCDR] => 1 ) [2025-02-17 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:09:05' and `end` < '2025-02-17 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:09:19] Production.INFO: count ==184 [2025-02-17 05:09:19] Production.ERROR: pbx CDR StartTime 2025-02-17 02:09:05 - End Time 2025-02-17 05:09:05 [2025-02-17 05:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493496', 'tblTempUsageDetail_20' ) start [2025-02-17 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493496', 'tblTempUsageDetail_20' ) end [2025-02-17 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493496', 'tblTempVendorCDR_20' ) start [2025-02-17 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493496', 'tblTempVendorCDR_20' ) end [2025-02-17 05:09:19] Production.INFO: ProcessCDR(1,14493496,1,1,2) [2025-02-17 05:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493496', 'tblTempUsageDetail_20' ) start [2025-02-17 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493496', 'tblTempUsageDetail_20' ) end [2025-02-17 05:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:09:22] Production.INFO: ==23501== Releasing lock... [2025-02-17 05:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:09:22] Production.INFO: 30 MB #Memory Used# [2025-02-17 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:10:06 [end_date_ymd] => 2025-02-17 05:10:06 [RateCDR] => 1 ) [2025-02-17 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:10:06' and `end` < '2025-02-17 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:10:19] Production.INFO: count ==178 [2025-02-17 05:10:19] Production.ERROR: pbx CDR StartTime 2025-02-17 02:10:06 - End Time 2025-02-17 05:10:06 [2025-02-17 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493502', 'tblTempUsageDetail_20' ) start [2025-02-17 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493502', 'tblTempUsageDetail_20' ) end [2025-02-17 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493502', 'tblTempVendorCDR_20' ) start [2025-02-17 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493502', 'tblTempVendorCDR_20' ) end [2025-02-17 05:10:19] Production.INFO: ProcessCDR(1,14493502,1,1,2) [2025-02-17 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493502', 'tblTempUsageDetail_20' ) start [2025-02-17 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493502', 'tblTempUsageDetail_20' ) end [2025-02-17 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:10:22] Production.INFO: ==23591== Releasing lock... [2025-02-17 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:10:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:11:05 [end_date_ymd] => 2025-02-17 05:11:05 [RateCDR] => 1 ) [2025-02-17 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:11:05' and `end` < '2025-02-17 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:11:18] Production.INFO: count ==178 [2025-02-17 05:11:18] Production.ERROR: pbx CDR StartTime 2025-02-17 02:11:05 - End Time 2025-02-17 05:11:05 [2025-02-17 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493507', 'tblTempUsageDetail_20' ) start [2025-02-17 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493507', 'tblTempUsageDetail_20' ) end [2025-02-17 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493507', 'tblTempVendorCDR_20' ) start [2025-02-17 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493507', 'tblTempVendorCDR_20' ) end [2025-02-17 05:11:18] Production.INFO: ProcessCDR(1,14493507,1,1,2) [2025-02-17 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493507', 'tblTempUsageDetail_20' ) start [2025-02-17 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493507', 'tblTempUsageDetail_20' ) end [2025-02-17 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:11:21] Production.INFO: ==23677== Releasing lock... [2025-02-17 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:11:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:12:05 [end_date_ymd] => 2025-02-17 05:12:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 02:12:05' and `end` < '2025-02-17 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-02-17 05:12:17] Production.INFO: count ==178 [2025-02-17 05:12:17] Production.ERROR: pbx CDR StartTime 2025-02-17 02:12:05 - End Time 2025-02-17 05:12:05 [2025-02-17 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493512', 'tblTempUsageDetail_20' ) start [2025-02-17 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493512', 'tblTempUsageDetail_20' ) end [2025-02-17 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493512', 'tblTempVendorCDR_20' ) start [2025-02-17 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493512', 'tblTempVendorCDR_20' ) end [2025-02-17 05:12:17] Production.INFO: ProcessCDR(1,14493512,1,1,2) [2025-02-17 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493512', 'tblTempUsageDetail_20' ) start [2025-02-17 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493512', 'tblTempUsageDetail_20' ) end [2025-02-17 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:12:21] Production.INFO: ==23763== Releasing lock... [2025-02-17 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:12:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:13:05 [end_date_ymd] => 2025-02-17 05:13:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 02:13:05' and `end` < '2025-02-17 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-02-17 05:13:18] Production.INFO: count ==178 [2025-02-17 05:13:18] Production.ERROR: pbx CDR StartTime 2025-02-17 02:13:05 - End Time 2025-02-17 05:13:05 [2025-02-17 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493517', 'tblTempUsageDetail_20' ) start [2025-02-17 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493517', 'tblTempUsageDetail_20' ) end [2025-02-17 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493517', 'tblTempVendorCDR_20' ) start [2025-02-17 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493517', 'tblTempVendorCDR_20' ) end [2025-02-17 05:13:18] Production.INFO: ProcessCDR(1,14493517,1,1,2) [2025-02-17 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493517', 'tblTempUsageDetail_20' ) start [2025-02-17 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493517', 'tblTempUsageDetail_20' ) end [2025-02-17 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:13:21] Production.INFO: ==23849== Releasing lock... [2025-02-17 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:13:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:14:05 [end_date_ymd] => 2025-02-17 05:14:05 [RateCDR] => 1 ) [2025-02-17 05:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:14:05' and `end` < '2025-02-17 05:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:14:19] Production.INFO: count ==178 [2025-02-17 05:14:19] Production.ERROR: pbx CDR StartTime 2025-02-17 02:14:05 - End Time 2025-02-17 05:14:05 [2025-02-17 05:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493522', 'tblTempUsageDetail_20' ) start [2025-02-17 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493522', 'tblTempUsageDetail_20' ) end [2025-02-17 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493522', 'tblTempVendorCDR_20' ) start [2025-02-17 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493522', 'tblTempVendorCDR_20' ) end [2025-02-17 05:14:19] Production.INFO: ProcessCDR(1,14493522,1,1,2) [2025-02-17 05:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493522', 'tblTempUsageDetail_20' ) start [2025-02-17 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493522', 'tblTempUsageDetail_20' ) end [2025-02-17 05:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:14:22] Production.INFO: ==23939== Releasing lock... [2025-02-17 05:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:14:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 05:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:15:06 [end_date_ymd] => 2025-02-17 05:15:06 [RateCDR] => 1 ) [2025-02-17 05:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:15:06' and `end` < '2025-02-17 05:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:15:20] Production.INFO: count ==178 [2025-02-17 05:15:20] Production.ERROR: pbx CDR StartTime 2025-02-17 02:15:06 - End Time 2025-02-17 05:15:06 [2025-02-17 05:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493527', 'tblTempUsageDetail_20' ) start [2025-02-17 05:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493527', 'tblTempUsageDetail_20' ) end [2025-02-17 05:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493527', 'tblTempVendorCDR_20' ) start [2025-02-17 05:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493527', 'tblTempVendorCDR_20' ) end [2025-02-17 05:15:20] Production.INFO: ProcessCDR(1,14493527,1,1,2) [2025-02-17 05:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493527', 'tblTempUsageDetail_20' ) start [2025-02-17 05:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493527', 'tblTempUsageDetail_20' ) end [2025-02-17 05:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:15:23] Production.INFO: ==24025== Releasing lock... [2025-02-17 05:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:15:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:16:05 [end_date_ymd] => 2025-02-17 05:16:05 [RateCDR] => 1 ) [2025-02-17 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:16:05' and `end` < '2025-02-17 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:16:18] Production.INFO: count ==178 [2025-02-17 05:16:18] Production.ERROR: pbx CDR StartTime 2025-02-17 02:16:05 - End Time 2025-02-17 05:16:05 [2025-02-17 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493532', 'tblTempUsageDetail_20' ) start [2025-02-17 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493532', 'tblTempUsageDetail_20' ) end [2025-02-17 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493532', 'tblTempVendorCDR_20' ) start [2025-02-17 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493532', 'tblTempVendorCDR_20' ) end [2025-02-17 05:16:18] Production.INFO: ProcessCDR(1,14493532,1,1,2) [2025-02-17 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493532', 'tblTempUsageDetail_20' ) start [2025-02-17 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493532', 'tblTempUsageDetail_20' ) end [2025-02-17 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:16:21] Production.INFO: ==24109== Releasing lock... [2025-02-17 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:16:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 05:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:17:06 [end_date_ymd] => 2025-02-17 05:17:06 [RateCDR] => 1 ) [2025-02-17 05:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:17:06' and `end` < '2025-02-17 05:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:17:19] Production.INFO: count ==178 [2025-02-17 05:17:19] Production.ERROR: pbx CDR StartTime 2025-02-17 02:17:06 - End Time 2025-02-17 05:17:06 [2025-02-17 05:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493537', 'tblTempUsageDetail_20' ) start [2025-02-17 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493537', 'tblTempUsageDetail_20' ) end [2025-02-17 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493537', 'tblTempVendorCDR_20' ) start [2025-02-17 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493537', 'tblTempVendorCDR_20' ) end [2025-02-17 05:17:19] Production.INFO: ProcessCDR(1,14493537,1,1,2) [2025-02-17 05:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493537', 'tblTempUsageDetail_20' ) start [2025-02-17 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493537', 'tblTempUsageDetail_20' ) end [2025-02-17 05:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:17:22] Production.INFO: ==24195== Releasing lock... [2025-02-17 05:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:17:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:18:05 [end_date_ymd] => 2025-02-17 05:18:05 [RateCDR] => 1 ) [2025-02-17 05:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:18:05' and `end` < '2025-02-17 05:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:18:18] Production.INFO: count ==178 [2025-02-17 05:18:19] Production.ERROR: pbx CDR StartTime 2025-02-17 02:18:05 - End Time 2025-02-17 05:18:05 [2025-02-17 05:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493542', 'tblTempUsageDetail_20' ) start [2025-02-17 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493542', 'tblTempUsageDetail_20' ) end [2025-02-17 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493542', 'tblTempVendorCDR_20' ) start [2025-02-17 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493542', 'tblTempVendorCDR_20' ) end [2025-02-17 05:18:19] Production.INFO: ProcessCDR(1,14493542,1,1,2) [2025-02-17 05:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493542', 'tblTempUsageDetail_20' ) start [2025-02-17 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493542', 'tblTempUsageDetail_20' ) end [2025-02-17 05:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:18:22] Production.INFO: ==24281== Releasing lock... [2025-02-17 05:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:18:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 05:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:19:06 [end_date_ymd] => 2025-02-17 05:19:06 [RateCDR] => 1 ) [2025-02-17 05:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:19:06' and `end` < '2025-02-17 05:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:19:19] Production.INFO: count ==178 [2025-02-17 05:19:19] Production.ERROR: pbx CDR StartTime 2025-02-17 02:19:06 - End Time 2025-02-17 05:19:06 [2025-02-17 05:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493547', 'tblTempUsageDetail_20' ) start [2025-02-17 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493547', 'tblTempUsageDetail_20' ) end [2025-02-17 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493547', 'tblTempVendorCDR_20' ) start [2025-02-17 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493547', 'tblTempVendorCDR_20' ) end [2025-02-17 05:19:19] Production.INFO: ProcessCDR(1,14493547,1,1,2) [2025-02-17 05:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493547', 'tblTempUsageDetail_20' ) start [2025-02-17 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493547', 'tblTempUsageDetail_20' ) end [2025-02-17 05:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:19:22] Production.INFO: ==24370== Releasing lock... [2025-02-17 05:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:19:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:20:05 [end_date_ymd] => 2025-02-17 05:20:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 02:20:05' and `end` < '2025-02-17 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-02-17 05:20:19] Production.INFO: count ==178 [2025-02-17 05:20:19] Production.ERROR: pbx CDR StartTime 2025-02-17 02:20:05 - End Time 2025-02-17 05:20:05 [2025-02-17 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493552', 'tblTempUsageDetail_20' ) start [2025-02-17 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493552', 'tblTempUsageDetail_20' ) end [2025-02-17 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493552', 'tblTempVendorCDR_20' ) start [2025-02-17 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493552', 'tblTempVendorCDR_20' ) end [2025-02-17 05:20:19] Production.INFO: ProcessCDR(1,14493552,1,1,2) [2025-02-17 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493552', 'tblTempUsageDetail_20' ) start [2025-02-17 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493552', 'tblTempUsageDetail_20' ) end [2025-02-17 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:20:22] Production.INFO: ==24455== Releasing lock... [2025-02-17 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:20:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:21:05 [end_date_ymd] => 2025-02-17 05:21:05 [RateCDR] => 1 ) [2025-02-17 05:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:21:05' and `end` < '2025-02-17 05:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:21:18] Production.INFO: count ==178 [2025-02-17 05:21:18] Production.ERROR: pbx CDR StartTime 2025-02-17 02:21:05 - End Time 2025-02-17 05:21:05 [2025-02-17 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493558', 'tblTempUsageDetail_20' ) start [2025-02-17 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493558', 'tblTempUsageDetail_20' ) end [2025-02-17 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493558', 'tblTempVendorCDR_20' ) start [2025-02-17 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493558', 'tblTempVendorCDR_20' ) end [2025-02-17 05:21:18] Production.INFO: ProcessCDR(1,14493558,1,1,2) [2025-02-17 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493558', 'tblTempUsageDetail_20' ) start [2025-02-17 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493558', 'tblTempUsageDetail_20' ) end [2025-02-17 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:21:21] Production.INFO: ==24540== Releasing lock... [2025-02-17 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:21:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:22:05 [end_date_ymd] => 2025-02-17 05:22:05 [RateCDR] => 1 ) [2025-02-17 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:22:05' and `end` < '2025-02-17 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:22:17] Production.INFO: count ==178 [2025-02-17 05:22:17] Production.ERROR: pbx CDR StartTime 2025-02-17 02:22:05 - End Time 2025-02-17 05:22:05 [2025-02-17 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493563', 'tblTempUsageDetail_20' ) start [2025-02-17 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493563', 'tblTempUsageDetail_20' ) end [2025-02-17 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493563', 'tblTempVendorCDR_20' ) start [2025-02-17 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493563', 'tblTempVendorCDR_20' ) end [2025-02-17 05:22:17] Production.INFO: ProcessCDR(1,14493563,1,1,2) [2025-02-17 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493563', 'tblTempUsageDetail_20' ) start [2025-02-17 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493563', 'tblTempUsageDetail_20' ) end [2025-02-17 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:22:21] Production.INFO: ==24659== Releasing lock... [2025-02-17 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:22:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 05:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:23:06 [end_date_ymd] => 2025-02-17 05:23:06 [RateCDR] => 1 ) [2025-02-17 05:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:23:06' and `end` < '2025-02-17 05:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:23:19] Production.INFO: count ==178 [2025-02-17 05:23:19] Production.ERROR: pbx CDR StartTime 2025-02-17 02:23:06 - End Time 2025-02-17 05:23:06 [2025-02-17 05:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493568', 'tblTempUsageDetail_20' ) start [2025-02-17 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493568', 'tblTempUsageDetail_20' ) end [2025-02-17 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493568', 'tblTempVendorCDR_20' ) start [2025-02-17 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493568', 'tblTempVendorCDR_20' ) end [2025-02-17 05:23:19] Production.INFO: ProcessCDR(1,14493568,1,1,2) [2025-02-17 05:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493568', 'tblTempUsageDetail_20' ) start [2025-02-17 05:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493568', 'tblTempUsageDetail_20' ) end [2025-02-17 05:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:23:23] Production.INFO: ==24746== Releasing lock... [2025-02-17 05:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:23:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:24:05 [end_date_ymd] => 2025-02-17 05:24:05 [RateCDR] => 1 ) [2025-02-17 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:24:05' and `end` < '2025-02-17 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:24:18] Production.INFO: count ==178 [2025-02-17 05:24:18] Production.ERROR: pbx CDR StartTime 2025-02-17 02:24:05 - End Time 2025-02-17 05:24:05 [2025-02-17 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493573', 'tblTempUsageDetail_20' ) start [2025-02-17 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493573', 'tblTempUsageDetail_20' ) end [2025-02-17 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493573', 'tblTempVendorCDR_20' ) start [2025-02-17 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493573', 'tblTempVendorCDR_20' ) end [2025-02-17 05:24:18] Production.INFO: ProcessCDR(1,14493573,1,1,2) [2025-02-17 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493573', 'tblTempUsageDetail_20' ) start [2025-02-17 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493573', 'tblTempUsageDetail_20' ) end [2025-02-17 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:24:21] Production.INFO: ==24831== Releasing lock... [2025-02-17 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:24:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:25:05 [end_date_ymd] => 2025-02-17 05:25:05 [RateCDR] => 1 ) [2025-02-17 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:25:05' and `end` < '2025-02-17 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:25:18] Production.INFO: count ==178 [2025-02-17 05:25:18] Production.ERROR: pbx CDR StartTime 2025-02-17 02:25:05 - End Time 2025-02-17 05:25:05 [2025-02-17 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493578', 'tblTempUsageDetail_20' ) start [2025-02-17 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493578', 'tblTempUsageDetail_20' ) end [2025-02-17 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493578', 'tblTempVendorCDR_20' ) start [2025-02-17 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493578', 'tblTempVendorCDR_20' ) end [2025-02-17 05:25:18] Production.INFO: ProcessCDR(1,14493578,1,1,2) [2025-02-17 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493578', 'tblTempUsageDetail_20' ) start [2025-02-17 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493578', 'tblTempUsageDetail_20' ) end [2025-02-17 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:25:21] Production.INFO: ==24921== Releasing lock... [2025-02-17 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:25:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:26:05 [end_date_ymd] => 2025-02-17 05:26:05 [RateCDR] => 1 ) [2025-02-17 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:26:05' and `end` < '2025-02-17 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:26:18] Production.INFO: count ==178 [2025-02-17 05:26:18] Production.ERROR: pbx CDR StartTime 2025-02-17 02:26:05 - End Time 2025-02-17 05:26:05 [2025-02-17 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493583', 'tblTempUsageDetail_20' ) start [2025-02-17 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493583', 'tblTempUsageDetail_20' ) end [2025-02-17 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493583', 'tblTempVendorCDR_20' ) start [2025-02-17 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493583', 'tblTempVendorCDR_20' ) end [2025-02-17 05:26:18] Production.INFO: ProcessCDR(1,14493583,1,1,2) [2025-02-17 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493583', 'tblTempUsageDetail_20' ) start [2025-02-17 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493583', 'tblTempUsageDetail_20' ) end [2025-02-17 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:26:21] Production.INFO: ==25020== Releasing lock... [2025-02-17 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:26:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:27:05 [end_date_ymd] => 2025-02-17 05:27:05 [RateCDR] => 1 ) [2025-02-17 05:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:27:05' and `end` < '2025-02-17 05:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:27:18] Production.INFO: count ==178 [2025-02-17 05:27:18] Production.ERROR: pbx CDR StartTime 2025-02-17 02:27:05 - End Time 2025-02-17 05:27:05 [2025-02-17 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493588', 'tblTempUsageDetail_20' ) start [2025-02-17 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493588', 'tblTempUsageDetail_20' ) end [2025-02-17 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493588', 'tblTempVendorCDR_20' ) start [2025-02-17 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493588', 'tblTempVendorCDR_20' ) end [2025-02-17 05:27:18] Production.INFO: ProcessCDR(1,14493588,1,1,2) [2025-02-17 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493588', 'tblTempUsageDetail_20' ) start [2025-02-17 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493588', 'tblTempUsageDetail_20' ) end [2025-02-17 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:27:21] Production.INFO: ==25112== Releasing lock... [2025-02-17 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:27:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 05:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:28:06 [end_date_ymd] => 2025-02-17 05:28:06 [RateCDR] => 1 ) [2025-02-17 05:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:28:06' and `end` < '2025-02-17 05:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:28:19] Production.INFO: count ==178 [2025-02-17 05:28:19] Production.ERROR: pbx CDR StartTime 2025-02-17 02:28:06 - End Time 2025-02-17 05:28:06 [2025-02-17 05:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493593', 'tblTempUsageDetail_20' ) start [2025-02-17 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493593', 'tblTempUsageDetail_20' ) end [2025-02-17 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493593', 'tblTempVendorCDR_20' ) start [2025-02-17 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493593', 'tblTempVendorCDR_20' ) end [2025-02-17 05:28:19] Production.INFO: ProcessCDR(1,14493593,1,1,2) [2025-02-17 05:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493593', 'tblTempUsageDetail_20' ) start [2025-02-17 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493593', 'tblTempUsageDetail_20' ) end [2025-02-17 05:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:28:22] Production.INFO: ==25202== Releasing lock... [2025-02-17 05:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:28:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:29:05 [end_date_ymd] => 2025-02-17 05:29:05 [RateCDR] => 1 ) [2025-02-17 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:29:05' and `end` < '2025-02-17 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:29:18] Production.INFO: count ==178 [2025-02-17 05:29:18] Production.ERROR: pbx CDR StartTime 2025-02-17 02:29:05 - End Time 2025-02-17 05:29:05 [2025-02-17 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493598', 'tblTempUsageDetail_20' ) start [2025-02-17 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493598', 'tblTempUsageDetail_20' ) end [2025-02-17 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493598', 'tblTempVendorCDR_20' ) start [2025-02-17 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493598', 'tblTempVendorCDR_20' ) end [2025-02-17 05:29:18] Production.INFO: ProcessCDR(1,14493598,1,1,2) [2025-02-17 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493598', 'tblTempUsageDetail_20' ) start [2025-02-17 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493598', 'tblTempUsageDetail_20' ) end [2025-02-17 05:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:29:22] Production.INFO: ==25286== Releasing lock... [2025-02-17 05:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:29:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:30:06 [end_date_ymd] => 2025-02-17 05:30:06 [RateCDR] => 1 ) [2025-02-17 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:30:06' and `end` < '2025-02-17 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:30:19] Production.INFO: count ==175 [2025-02-17 05:30:19] Production.ERROR: pbx CDR StartTime 2025-02-17 02:30:06 - End Time 2025-02-17 05:30:06 [2025-02-17 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493604', 'tblTempUsageDetail_20' ) start [2025-02-17 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493604', 'tblTempUsageDetail_20' ) end [2025-02-17 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493604', 'tblTempVendorCDR_20' ) start [2025-02-17 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493604', 'tblTempVendorCDR_20' ) end [2025-02-17 05:30:19] Production.INFO: ProcessCDR(1,14493604,1,1,2) [2025-02-17 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493604', 'tblTempUsageDetail_20' ) start [2025-02-17 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493604', 'tblTempUsageDetail_20' ) end [2025-02-17 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:30:22] Production.INFO: ==25365== Releasing lock... [2025-02-17 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:30:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-17 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:31:05 [end_date_ymd] => 2025-02-17 05:31:05 [RateCDR] => 1 ) [2025-02-17 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:31:05' and `end` < '2025-02-17 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:31:19] Production.INFO: count ==175 [2025-02-17 05:31:19] Production.ERROR: pbx CDR StartTime 2025-02-17 02:31:05 - End Time 2025-02-17 05:31:05 [2025-02-17 05:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493609', 'tblTempUsageDetail_20' ) start [2025-02-17 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493609', 'tblTempUsageDetail_20' ) end [2025-02-17 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493609', 'tblTempVendorCDR_20' ) start [2025-02-17 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493609', 'tblTempVendorCDR_20' ) end [2025-02-17 05:31:19] Production.INFO: ProcessCDR(1,14493609,1,1,2) [2025-02-17 05:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493609', 'tblTempUsageDetail_20' ) start [2025-02-17 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493609', 'tblTempUsageDetail_20' ) end [2025-02-17 05:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:31:22] Production.INFO: ==25450== Releasing lock... [2025-02-17 05:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:31:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-17 05:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:32:04 [end_date_ymd] => 2025-02-17 05:32:04 [RateCDR] => 1 ) [2025-02-17 05:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:32:04' and `end` < '2025-02-17 05:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:32:17] Production.INFO: count ==175 [2025-02-17 05:32:17] Production.ERROR: pbx CDR StartTime 2025-02-17 02:32:04 - End Time 2025-02-17 05:32:04 [2025-02-17 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493614', 'tblTempUsageDetail_20' ) start [2025-02-17 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493614', 'tblTempUsageDetail_20' ) end [2025-02-17 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493614', 'tblTempVendorCDR_20' ) start [2025-02-17 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493614', 'tblTempVendorCDR_20' ) end [2025-02-17 05:32:17] Production.INFO: ProcessCDR(1,14493614,1,1,2) [2025-02-17 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493614', 'tblTempUsageDetail_20' ) start [2025-02-17 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493614', 'tblTempUsageDetail_20' ) end [2025-02-17 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:32:21] Production.INFO: ==25532== Releasing lock... [2025-02-17 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:32:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-17 05:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:33:06 [end_date_ymd] => 2025-02-17 05:33:06 [RateCDR] => 1 ) [2025-02-17 05:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:33:06' and `end` < '2025-02-17 05:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:33:18] Production.INFO: count ==175 [2025-02-17 05:33:18] Production.ERROR: pbx CDR StartTime 2025-02-17 02:33:06 - End Time 2025-02-17 05:33:06 [2025-02-17 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493619', 'tblTempUsageDetail_20' ) start [2025-02-17 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493619', 'tblTempUsageDetail_20' ) end [2025-02-17 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493619', 'tblTempVendorCDR_20' ) start [2025-02-17 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493619', 'tblTempVendorCDR_20' ) end [2025-02-17 05:33:18] Production.INFO: ProcessCDR(1,14493619,1,1,2) [2025-02-17 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493619', 'tblTempUsageDetail_20' ) start [2025-02-17 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493619', 'tblTempUsageDetail_20' ) end [2025-02-17 05:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:33:22] Production.INFO: ==25615== Releasing lock... [2025-02-17 05:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:33:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-17 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:34:05 [end_date_ymd] => 2025-02-17 05:34:05 [RateCDR] => 1 ) [2025-02-17 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:34:05' and `end` < '2025-02-17 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:34:18] Production.INFO: count ==175 [2025-02-17 05:34:18] Production.ERROR: pbx CDR StartTime 2025-02-17 02:34:05 - End Time 2025-02-17 05:34:05 [2025-02-17 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493624', 'tblTempUsageDetail_20' ) start [2025-02-17 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493624', 'tblTempUsageDetail_20' ) end [2025-02-17 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493624', 'tblTempVendorCDR_20' ) start [2025-02-17 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493624', 'tblTempVendorCDR_20' ) end [2025-02-17 05:34:18] Production.INFO: ProcessCDR(1,14493624,1,1,2) [2025-02-17 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493624', 'tblTempUsageDetail_20' ) start [2025-02-17 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493624', 'tblTempUsageDetail_20' ) end [2025-02-17 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:34:21] Production.INFO: ==25696== Releasing lock... [2025-02-17 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:34:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-17 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:35:05 [end_date_ymd] => 2025-02-17 05:35:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 02:35:05' and `end` < '2025-02-17 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-02-17 05:35:18] Production.INFO: count ==175 [2025-02-17 05:35:18] Production.ERROR: pbx CDR StartTime 2025-02-17 02:35:05 - End Time 2025-02-17 05:35:05 [2025-02-17 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493629', 'tblTempUsageDetail_20' ) start [2025-02-17 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493629', 'tblTempUsageDetail_20' ) end [2025-02-17 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493629', 'tblTempVendorCDR_20' ) start [2025-02-17 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493629', 'tblTempVendorCDR_20' ) end [2025-02-17 05:35:18] Production.INFO: ProcessCDR(1,14493629,1,1,2) [2025-02-17 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493629', 'tblTempUsageDetail_20' ) start [2025-02-17 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493629', 'tblTempUsageDetail_20' ) end [2025-02-17 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:35:21] Production.INFO: ==25780== Releasing lock... [2025-02-17 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:35:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-17 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:36:05 [end_date_ymd] => 2025-02-17 05:36:05 [RateCDR] => 1 ) [2025-02-17 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:36:05' and `end` < '2025-02-17 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:36:18] Production.INFO: count ==175 [2025-02-17 05:36:18] Production.ERROR: pbx CDR StartTime 2025-02-17 02:36:05 - End Time 2025-02-17 05:36:05 [2025-02-17 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493634', 'tblTempUsageDetail_20' ) start [2025-02-17 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493634', 'tblTempUsageDetail_20' ) end [2025-02-17 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493634', 'tblTempVendorCDR_20' ) start [2025-02-17 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493634', 'tblTempVendorCDR_20' ) end [2025-02-17 05:36:18] Production.INFO: ProcessCDR(1,14493634,1,1,2) [2025-02-17 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493634', 'tblTempUsageDetail_20' ) start [2025-02-17 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493634', 'tblTempUsageDetail_20' ) end [2025-02-17 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:36:21] Production.INFO: ==25858== Releasing lock... [2025-02-17 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:36:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-17 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:37:05 [end_date_ymd] => 2025-02-17 05:37:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 02:37:05' and `end` < '2025-02-17 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-02-17 05:37:18] Production.INFO: count ==175 [2025-02-17 05:37:18] Production.ERROR: pbx CDR StartTime 2025-02-17 02:37:05 - End Time 2025-02-17 05:37:05 [2025-02-17 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493639', 'tblTempUsageDetail_20' ) start [2025-02-17 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493639', 'tblTempUsageDetail_20' ) end [2025-02-17 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493639', 'tblTempVendorCDR_20' ) start [2025-02-17 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493639', 'tblTempVendorCDR_20' ) end [2025-02-17 05:37:18] Production.INFO: ProcessCDR(1,14493639,1,1,2) [2025-02-17 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493639', 'tblTempUsageDetail_20' ) start [2025-02-17 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493639', 'tblTempUsageDetail_20' ) end [2025-02-17 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:37:21] Production.INFO: ==25934== Releasing lock... [2025-02-17 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:37:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-17 05:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:38:06 [end_date_ymd] => 2025-02-17 05:38:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 02:38:06' and `end` < '2025-02-17 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-02-17 05:38:19] Production.INFO: count ==175 [2025-02-17 05:38:19] Production.ERROR: pbx CDR StartTime 2025-02-17 02:38:06 - End Time 2025-02-17 05:38:06 [2025-02-17 05:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493644', 'tblTempUsageDetail_20' ) start [2025-02-17 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493644', 'tblTempUsageDetail_20' ) end [2025-02-17 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493644', 'tblTempVendorCDR_20' ) start [2025-02-17 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493644', 'tblTempVendorCDR_20' ) end [2025-02-17 05:38:19] Production.INFO: ProcessCDR(1,14493644,1,1,2) [2025-02-17 05:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493644', 'tblTempUsageDetail_20' ) start [2025-02-17 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493644', 'tblTempUsageDetail_20' ) end [2025-02-17 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:38:22] Production.INFO: ==26052== Releasing lock... [2025-02-17 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:38:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-17 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:39:05 [end_date_ymd] => 2025-02-17 05:39:05 [RateCDR] => 1 ) [2025-02-17 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:39:05' and `end` < '2025-02-17 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:39:19] Production.INFO: count ==156 [2025-02-17 05:39:19] Production.ERROR: pbx CDR StartTime 2025-02-17 02:39:05 - End Time 2025-02-17 05:39:05 [2025-02-17 05:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493649', 'tblTempUsageDetail_20' ) start [2025-02-17 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493649', 'tblTempUsageDetail_20' ) end [2025-02-17 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493649', 'tblTempVendorCDR_20' ) start [2025-02-17 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493649', 'tblTempVendorCDR_20' ) end [2025-02-17 05:39:19] Production.INFO: ProcessCDR(1,14493649,1,1,2) [2025-02-17 05:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493649', 'tblTempUsageDetail_20' ) start [2025-02-17 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493649', 'tblTempUsageDetail_20' ) end [2025-02-17 05:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:39:22] Production.INFO: ==26131== Releasing lock... [2025-02-17 05:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:39:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:40:06 [end_date_ymd] => 2025-02-17 05:40:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 02:40:06' and `end` < '2025-02-17 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-02-17 05:40:19] Production.INFO: count ==117 [2025-02-17 05:40:19] Production.ERROR: pbx CDR StartTime 2025-02-17 02:40:06 - End Time 2025-02-17 05:40:06 [2025-02-17 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493655', 'tblTempUsageDetail_20' ) start [2025-02-17 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493655', 'tblTempUsageDetail_20' ) end [2025-02-17 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493655', 'tblTempVendorCDR_20' ) start [2025-02-17 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493655', 'tblTempVendorCDR_20' ) end [2025-02-17 05:40:19] Production.INFO: ProcessCDR(1,14493655,1,1,2) [2025-02-17 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493655', 'tblTempUsageDetail_20' ) start [2025-02-17 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493655', 'tblTempUsageDetail_20' ) end [2025-02-17 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:40:22] Production.INFO: ==26209== Releasing lock... [2025-02-17 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:40:22] Production.INFO: 29 MB #Memory Used# [2025-02-17 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:41:05 [end_date_ymd] => 2025-02-17 05:41:05 [RateCDR] => 1 ) [2025-02-17 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:41:05' and `end` < '2025-02-17 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:41:18] Production.INFO: count ==116 [2025-02-17 05:41:18] Production.ERROR: pbx CDR StartTime 2025-02-17 02:41:05 - End Time 2025-02-17 05:41:05 [2025-02-17 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493660', 'tblTempUsageDetail_20' ) start [2025-02-17 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493660', 'tblTempUsageDetail_20' ) end [2025-02-17 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493660', 'tblTempVendorCDR_20' ) start [2025-02-17 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493660', 'tblTempVendorCDR_20' ) end [2025-02-17 05:41:18] Production.INFO: ProcessCDR(1,14493660,1,1,2) [2025-02-17 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493660', 'tblTempUsageDetail_20' ) start [2025-02-17 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493660', 'tblTempUsageDetail_20' ) end [2025-02-17 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:41:21] Production.INFO: ==26291== Releasing lock... [2025-02-17 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:41:21] Production.INFO: 29 MB #Memory Used# [2025-02-17 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:42:05 [end_date_ymd] => 2025-02-17 05:42:05 [RateCDR] => 1 ) [2025-02-17 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:42:05' and `end` < '2025-02-17 05:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:42:18] Production.INFO: count ==112 [2025-02-17 05:42:18] Production.ERROR: pbx CDR StartTime 2025-02-17 02:42:05 - End Time 2025-02-17 05:42:05 [2025-02-17 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493665', 'tblTempUsageDetail_20' ) start [2025-02-17 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493665', 'tblTempUsageDetail_20' ) end [2025-02-17 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493665', 'tblTempVendorCDR_20' ) start [2025-02-17 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493665', 'tblTempVendorCDR_20' ) end [2025-02-17 05:42:18] Production.INFO: ProcessCDR(1,14493665,1,1,2) [2025-02-17 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493665', 'tblTempUsageDetail_20' ) start [2025-02-17 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493665', 'tblTempUsageDetail_20' ) end [2025-02-17 05:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:42:22] Production.INFO: ==26361== Releasing lock... [2025-02-17 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:42:22] Production.INFO: 29 MB #Memory Used# [2025-02-17 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:43:05 [end_date_ymd] => 2025-02-17 05:43:05 [RateCDR] => 1 ) [2025-02-17 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:43:05' and `end` < '2025-02-17 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:43:18] Production.INFO: count ==111 [2025-02-17 05:43:18] Production.ERROR: pbx CDR StartTime 2025-02-17 02:43:05 - End Time 2025-02-17 05:43:05 [2025-02-17 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493670', 'tblTempUsageDetail_20' ) start [2025-02-17 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493670', 'tblTempUsageDetail_20' ) end [2025-02-17 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493670', 'tblTempVendorCDR_20' ) start [2025-02-17 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493670', 'tblTempVendorCDR_20' ) end [2025-02-17 05:43:18] Production.INFO: ProcessCDR(1,14493670,1,1,2) [2025-02-17 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493670', 'tblTempUsageDetail_20' ) start [2025-02-17 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493670', 'tblTempUsageDetail_20' ) end [2025-02-17 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:43:21] Production.INFO: ==26441== Releasing lock... [2025-02-17 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:43:21] Production.INFO: 29 MB #Memory Used# [2025-02-17 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:44:05 [end_date_ymd] => 2025-02-17 05:44:05 [RateCDR] => 1 ) [2025-02-17 05:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:44:05' and `end` < '2025-02-17 05:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:44:19] Production.INFO: count ==111 [2025-02-17 05:44:19] Production.ERROR: pbx CDR StartTime 2025-02-17 02:44:05 - End Time 2025-02-17 05:44:05 [2025-02-17 05:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493675', 'tblTempUsageDetail_20' ) start [2025-02-17 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493675', 'tblTempUsageDetail_20' ) end [2025-02-17 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493675', 'tblTempVendorCDR_20' ) start [2025-02-17 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493675', 'tblTempVendorCDR_20' ) end [2025-02-17 05:44:19] Production.INFO: ProcessCDR(1,14493675,1,1,2) [2025-02-17 05:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493675', 'tblTempUsageDetail_20' ) start [2025-02-17 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493675', 'tblTempUsageDetail_20' ) end [2025-02-17 05:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:44:22] Production.INFO: ==26518== Releasing lock... [2025-02-17 05:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:44:22] Production.INFO: 29 MB #Memory Used# [2025-02-17 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:45:05 [end_date_ymd] => 2025-02-17 05:45:05 [RateCDR] => 1 ) [2025-02-17 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:45:05' and `end` < '2025-02-17 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:45:18] Production.INFO: count ==110 [2025-02-17 05:45:18] Production.ERROR: pbx CDR StartTime 2025-02-17 02:45:05 - End Time 2025-02-17 05:45:05 [2025-02-17 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493680', 'tblTempUsageDetail_20' ) start [2025-02-17 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493680', 'tblTempUsageDetail_20' ) end [2025-02-17 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493680', 'tblTempVendorCDR_20' ) start [2025-02-17 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493680', 'tblTempVendorCDR_20' ) end [2025-02-17 05:45:18] Production.INFO: ProcessCDR(1,14493680,1,1,2) [2025-02-17 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493680', 'tblTempUsageDetail_20' ) start [2025-02-17 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493680', 'tblTempUsageDetail_20' ) end [2025-02-17 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:45:21] Production.INFO: ==26593== Releasing lock... [2025-02-17 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:45:21] Production.INFO: 29 MB #Memory Used# [2025-02-17 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:46:05 [end_date_ymd] => 2025-02-17 05:46:05 [RateCDR] => 1 ) [2025-02-17 05:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:46:05' and `end` < '2025-02-17 05:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:46:18] Production.INFO: count ==109 [2025-02-17 05:46:18] Production.ERROR: pbx CDR StartTime 2025-02-17 02:46:05 - End Time 2025-02-17 05:46:05 [2025-02-17 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493685', 'tblTempUsageDetail_20' ) start [2025-02-17 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493685', 'tblTempUsageDetail_20' ) end [2025-02-17 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493685', 'tblTempVendorCDR_20' ) start [2025-02-17 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493685', 'tblTempVendorCDR_20' ) end [2025-02-17 05:46:18] Production.INFO: ProcessCDR(1,14493685,1,1,2) [2025-02-17 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493685', 'tblTempUsageDetail_20' ) start [2025-02-17 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493685', 'tblTempUsageDetail_20' ) end [2025-02-17 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:46:21] Production.INFO: ==26669== Releasing lock... [2025-02-17 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:46:21] Production.INFO: 29 MB #Memory Used# [2025-02-17 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:47:05 [end_date_ymd] => 2025-02-17 05:47:05 [RateCDR] => 1 ) [2025-02-17 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:47:05' and `end` < '2025-02-17 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:47:18] Production.INFO: count ==107 [2025-02-17 05:47:18] Production.ERROR: pbx CDR StartTime 2025-02-17 02:47:05 - End Time 2025-02-17 05:47:05 [2025-02-17 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493690', 'tblTempUsageDetail_20' ) start [2025-02-17 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493690', 'tblTempUsageDetail_20' ) end [2025-02-17 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493690', 'tblTempVendorCDR_20' ) start [2025-02-17 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493690', 'tblTempVendorCDR_20' ) end [2025-02-17 05:47:18] Production.INFO: ProcessCDR(1,14493690,1,1,2) [2025-02-17 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493690', 'tblTempUsageDetail_20' ) start [2025-02-17 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493690', 'tblTempUsageDetail_20' ) end [2025-02-17 05:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:47:22] Production.INFO: ==26747== Releasing lock... [2025-02-17 05:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:47:22] Production.INFO: 29 MB #Memory Used# [2025-02-17 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:48:05 [end_date_ymd] => 2025-02-17 05:48:05 [RateCDR] => 1 ) [2025-02-17 05:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:48:05' and `end` < '2025-02-17 05:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:48:18] Production.INFO: count ==107 [2025-02-17 05:48:18] Production.ERROR: pbx CDR StartTime 2025-02-17 02:48:05 - End Time 2025-02-17 05:48:05 [2025-02-17 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493695', 'tblTempUsageDetail_20' ) start [2025-02-17 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493695', 'tblTempUsageDetail_20' ) end [2025-02-17 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493695', 'tblTempVendorCDR_20' ) start [2025-02-17 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493695', 'tblTempVendorCDR_20' ) end [2025-02-17 05:48:18] Production.INFO: ProcessCDR(1,14493695,1,1,2) [2025-02-17 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493695', 'tblTempUsageDetail_20' ) start [2025-02-17 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493695', 'tblTempUsageDetail_20' ) end [2025-02-17 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:48:21] Production.INFO: ==26825== Releasing lock... [2025-02-17 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:48:21] Production.INFO: 29 MB #Memory Used# [2025-02-17 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:49:05 [end_date_ymd] => 2025-02-17 05:49:05 [RateCDR] => 1 ) [2025-02-17 05:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:49:05' and `end` < '2025-02-17 05:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:49:18] Production.INFO: count ==107 [2025-02-17 05:49:18] Production.ERROR: pbx CDR StartTime 2025-02-17 02:49:05 - End Time 2025-02-17 05:49:05 [2025-02-17 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493700', 'tblTempUsageDetail_20' ) start [2025-02-17 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493700', 'tblTempUsageDetail_20' ) end [2025-02-17 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493700', 'tblTempVendorCDR_20' ) start [2025-02-17 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493700', 'tblTempVendorCDR_20' ) end [2025-02-17 05:49:18] Production.INFO: ProcessCDR(1,14493700,1,1,2) [2025-02-17 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493700', 'tblTempUsageDetail_20' ) start [2025-02-17 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493700', 'tblTempUsageDetail_20' ) end [2025-02-17 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:49:21] Production.INFO: ==26901== Releasing lock... [2025-02-17 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:49:21] Production.INFO: 29 MB #Memory Used# [2025-02-17 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:50:06 [end_date_ymd] => 2025-02-17 05:50:06 [RateCDR] => 1 ) [2025-02-17 05:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:50:06' and `end` < '2025-02-17 05:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:50:19] Production.INFO: count ==101 [2025-02-17 05:50:19] Production.ERROR: pbx CDR StartTime 2025-02-17 02:50:06 - End Time 2025-02-17 05:50:06 [2025-02-17 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493705', 'tblTempUsageDetail_20' ) start [2025-02-17 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493705', 'tblTempUsageDetail_20' ) end [2025-02-17 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493705', 'tblTempVendorCDR_20' ) start [2025-02-17 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493705', 'tblTempVendorCDR_20' ) end [2025-02-17 05:50:19] Production.INFO: ProcessCDR(1,14493705,1,1,2) [2025-02-17 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493705', 'tblTempUsageDetail_20' ) start [2025-02-17 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493705', 'tblTempUsageDetail_20' ) end [2025-02-17 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:50:22] Production.INFO: ==26974== Releasing lock... [2025-02-17 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:50:22] Production.INFO: 29 MB #Memory Used# [2025-02-17 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:51:05 [end_date_ymd] => 2025-02-17 05:51:05 [RateCDR] => 1 ) [2025-02-17 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:51:05' and `end` < '2025-02-17 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:51:19] Production.INFO: count ==101 [2025-02-17 05:51:19] Production.ERROR: pbx CDR StartTime 2025-02-17 02:51:05 - End Time 2025-02-17 05:51:05 [2025-02-17 05:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493711', 'tblTempUsageDetail_20' ) start [2025-02-17 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493711', 'tblTempUsageDetail_20' ) end [2025-02-17 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493711', 'tblTempVendorCDR_20' ) start [2025-02-17 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493711', 'tblTempVendorCDR_20' ) end [2025-02-17 05:51:19] Production.INFO: ProcessCDR(1,14493711,1,1,2) [2025-02-17 05:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493711', 'tblTempUsageDetail_20' ) start [2025-02-17 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493711', 'tblTempUsageDetail_20' ) end [2025-02-17 05:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:51:22] Production.INFO: ==27051== Releasing lock... [2025-02-17 05:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:51:22] Production.INFO: 29 MB #Memory Used# [2025-02-17 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:52:05 [end_date_ymd] => 2025-02-17 05:52:05 [RateCDR] => 1 ) [2025-02-17 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:52:05' and `end` < '2025-02-17 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:52:18] Production.INFO: count ==101 [2025-02-17 05:52:18] Production.ERROR: pbx CDR StartTime 2025-02-17 02:52:05 - End Time 2025-02-17 05:52:05 [2025-02-17 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493716', 'tblTempUsageDetail_20' ) start [2025-02-17 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493716', 'tblTempUsageDetail_20' ) end [2025-02-17 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493716', 'tblTempVendorCDR_20' ) start [2025-02-17 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493716', 'tblTempVendorCDR_20' ) end [2025-02-17 05:52:18] Production.INFO: ProcessCDR(1,14493716,1,1,2) [2025-02-17 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493716', 'tblTempUsageDetail_20' ) start [2025-02-17 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493716', 'tblTempUsageDetail_20' ) end [2025-02-17 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:52:21] Production.INFO: ==27130== Releasing lock... [2025-02-17 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:52:21] Production.INFO: 29 MB #Memory Used# [2025-02-17 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:53:05 [end_date_ymd] => 2025-02-17 05:53:05 [RateCDR] => 1 ) [2025-02-17 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:53:05' and `end` < '2025-02-17 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:53:19] Production.INFO: count ==102 [2025-02-17 05:53:19] Production.ERROR: pbx CDR StartTime 2025-02-17 02:53:05 - End Time 2025-02-17 05:53:05 [2025-02-17 05:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493721', 'tblTempUsageDetail_20' ) start [2025-02-17 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493721', 'tblTempUsageDetail_20' ) end [2025-02-17 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493721', 'tblTempVendorCDR_20' ) start [2025-02-17 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493721', 'tblTempVendorCDR_20' ) end [2025-02-17 05:53:19] Production.INFO: ProcessCDR(1,14493721,1,1,2) [2025-02-17 05:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493721', 'tblTempUsageDetail_20' ) start [2025-02-17 05:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493721', 'tblTempUsageDetail_20' ) end [2025-02-17 05:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:53:24] Production.INFO: ==27246== Releasing lock... [2025-02-17 05:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:53:24] Production.INFO: 29 MB #Memory Used# [2025-02-17 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:54:05 [end_date_ymd] => 2025-02-17 05:54:05 [RateCDR] => 1 ) [2025-02-17 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:54:05' and `end` < '2025-02-17 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:54:18] Production.INFO: count ==102 [2025-02-17 05:54:18] Production.ERROR: pbx CDR StartTime 2025-02-17 02:54:05 - End Time 2025-02-17 05:54:05 [2025-02-17 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493726', 'tblTempUsageDetail_20' ) start [2025-02-17 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493726', 'tblTempUsageDetail_20' ) end [2025-02-17 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493726', 'tblTempVendorCDR_20' ) start [2025-02-17 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493726', 'tblTempVendorCDR_20' ) end [2025-02-17 05:54:18] Production.INFO: ProcessCDR(1,14493726,1,1,2) [2025-02-17 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493726', 'tblTempUsageDetail_20' ) start [2025-02-17 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493726', 'tblTempUsageDetail_20' ) end [2025-02-17 05:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:54:22] Production.INFO: ==27318== Releasing lock... [2025-02-17 05:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:54:22] Production.INFO: 29 MB #Memory Used# [2025-02-17 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:55:05 [end_date_ymd] => 2025-02-17 05:55:05 [RateCDR] => 1 ) [2025-02-17 05:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:55:05' and `end` < '2025-02-17 05:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:55:18] Production.INFO: count ==102 [2025-02-17 05:55:18] Production.ERROR: pbx CDR StartTime 2025-02-17 02:55:05 - End Time 2025-02-17 05:55:05 [2025-02-17 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493731', 'tblTempUsageDetail_20' ) start [2025-02-17 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493731', 'tblTempUsageDetail_20' ) end [2025-02-17 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493731', 'tblTempVendorCDR_20' ) start [2025-02-17 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493731', 'tblTempVendorCDR_20' ) end [2025-02-17 05:55:18] Production.INFO: ProcessCDR(1,14493731,1,1,2) [2025-02-17 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493731', 'tblTempUsageDetail_20' ) start [2025-02-17 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493731', 'tblTempUsageDetail_20' ) end [2025-02-17 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:55:22] Production.INFO: ==27394== Releasing lock... [2025-02-17 05:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:55:22] Production.INFO: 29 MB #Memory Used# [2025-02-17 05:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:56:06 [end_date_ymd] => 2025-02-17 05:56:06 [RateCDR] => 1 ) [2025-02-17 05:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:56:06' and `end` < '2025-02-17 05:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:56:19] Production.INFO: count ==102 [2025-02-17 05:56:19] Production.ERROR: pbx CDR StartTime 2025-02-17 02:56:06 - End Time 2025-02-17 05:56:06 [2025-02-17 05:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493736', 'tblTempUsageDetail_20' ) start [2025-02-17 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493736', 'tblTempUsageDetail_20' ) end [2025-02-17 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493736', 'tblTempVendorCDR_20' ) start [2025-02-17 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493736', 'tblTempVendorCDR_20' ) end [2025-02-17 05:56:19] Production.INFO: ProcessCDR(1,14493736,1,1,2) [2025-02-17 05:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493736', 'tblTempUsageDetail_20' ) start [2025-02-17 05:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493736', 'tblTempUsageDetail_20' ) end [2025-02-17 05:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:56:23] Production.INFO: ==27465== Releasing lock... [2025-02-17 05:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:56:23] Production.INFO: 29 MB #Memory Used# [2025-02-17 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:57:05 [end_date_ymd] => 2025-02-17 05:57:05 [RateCDR] => 1 ) [2025-02-17 05:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:57:05' and `end` < '2025-02-17 05:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:57:19] Production.INFO: count ==102 [2025-02-17 05:57:19] Production.ERROR: pbx CDR StartTime 2025-02-17 02:57:05 - End Time 2025-02-17 05:57:05 [2025-02-17 05:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493741', 'tblTempUsageDetail_20' ) start [2025-02-17 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493741', 'tblTempUsageDetail_20' ) end [2025-02-17 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493741', 'tblTempVendorCDR_20' ) start [2025-02-17 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493741', 'tblTempVendorCDR_20' ) end [2025-02-17 05:57:19] Production.INFO: ProcessCDR(1,14493741,1,1,2) [2025-02-17 05:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493741', 'tblTempUsageDetail_20' ) start [2025-02-17 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493741', 'tblTempUsageDetail_20' ) end [2025-02-17 05:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:57:22] Production.INFO: ==27535== Releasing lock... [2025-02-17 05:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:57:22] Production.INFO: 29 MB #Memory Used# [2025-02-17 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:58:05 [end_date_ymd] => 2025-02-17 05:58:05 [RateCDR] => 1 ) [2025-02-17 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:58:05' and `end` < '2025-02-17 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:58:18] Production.INFO: count ==102 [2025-02-17 05:58:18] Production.ERROR: pbx CDR StartTime 2025-02-17 02:58:05 - End Time 2025-02-17 05:58:05 [2025-02-17 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493746', 'tblTempUsageDetail_20' ) start [2025-02-17 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493746', 'tblTempUsageDetail_20' ) end [2025-02-17 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493746', 'tblTempVendorCDR_20' ) start [2025-02-17 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493746', 'tblTempVendorCDR_20' ) end [2025-02-17 05:58:18] Production.INFO: ProcessCDR(1,14493746,1,1,2) [2025-02-17 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493746', 'tblTempUsageDetail_20' ) start [2025-02-17 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493746', 'tblTempUsageDetail_20' ) end [2025-02-17 05:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:58:22] Production.INFO: ==27609== Releasing lock... [2025-02-17 05:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:58:22] Production.INFO: 29 MB #Memory Used# [2025-02-17 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 02:59:05 [end_date_ymd] => 2025-02-17 05:59:05 [RateCDR] => 1 ) [2025-02-17 05:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 02:59:05' and `end` < '2025-02-17 05:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 05:59:18] Production.INFO: count ==102 [2025-02-17 05:59:18] Production.ERROR: pbx CDR StartTime 2025-02-17 02:59:05 - End Time 2025-02-17 05:59:05 [2025-02-17 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493751', 'tblTempUsageDetail_20' ) start [2025-02-17 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493751', 'tblTempUsageDetail_20' ) end [2025-02-17 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493751', 'tblTempVendorCDR_20' ) start [2025-02-17 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493751', 'tblTempVendorCDR_20' ) end [2025-02-17 05:59:18] Production.INFO: ProcessCDR(1,14493751,1,1,2) [2025-02-17 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493751', 'tblTempUsageDetail_20' ) start [2025-02-17 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493751', 'tblTempUsageDetail_20' ) end [2025-02-17 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 05:59:21] Production.INFO: ==27681== Releasing lock... [2025-02-17 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 05:59:21] Production.INFO: 29 MB #Memory Used# [2025-02-17 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:00:06 [end_date_ymd] => 2025-02-17 06:00:06 [RateCDR] => 1 ) [2025-02-17 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:00:06' and `end` < '2025-02-17 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:00:21] Production.INFO: count ==102 [2025-02-17 06:00:21] Production.ERROR: pbx CDR StartTime 2025-02-17 03:00:06 - End Time 2025-02-17 06:00:06 [2025-02-17 06:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493756', 'tblTempUsageDetail_20' ) start [2025-02-17 06:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493756', 'tblTempUsageDetail_20' ) end [2025-02-17 06:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493756', 'tblTempVendorCDR_20' ) start [2025-02-17 06:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493756', 'tblTempVendorCDR_20' ) end [2025-02-17 06:00:21] Production.INFO: ProcessCDR(1,14493756,1,1,2) [2025-02-17 06:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493756', 'tblTempUsageDetail_20' ) start [2025-02-17 06:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493756', 'tblTempUsageDetail_20' ) end [2025-02-17 06:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:00:24] Production.INFO: ==27758== Releasing lock... [2025-02-17 06:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:00:24] Production.INFO: 29 MB #Memory Used# [2025-02-17 06:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:01:06 [end_date_ymd] => 2025-02-17 06:01:06 [RateCDR] => 1 ) [2025-02-17 06:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:01:06' and `end` < '2025-02-17 06:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:01:18] Production.INFO: count ==102 [2025-02-17 06:01:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:01:06 - End Time 2025-02-17 06:01:06 [2025-02-17 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493762', 'tblTempUsageDetail_20' ) start [2025-02-17 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493762', 'tblTempUsageDetail_20' ) end [2025-02-17 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493762', 'tblTempVendorCDR_20' ) start [2025-02-17 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493762', 'tblTempVendorCDR_20' ) end [2025-02-17 06:01:18] Production.INFO: ProcessCDR(1,14493762,1,1,2) [2025-02-17 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493762', 'tblTempUsageDetail_20' ) start [2025-02-17 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493762', 'tblTempUsageDetail_20' ) end [2025-02-17 06:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:01:22] Production.INFO: ==27844== Releasing lock... [2025-02-17 06:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:01:22] Production.INFO: 29 MB #Memory Used# [2025-02-17 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:02:05 [end_date_ymd] => 2025-02-17 06:02:05 [RateCDR] => 1 ) [2025-02-17 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:02:05' and `end` < '2025-02-17 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:02:19] Production.INFO: count ==102 [2025-02-17 06:02:19] Production.ERROR: pbx CDR StartTime 2025-02-17 03:02:05 - End Time 2025-02-17 06:02:05 [2025-02-17 06:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493767', 'tblTempUsageDetail_20' ) start [2025-02-17 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493767', 'tblTempUsageDetail_20' ) end [2025-02-17 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493767', 'tblTempVendorCDR_20' ) start [2025-02-17 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493767', 'tblTempVendorCDR_20' ) end [2025-02-17 06:02:19] Production.INFO: ProcessCDR(1,14493767,1,1,2) [2025-02-17 06:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493767', 'tblTempUsageDetail_20' ) start [2025-02-17 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493767', 'tblTempUsageDetail_20' ) end [2025-02-17 06:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:02:22] Production.INFO: ==27920== Releasing lock... [2025-02-17 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:02:22] Production.INFO: 29 MB #Memory Used# [2025-02-17 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:03:05 [end_date_ymd] => 2025-02-17 06:03:05 [RateCDR] => 1 ) [2025-02-17 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:03:05' and `end` < '2025-02-17 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:03:18] Production.INFO: count ==102 [2025-02-17 06:03:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:03:05 - End Time 2025-02-17 06:03:05 [2025-02-17 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493772', 'tblTempUsageDetail_20' ) start [2025-02-17 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493772', 'tblTempUsageDetail_20' ) end [2025-02-17 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493772', 'tblTempVendorCDR_20' ) start [2025-02-17 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493772', 'tblTempVendorCDR_20' ) end [2025-02-17 06:03:18] Production.INFO: ProcessCDR(1,14493772,1,1,2) [2025-02-17 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493772', 'tblTempUsageDetail_20' ) start [2025-02-17 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493772', 'tblTempUsageDetail_20' ) end [2025-02-17 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:03:21] Production.INFO: ==27990== Releasing lock... [2025-02-17 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:03:21] Production.INFO: 29 MB #Memory Used# [2025-02-17 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:04:05 [end_date_ymd] => 2025-02-17 06:04:05 [RateCDR] => 1 ) [2025-02-17 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:04:05' and `end` < '2025-02-17 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:04:18] Production.INFO: count ==102 [2025-02-17 06:04:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:04:05 - End Time 2025-02-17 06:04:05 [2025-02-17 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493777', 'tblTempUsageDetail_20' ) start [2025-02-17 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493777', 'tblTempUsageDetail_20' ) end [2025-02-17 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493777', 'tblTempVendorCDR_20' ) start [2025-02-17 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493777', 'tblTempVendorCDR_20' ) end [2025-02-17 06:04:18] Production.INFO: ProcessCDR(1,14493777,1,1,2) [2025-02-17 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493777', 'tblTempUsageDetail_20' ) start [2025-02-17 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493777', 'tblTempUsageDetail_20' ) end [2025-02-17 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:04:21] Production.INFO: ==28070== Releasing lock... [2025-02-17 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:04:21] Production.INFO: 29 MB #Memory Used# [2025-02-17 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:05:05 [end_date_ymd] => 2025-02-17 06:05:05 [RateCDR] => 1 ) [2025-02-17 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:05:05' and `end` < '2025-02-17 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:05:19] Production.INFO: count ==88 [2025-02-17 06:05:19] Production.ERROR: pbx CDR StartTime 2025-02-17 03:05:05 - End Time 2025-02-17 06:05:05 [2025-02-17 06:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493782', 'tblTempUsageDetail_20' ) start [2025-02-17 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493782', 'tblTempUsageDetail_20' ) end [2025-02-17 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493782', 'tblTempVendorCDR_20' ) start [2025-02-17 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493782', 'tblTempVendorCDR_20' ) end [2025-02-17 06:05:19] Production.INFO: ProcessCDR(1,14493782,1,1,2) [2025-02-17 06:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493782', 'tblTempUsageDetail_20' ) start [2025-02-17 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493782', 'tblTempUsageDetail_20' ) end [2025-02-17 06:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:05:22] Production.INFO: ==28146== Releasing lock... [2025-02-17 06:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:05:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-17 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:06:05 [end_date_ymd] => 2025-02-17 06:06:05 [RateCDR] => 1 ) [2025-02-17 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:06:05' and `end` < '2025-02-17 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:06:19] Production.INFO: count ==88 [2025-02-17 06:06:19] Production.ERROR: pbx CDR StartTime 2025-02-17 03:06:05 - End Time 2025-02-17 06:06:05 [2025-02-17 06:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493787', 'tblTempUsageDetail_20' ) start [2025-02-17 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493787', 'tblTempUsageDetail_20' ) end [2025-02-17 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493787', 'tblTempVendorCDR_20' ) start [2025-02-17 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493787', 'tblTempVendorCDR_20' ) end [2025-02-17 06:06:19] Production.INFO: ProcessCDR(1,14493787,1,1,2) [2025-02-17 06:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493787', 'tblTempUsageDetail_20' ) start [2025-02-17 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493787', 'tblTempUsageDetail_20' ) end [2025-02-17 06:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:06:22] Production.INFO: ==28222== Releasing lock... [2025-02-17 06:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:06:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-17 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:07:05 [end_date_ymd] => 2025-02-17 06:07:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 03:07:05' and `end` < '2025-02-17 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-02-17 06:07:18] Production.INFO: count ==66 [2025-02-17 06:07:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:07:05 - End Time 2025-02-17 06:07:05 [2025-02-17 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493792', 'tblTempUsageDetail_20' ) start [2025-02-17 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493792', 'tblTempUsageDetail_20' ) end [2025-02-17 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493792', 'tblTempVendorCDR_20' ) start [2025-02-17 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493792', 'tblTempVendorCDR_20' ) end [2025-02-17 06:07:18] Production.INFO: ProcessCDR(1,14493792,1,1,2) [2025-02-17 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493792', 'tblTempUsageDetail_20' ) start [2025-02-17 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493792', 'tblTempUsageDetail_20' ) end [2025-02-17 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:07:21] Production.INFO: ==28295== Releasing lock... [2025-02-17 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:07:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-17 06:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:08:06 [end_date_ymd] => 2025-02-17 06:08:06 [RateCDR] => 1 ) [2025-02-17 06:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:08:06' and `end` < '2025-02-17 06:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:08:19] Production.INFO: count ==37 [2025-02-17 06:08:19] Production.ERROR: pbx CDR StartTime 2025-02-17 03:08:06 - End Time 2025-02-17 06:08:06 [2025-02-17 06:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493797', 'tblTempUsageDetail_20' ) start [2025-02-17 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493797', 'tblTempUsageDetail_20' ) end [2025-02-17 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493797', 'tblTempVendorCDR_20' ) start [2025-02-17 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493797', 'tblTempVendorCDR_20' ) end [2025-02-17 06:08:19] Production.INFO: ProcessCDR(1,14493797,1,1,2) [2025-02-17 06:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493797', 'tblTempUsageDetail_20' ) start [2025-02-17 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493797', 'tblTempUsageDetail_20' ) end [2025-02-17 06:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:08:22] Production.INFO: ==28372== Releasing lock... [2025-02-17 06:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:08:22] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:09:04 [end_date_ymd] => 2025-02-17 06:09:04 [RateCDR] => 1 ) [2025-02-17 06:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:09:04' and `end` < '2025-02-17 06:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:09:17] Production.INFO: count ==37 [2025-02-17 06:09:17] Production.ERROR: pbx CDR StartTime 2025-02-17 03:09:04 - End Time 2025-02-17 06:09:04 [2025-02-17 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493802', 'tblTempUsageDetail_20' ) start [2025-02-17 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493802', 'tblTempUsageDetail_20' ) end [2025-02-17 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493802', 'tblTempVendorCDR_20' ) start [2025-02-17 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493802', 'tblTempVendorCDR_20' ) end [2025-02-17 06:09:17] Production.INFO: ProcessCDR(1,14493802,1,1,2) [2025-02-17 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493802', 'tblTempUsageDetail_20' ) start [2025-02-17 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493802', 'tblTempUsageDetail_20' ) end [2025-02-17 06:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:09:20] Production.INFO: ==28484== Releasing lock... [2025-02-17 06:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:09:20] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:10:05 [end_date_ymd] => 2025-02-17 06:10:05 [RateCDR] => 1 ) [2025-02-17 06:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:10:05' and `end` < '2025-02-17 06:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:10:18] Production.INFO: count ==37 [2025-02-17 06:10:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:10:05 - End Time 2025-02-17 06:10:05 [2025-02-17 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493807', 'tblTempUsageDetail_20' ) start [2025-02-17 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493807', 'tblTempUsageDetail_20' ) end [2025-02-17 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493807', 'tblTempVendorCDR_20' ) start [2025-02-17 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493807', 'tblTempVendorCDR_20' ) end [2025-02-17 06:10:18] Production.INFO: ProcessCDR(1,14493807,1,1,2) [2025-02-17 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493807', 'tblTempUsageDetail_20' ) start [2025-02-17 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493807', 'tblTempUsageDetail_20' ) end [2025-02-17 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:10:22] Production.INFO: ==28572== Releasing lock... [2025-02-17 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:10:22] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:11:05 [end_date_ymd] => 2025-02-17 06:11:05 [RateCDR] => 1 ) [2025-02-17 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:11:05' and `end` < '2025-02-17 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:11:18] Production.INFO: count ==37 [2025-02-17 06:11:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:11:05 - End Time 2025-02-17 06:11:05 [2025-02-17 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493813', 'tblTempUsageDetail_20' ) start [2025-02-17 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493813', 'tblTempUsageDetail_20' ) end [2025-02-17 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493813', 'tblTempVendorCDR_20' ) start [2025-02-17 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493813', 'tblTempVendorCDR_20' ) end [2025-02-17 06:11:18] Production.INFO: ProcessCDR(1,14493813,1,1,2) [2025-02-17 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493813', 'tblTempUsageDetail_20' ) start [2025-02-17 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493813', 'tblTempUsageDetail_20' ) end [2025-02-17 06:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:11:20] Production.INFO: ==28660== Releasing lock... [2025-02-17 06:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:11:20] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:12:05 [end_date_ymd] => 2025-02-17 06:12:05 [RateCDR] => 1 ) [2025-02-17 06:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:12:05' and `end` < '2025-02-17 06:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:12:18] Production.INFO: count ==37 [2025-02-17 06:12:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:12:05 - End Time 2025-02-17 06:12:05 [2025-02-17 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493818', 'tblTempUsageDetail_20' ) start [2025-02-17 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493818', 'tblTempUsageDetail_20' ) end [2025-02-17 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493818', 'tblTempVendorCDR_20' ) start [2025-02-17 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493818', 'tblTempVendorCDR_20' ) end [2025-02-17 06:12:18] Production.INFO: ProcessCDR(1,14493818,1,1,2) [2025-02-17 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493818', 'tblTempUsageDetail_20' ) start [2025-02-17 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493818', 'tblTempUsageDetail_20' ) end [2025-02-17 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:12:21] Production.INFO: ==28738== Releasing lock... [2025-02-17 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:12:21] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:13:05 [end_date_ymd] => 2025-02-17 06:13:05 [RateCDR] => 1 ) [2025-02-17 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:13:05' and `end` < '2025-02-17 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:13:17] Production.INFO: count ==37 [2025-02-17 06:13:17] Production.ERROR: pbx CDR StartTime 2025-02-17 03:13:05 - End Time 2025-02-17 06:13:05 [2025-02-17 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493823', 'tblTempUsageDetail_20' ) start [2025-02-17 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493823', 'tblTempUsageDetail_20' ) end [2025-02-17 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493823', 'tblTempVendorCDR_20' ) start [2025-02-17 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493823', 'tblTempVendorCDR_20' ) end [2025-02-17 06:13:17] Production.INFO: ProcessCDR(1,14493823,1,1,2) [2025-02-17 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493823', 'tblTempUsageDetail_20' ) start [2025-02-17 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493823', 'tblTempUsageDetail_20' ) end [2025-02-17 06:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:13:20] Production.INFO: ==28818== Releasing lock... [2025-02-17 06:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:13:20] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:14:05 [end_date_ymd] => 2025-02-17 06:14:05 [RateCDR] => 1 ) [2025-02-17 06:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:14:05' and `end` < '2025-02-17 06:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:14:19] Production.INFO: count ==37 [2025-02-17 06:14:19] Production.ERROR: pbx CDR StartTime 2025-02-17 03:14:05 - End Time 2025-02-17 06:14:05 [2025-02-17 06:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493828', 'tblTempUsageDetail_20' ) start [2025-02-17 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493828', 'tblTempUsageDetail_20' ) end [2025-02-17 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493828', 'tblTempVendorCDR_20' ) start [2025-02-17 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493828', 'tblTempVendorCDR_20' ) end [2025-02-17 06:14:19] Production.INFO: ProcessCDR(1,14493828,1,1,2) [2025-02-17 06:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493828', 'tblTempUsageDetail_20' ) start [2025-02-17 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493828', 'tblTempUsageDetail_20' ) end [2025-02-17 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:14:22] Production.INFO: ==28898== Releasing lock... [2025-02-17 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:14:22] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:15:05 [end_date_ymd] => 2025-02-17 06:15:05 [RateCDR] => 1 ) [2025-02-17 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:15:05' and `end` < '2025-02-17 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:15:18] Production.INFO: count ==37 [2025-02-17 06:15:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:15:05 - End Time 2025-02-17 06:15:05 [2025-02-17 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493833', 'tblTempUsageDetail_20' ) start [2025-02-17 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493833', 'tblTempUsageDetail_20' ) end [2025-02-17 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493833', 'tblTempVendorCDR_20' ) start [2025-02-17 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493833', 'tblTempVendorCDR_20' ) end [2025-02-17 06:15:18] Production.INFO: ProcessCDR(1,14493833,1,1,2) [2025-02-17 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493833', 'tblTempUsageDetail_20' ) start [2025-02-17 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493833', 'tblTempUsageDetail_20' ) end [2025-02-17 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:15:21] Production.INFO: ==28980== Releasing lock... [2025-02-17 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:15:21] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:16:05 [end_date_ymd] => 2025-02-17 06:16:05 [RateCDR] => 1 ) [2025-02-17 06:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:16:05' and `end` < '2025-02-17 06:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:16:18] Production.INFO: count ==37 [2025-02-17 06:16:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:16:05 - End Time 2025-02-17 06:16:05 [2025-02-17 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493838', 'tblTempUsageDetail_20' ) start [2025-02-17 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493838', 'tblTempUsageDetail_20' ) end [2025-02-17 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493838', 'tblTempVendorCDR_20' ) start [2025-02-17 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493838', 'tblTempVendorCDR_20' ) end [2025-02-17 06:16:18] Production.INFO: ProcessCDR(1,14493838,1,1,2) [2025-02-17 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493838', 'tblTempUsageDetail_20' ) start [2025-02-17 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493838', 'tblTempUsageDetail_20' ) end [2025-02-17 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:16:21] Production.INFO: ==29056== Releasing lock... [2025-02-17 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:16:21] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:17:05 [end_date_ymd] => 2025-02-17 06:17:05 [RateCDR] => 1 ) [2025-02-17 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:17:05' and `end` < '2025-02-17 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:17:18] Production.INFO: count ==37 [2025-02-17 06:17:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:17:05 - End Time 2025-02-17 06:17:05 [2025-02-17 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493843', 'tblTempUsageDetail_20' ) start [2025-02-17 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493843', 'tblTempUsageDetail_20' ) end [2025-02-17 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493843', 'tblTempVendorCDR_20' ) start [2025-02-17 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493843', 'tblTempVendorCDR_20' ) end [2025-02-17 06:17:18] Production.INFO: ProcessCDR(1,14493843,1,1,2) [2025-02-17 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493843', 'tblTempUsageDetail_20' ) start [2025-02-17 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493843', 'tblTempUsageDetail_20' ) end [2025-02-17 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:17:21] Production.INFO: ==29139== Releasing lock... [2025-02-17 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:17:21] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:18:04 [end_date_ymd] => 2025-02-17 06:18:04 [RateCDR] => 1 ) [2025-02-17 06:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:18:04' and `end` < '2025-02-17 06:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:18:18] Production.INFO: count ==37 [2025-02-17 06:18:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:18:04 - End Time 2025-02-17 06:18:04 [2025-02-17 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493848', 'tblTempUsageDetail_20' ) start [2025-02-17 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493848', 'tblTempUsageDetail_20' ) end [2025-02-17 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493848', 'tblTempVendorCDR_20' ) start [2025-02-17 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493848', 'tblTempVendorCDR_20' ) end [2025-02-17 06:18:18] Production.INFO: ProcessCDR(1,14493848,1,1,2) [2025-02-17 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493848', 'tblTempUsageDetail_20' ) start [2025-02-17 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493848', 'tblTempUsageDetail_20' ) end [2025-02-17 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:18:21] Production.INFO: ==29218== Releasing lock... [2025-02-17 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:18:21] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:19:05 [end_date_ymd] => 2025-02-17 06:19:05 [RateCDR] => 1 ) [2025-02-17 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:19:05' and `end` < '2025-02-17 06:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:19:18] Production.INFO: count ==38 [2025-02-17 06:19:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:19:05 - End Time 2025-02-17 06:19:05 [2025-02-17 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493853', 'tblTempUsageDetail_20' ) start [2025-02-17 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493853', 'tblTempUsageDetail_20' ) end [2025-02-17 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493853', 'tblTempVendorCDR_20' ) start [2025-02-17 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493853', 'tblTempVendorCDR_20' ) end [2025-02-17 06:19:18] Production.INFO: ProcessCDR(1,14493853,1,1,2) [2025-02-17 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493853', 'tblTempUsageDetail_20' ) start [2025-02-17 06:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493853', 'tblTempUsageDetail_20' ) end [2025-02-17 06:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:19:23] Production.INFO: ==29294== Releasing lock... [2025-02-17 06:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:19:23] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:20:05 [end_date_ymd] => 2025-02-17 06:20:05 [RateCDR] => 1 ) [2025-02-17 06:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:20:05' and `end` < '2025-02-17 06:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:20:18] Production.INFO: count ==32 [2025-02-17 06:20:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:20:05 - End Time 2025-02-17 06:20:05 [2025-02-17 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493859', 'tblTempUsageDetail_20' ) start [2025-02-17 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493859', 'tblTempUsageDetail_20' ) end [2025-02-17 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493859', 'tblTempVendorCDR_20' ) start [2025-02-17 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493859', 'tblTempVendorCDR_20' ) end [2025-02-17 06:20:18] Production.INFO: ProcessCDR(1,14493859,1,1,2) [2025-02-17 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493859', 'tblTempUsageDetail_20' ) start [2025-02-17 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493859', 'tblTempUsageDetail_20' ) end [2025-02-17 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:20:21] Production.INFO: ==29369== Releasing lock... [2025-02-17 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:20:21] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:21:05 [end_date_ymd] => 2025-02-17 06:21:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 03:21:05' and `end` < '2025-02-17 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-02-17 06:21:18] Production.INFO: count ==30 [2025-02-17 06:21:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:21:05 - End Time 2025-02-17 06:21:05 [2025-02-17 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493864', 'tblTempUsageDetail_20' ) start [2025-02-17 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493864', 'tblTempUsageDetail_20' ) end [2025-02-17 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493864', 'tblTempVendorCDR_20' ) start [2025-02-17 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493864', 'tblTempVendorCDR_20' ) end [2025-02-17 06:21:18] Production.INFO: ProcessCDR(1,14493864,1,1,2) [2025-02-17 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493864', 'tblTempUsageDetail_20' ) start [2025-02-17 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493864', 'tblTempUsageDetail_20' ) end [2025-02-17 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:21:21] Production.INFO: ==29452== Releasing lock... [2025-02-17 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:21:21] Production.INFO: 27.75 MB #Memory Used# [2025-02-17 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:22:05 [end_date_ymd] => 2025-02-17 06:22:05 [RateCDR] => 1 ) [2025-02-17 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:22:05' and `end` < '2025-02-17 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:22:18] Production.INFO: count ==30 [2025-02-17 06:22:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:22:05 - End Time 2025-02-17 06:22:05 [2025-02-17 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493869', 'tblTempUsageDetail_20' ) start [2025-02-17 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493869', 'tblTempUsageDetail_20' ) end [2025-02-17 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493869', 'tblTempVendorCDR_20' ) start [2025-02-17 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493869', 'tblTempVendorCDR_20' ) end [2025-02-17 06:22:18] Production.INFO: ProcessCDR(1,14493869,1,1,2) [2025-02-17 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493869', 'tblTempUsageDetail_20' ) start [2025-02-17 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493869', 'tblTempUsageDetail_20' ) end [2025-02-17 06:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:22:22] Production.INFO: ==29531== Releasing lock... [2025-02-17 06:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:22:22] Production.INFO: 27.75 MB #Memory Used# [2025-02-17 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:23:05 [end_date_ymd] => 2025-02-17 06:23:05 [RateCDR] => 1 ) [2025-02-17 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:23:05' and `end` < '2025-02-17 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:23:18] Production.INFO: count ==30 [2025-02-17 06:23:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:23:05 - End Time 2025-02-17 06:23:05 [2025-02-17 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493874', 'tblTempUsageDetail_20' ) start [2025-02-17 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493874', 'tblTempUsageDetail_20' ) end [2025-02-17 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493874', 'tblTempVendorCDR_20' ) start [2025-02-17 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493874', 'tblTempVendorCDR_20' ) end [2025-02-17 06:23:18] Production.INFO: ProcessCDR(1,14493874,1,1,2) [2025-02-17 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493874', 'tblTempUsageDetail_20' ) start [2025-02-17 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493874', 'tblTempUsageDetail_20' ) end [2025-02-17 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:23:21] Production.INFO: ==29607== Releasing lock... [2025-02-17 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:23:21] Production.INFO: 27.75 MB #Memory Used# [2025-02-17 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:24:05 [end_date_ymd] => 2025-02-17 06:24:05 [RateCDR] => 1 ) [2025-02-17 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:24:05' and `end` < '2025-02-17 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:24:19] Production.INFO: count ==30 [2025-02-17 06:24:19] Production.ERROR: pbx CDR StartTime 2025-02-17 03:24:05 - End Time 2025-02-17 06:24:05 [2025-02-17 06:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493879', 'tblTempUsageDetail_20' ) start [2025-02-17 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493879', 'tblTempUsageDetail_20' ) end [2025-02-17 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493879', 'tblTempVendorCDR_20' ) start [2025-02-17 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493879', 'tblTempVendorCDR_20' ) end [2025-02-17 06:24:19] Production.INFO: ProcessCDR(1,14493879,1,1,2) [2025-02-17 06:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493879', 'tblTempUsageDetail_20' ) start [2025-02-17 06:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493879', 'tblTempUsageDetail_20' ) end [2025-02-17 06:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:24:23] Production.INFO: ==29723== Releasing lock... [2025-02-17 06:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:24:23] Production.INFO: 27.75 MB #Memory Used# [2025-02-17 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:25:05 [end_date_ymd] => 2025-02-17 06:25:05 [RateCDR] => 1 ) [2025-02-17 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:25:05' and `end` < '2025-02-17 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:25:18] Production.INFO: count ==31 [2025-02-17 06:25:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:25:05 - End Time 2025-02-17 06:25:05 [2025-02-17 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493884', 'tblTempUsageDetail_20' ) start [2025-02-17 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493884', 'tblTempUsageDetail_20' ) end [2025-02-17 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493884', 'tblTempVendorCDR_20' ) start [2025-02-17 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493884', 'tblTempVendorCDR_20' ) end [2025-02-17 06:25:18] Production.INFO: ProcessCDR(1,14493884,1,1,2) [2025-02-17 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493884', 'tblTempUsageDetail_20' ) start [2025-02-17 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493884', 'tblTempUsageDetail_20' ) end [2025-02-17 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:25:21] Production.INFO: ==29803== Releasing lock... [2025-02-17 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:25:21] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:26:06 [end_date_ymd] => 2025-02-17 06:26:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 03:26:06' and `end` < '2025-02-17 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-02-17 06:26:19] Production.INFO: count ==31 [2025-02-17 06:26:19] Production.ERROR: pbx CDR StartTime 2025-02-17 03:26:06 - End Time 2025-02-17 06:26:06 [2025-02-17 06:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493889', 'tblTempUsageDetail_20' ) start [2025-02-17 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493889', 'tblTempUsageDetail_20' ) end [2025-02-17 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493889', 'tblTempVendorCDR_20' ) start [2025-02-17 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493889', 'tblTempVendorCDR_20' ) end [2025-02-17 06:26:19] Production.INFO: ProcessCDR(1,14493889,1,1,2) [2025-02-17 06:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493889', 'tblTempUsageDetail_20' ) start [2025-02-17 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493889', 'tblTempUsageDetail_20' ) end [2025-02-17 06:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:26:22] Production.INFO: ==29886== Releasing lock... [2025-02-17 06:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:26:22] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:27:05 [end_date_ymd] => 2025-02-17 06:27:05 [RateCDR] => 1 ) [2025-02-17 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:27:05' and `end` < '2025-02-17 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:27:19] Production.INFO: count ==33 [2025-02-17 06:27:19] Production.ERROR: pbx CDR StartTime 2025-02-17 03:27:05 - End Time 2025-02-17 06:27:05 [2025-02-17 06:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493894', 'tblTempUsageDetail_20' ) start [2025-02-17 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493894', 'tblTempUsageDetail_20' ) end [2025-02-17 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493894', 'tblTempVendorCDR_20' ) start [2025-02-17 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493894', 'tblTempVendorCDR_20' ) end [2025-02-17 06:27:19] Production.INFO: ProcessCDR(1,14493894,1,1,2) [2025-02-17 06:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493894', 'tblTempUsageDetail_20' ) start [2025-02-17 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493894', 'tblTempUsageDetail_20' ) end [2025-02-17 06:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:27:22] Production.INFO: ==29962== Releasing lock... [2025-02-17 06:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:27:22] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:28:05 [end_date_ymd] => 2025-02-17 06:28:05 [RateCDR] => 1 ) [2025-02-17 06:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:28:05' and `end` < '2025-02-17 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:28:19] Production.INFO: count ==36 [2025-02-17 06:28:19] Production.ERROR: pbx CDR StartTime 2025-02-17 03:28:05 - End Time 2025-02-17 06:28:05 [2025-02-17 06:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493899', 'tblTempUsageDetail_20' ) start [2025-02-17 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493899', 'tblTempUsageDetail_20' ) end [2025-02-17 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493899', 'tblTempVendorCDR_20' ) start [2025-02-17 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493899', 'tblTempVendorCDR_20' ) end [2025-02-17 06:28:19] Production.INFO: ProcessCDR(1,14493899,1,1,2) [2025-02-17 06:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493899', 'tblTempUsageDetail_20' ) start [2025-02-17 06:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493899', 'tblTempUsageDetail_20' ) end [2025-02-17 06:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:28:23] Production.INFO: ==30040== Releasing lock... [2025-02-17 06:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:28:23] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:29:05 [end_date_ymd] => 2025-02-17 06:29:05 [RateCDR] => 1 ) [2025-02-17 06:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:29:05' and `end` < '2025-02-17 06:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:29:17] Production.INFO: count ==36 [2025-02-17 06:29:17] Production.ERROR: pbx CDR StartTime 2025-02-17 03:29:05 - End Time 2025-02-17 06:29:05 [2025-02-17 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493904', 'tblTempUsageDetail_20' ) start [2025-02-17 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493904', 'tblTempUsageDetail_20' ) end [2025-02-17 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493904', 'tblTempVendorCDR_20' ) start [2025-02-17 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493904', 'tblTempVendorCDR_20' ) end [2025-02-17 06:29:17] Production.INFO: ProcessCDR(1,14493904,1,1,2) [2025-02-17 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493904', 'tblTempUsageDetail_20' ) start [2025-02-17 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493904', 'tblTempUsageDetail_20' ) end [2025-02-17 06:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:29:20] Production.INFO: ==30120== Releasing lock... [2025-02-17 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:29:20] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:30:06 [end_date_ymd] => 2025-02-17 06:30:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 03:30:06' and `end` < '2025-02-17 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-02-17 06:30:19] Production.INFO: count ==45 [2025-02-17 06:30:19] Production.ERROR: pbx CDR StartTime 2025-02-17 03:30:06 - End Time 2025-02-17 06:30:06 [2025-02-17 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493910', 'tblTempUsageDetail_20' ) start [2025-02-17 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493910', 'tblTempUsageDetail_20' ) end [2025-02-17 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493910', 'tblTempVendorCDR_20' ) start [2025-02-17 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493910', 'tblTempVendorCDR_20' ) end [2025-02-17 06:30:19] Production.INFO: ProcessCDR(1,14493910,1,1,2) [2025-02-17 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493910', 'tblTempUsageDetail_20' ) start [2025-02-17 06:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493910', 'tblTempUsageDetail_20' ) end [2025-02-17 06:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:30:24] Production.INFO: ==30204== Releasing lock... [2025-02-17 06:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:30:24] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:31:05 [end_date_ymd] => 2025-02-17 06:31:05 [RateCDR] => 1 ) [2025-02-17 06:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:31:05' and `end` < '2025-02-17 06:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:31:18] Production.INFO: count ==47 [2025-02-17 06:31:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:31:05 - End Time 2025-02-17 06:31:05 [2025-02-17 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493915', 'tblTempUsageDetail_20' ) start [2025-02-17 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493915', 'tblTempUsageDetail_20' ) end [2025-02-17 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493915', 'tblTempVendorCDR_20' ) start [2025-02-17 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493915', 'tblTempVendorCDR_20' ) end [2025-02-17 06:31:18] Production.INFO: ProcessCDR(1,14493915,1,1,2) [2025-02-17 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493915', 'tblTempUsageDetail_20' ) start [2025-02-17 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493915', 'tblTempUsageDetail_20' ) end [2025-02-17 06:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:31:22] Production.INFO: ==30285== Releasing lock... [2025-02-17 06:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:31:22] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:32:05 [end_date_ymd] => 2025-02-17 06:32:05 [RateCDR] => 1 ) [2025-02-17 06:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:32:05' and `end` < '2025-02-17 06:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:32:19] Production.INFO: count ==43 [2025-02-17 06:32:19] Production.ERROR: pbx CDR StartTime 2025-02-17 03:32:05 - End Time 2025-02-17 06:32:05 [2025-02-17 06:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493920', 'tblTempUsageDetail_20' ) start [2025-02-17 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493920', 'tblTempUsageDetail_20' ) end [2025-02-17 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493920', 'tblTempVendorCDR_20' ) start [2025-02-17 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493920', 'tblTempVendorCDR_20' ) end [2025-02-17 06:32:19] Production.INFO: ProcessCDR(1,14493920,1,1,2) [2025-02-17 06:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493920', 'tblTempUsageDetail_20' ) start [2025-02-17 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493920', 'tblTempUsageDetail_20' ) end [2025-02-17 06:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:32:22] Production.INFO: ==30363== Releasing lock... [2025-02-17 06:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:32:22] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:33:04 [end_date_ymd] => 2025-02-17 06:33:04 [RateCDR] => 1 ) [2025-02-17 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-02-17 03:33:04' and `end` < '2025-02-17 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-02-17 06:33:18] Production.INFO: count ==43 [2025-02-17 06:33:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:33:04 - End Time 2025-02-17 06:33:04 [2025-02-17 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493921', 'tblTempUsageDetail_20' ) start [2025-02-17 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493921', 'tblTempUsageDetail_20' ) end [2025-02-17 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493921', 'tblTempVendorCDR_20' ) start [2025-02-17 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493921', 'tblTempVendorCDR_20' ) end [2025-02-17 06:33:18] Production.INFO: ProcessCDR(1,14493921,1,1,2) [2025-02-17 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493921', 'tblTempUsageDetail_20' ) start [2025-02-17 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493921', 'tblTempUsageDetail_20' ) end [2025-02-17 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:33:21] Production.INFO: ==30439== Releasing lock... [2025-02-17 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:33:21] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:34:05 [end_date_ymd] => 2025-02-17 06:34:05 [RateCDR] => 1 ) [2025-02-17 06:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:34:05' and `end` < '2025-02-17 06:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:34:18] Production.INFO: count ==43 [2025-02-17 06:34:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:34:05 - End Time 2025-02-17 06:34:05 [2025-02-17 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493930', 'tblTempUsageDetail_20' ) start [2025-02-17 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493930', 'tblTempUsageDetail_20' ) end [2025-02-17 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493930', 'tblTempVendorCDR_20' ) start [2025-02-17 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493930', 'tblTempVendorCDR_20' ) end [2025-02-17 06:34:18] Production.INFO: ProcessCDR(1,14493930,1,1,2) [2025-02-17 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493930', 'tblTempUsageDetail_20' ) start [2025-02-17 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493930', 'tblTempUsageDetail_20' ) end [2025-02-17 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:34:21] Production.INFO: ==30521== Releasing lock... [2025-02-17 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:34:21] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:35:05 [end_date_ymd] => 2025-02-17 06:35:05 [RateCDR] => 1 ) [2025-02-17 06:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:35:05' and `end` < '2025-02-17 06:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:35:18] Production.INFO: count ==43 [2025-02-17 06:35:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:35:05 - End Time 2025-02-17 06:35:05 [2025-02-17 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493935', 'tblTempUsageDetail_20' ) start [2025-02-17 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493935', 'tblTempUsageDetail_20' ) end [2025-02-17 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493935', 'tblTempVendorCDR_20' ) start [2025-02-17 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493935', 'tblTempVendorCDR_20' ) end [2025-02-17 06:35:18] Production.INFO: ProcessCDR(1,14493935,1,1,2) [2025-02-17 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493935', 'tblTempUsageDetail_20' ) start [2025-02-17 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493935', 'tblTempUsageDetail_20' ) end [2025-02-17 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:35:21] Production.INFO: ==30597== Releasing lock... [2025-02-17 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:35:21] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:36:05 [end_date_ymd] => 2025-02-17 06:36:05 [RateCDR] => 1 ) [2025-02-17 06:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:36:05' and `end` < '2025-02-17 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:36:18] Production.INFO: count ==43 [2025-02-17 06:36:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:36:05 - End Time 2025-02-17 06:36:05 [2025-02-17 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493940', 'tblTempUsageDetail_20' ) start [2025-02-17 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493940', 'tblTempUsageDetail_20' ) end [2025-02-17 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493940', 'tblTempVendorCDR_20' ) start [2025-02-17 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493940', 'tblTempVendorCDR_20' ) end [2025-02-17 06:36:18] Production.INFO: ProcessCDR(1,14493940,1,1,2) [2025-02-17 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493940', 'tblTempUsageDetail_20' ) start [2025-02-17 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493940', 'tblTempUsageDetail_20' ) end [2025-02-17 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:36:21] Production.INFO: ==30671== Releasing lock... [2025-02-17 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:36:21] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:37:05 [end_date_ymd] => 2025-02-17 06:37:05 [RateCDR] => 1 ) [2025-02-17 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:37:05' and `end` < '2025-02-17 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:37:17] Production.INFO: count ==43 [2025-02-17 06:37:17] Production.ERROR: pbx CDR StartTime 2025-02-17 03:37:05 - End Time 2025-02-17 06:37:05 [2025-02-17 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493945', 'tblTempUsageDetail_20' ) start [2025-02-17 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493945', 'tblTempUsageDetail_20' ) end [2025-02-17 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493945', 'tblTempVendorCDR_20' ) start [2025-02-17 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493945', 'tblTempVendorCDR_20' ) end [2025-02-17 06:37:17] Production.INFO: ProcessCDR(1,14493945,1,1,2) [2025-02-17 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493945', 'tblTempUsageDetail_20' ) start [2025-02-17 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493945', 'tblTempUsageDetail_20' ) end [2025-02-17 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:37:21] Production.INFO: ==30747== Releasing lock... [2025-02-17 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:37:21] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:38:05 [end_date_ymd] => 2025-02-17 06:38:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 03:38:05' and `end` < '2025-02-17 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-02-17 06:38:18] Production.INFO: count ==43 [2025-02-17 06:38:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:38:05 - End Time 2025-02-17 06:38:05 [2025-02-17 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493950', 'tblTempUsageDetail_20' ) start [2025-02-17 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493950', 'tblTempUsageDetail_20' ) end [2025-02-17 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493950', 'tblTempVendorCDR_20' ) start [2025-02-17 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493950', 'tblTempVendorCDR_20' ) end [2025-02-17 06:38:18] Production.INFO: ProcessCDR(1,14493950,1,1,2) [2025-02-17 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493950', 'tblTempUsageDetail_20' ) start [2025-02-17 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493950', 'tblTempUsageDetail_20' ) end [2025-02-17 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:38:21] Production.INFO: ==30827== Releasing lock... [2025-02-17 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:38:21] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:39:06 [end_date_ymd] => 2025-02-17 06:39:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 03:39:06' and `end` < '2025-02-17 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-02-17 06:39:19] Production.INFO: count ==46 [2025-02-17 06:39:19] Production.ERROR: pbx CDR StartTime 2025-02-17 03:39:06 - End Time 2025-02-17 06:39:06 [2025-02-17 06:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493955', 'tblTempUsageDetail_20' ) start [2025-02-17 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493955', 'tblTempUsageDetail_20' ) end [2025-02-17 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493955', 'tblTempVendorCDR_20' ) start [2025-02-17 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493955', 'tblTempVendorCDR_20' ) end [2025-02-17 06:39:19] Production.INFO: ProcessCDR(1,14493955,1,1,2) [2025-02-17 06:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493955', 'tblTempUsageDetail_20' ) start [2025-02-17 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493955', 'tblTempUsageDetail_20' ) end [2025-02-17 06:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:39:22] Production.INFO: ==30947== Releasing lock... [2025-02-17 06:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:39:22] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:40:05 [end_date_ymd] => 2025-02-17 06:40:05 [RateCDR] => 1 ) [2025-02-17 06:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:40:05' and `end` < '2025-02-17 06:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:40:18] Production.INFO: count ==40 [2025-02-17 06:40:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:40:05 - End Time 2025-02-17 06:40:05 [2025-02-17 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493960', 'tblTempUsageDetail_20' ) start [2025-02-17 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493960', 'tblTempUsageDetail_20' ) end [2025-02-17 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493960', 'tblTempVendorCDR_20' ) start [2025-02-17 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493960', 'tblTempVendorCDR_20' ) end [2025-02-17 06:40:18] Production.INFO: ProcessCDR(1,14493960,1,1,2) [2025-02-17 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493960', 'tblTempUsageDetail_20' ) start [2025-02-17 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493960', 'tblTempUsageDetail_20' ) end [2025-02-17 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:40:21] Production.INFO: ==31027== Releasing lock... [2025-02-17 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:40:21] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:41:05 [end_date_ymd] => 2025-02-17 06:41:05 [RateCDR] => 1 ) [2025-02-17 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:41:05' and `end` < '2025-02-17 06:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:41:18] Production.INFO: count ==30 [2025-02-17 06:41:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:41:05 - End Time 2025-02-17 06:41:05 [2025-02-17 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493966', 'tblTempUsageDetail_20' ) start [2025-02-17 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493966', 'tblTempUsageDetail_20' ) end [2025-02-17 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493966', 'tblTempVendorCDR_20' ) start [2025-02-17 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493966', 'tblTempVendorCDR_20' ) end [2025-02-17 06:41:18] Production.INFO: ProcessCDR(1,14493966,1,1,2) [2025-02-17 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493966', 'tblTempUsageDetail_20' ) start [2025-02-17 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493966', 'tblTempUsageDetail_20' ) end [2025-02-17 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:41:21] Production.INFO: ==31104== Releasing lock... [2025-02-17 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:41:21] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:42:05 [end_date_ymd] => 2025-02-17 06:42:05 [RateCDR] => 1 ) [2025-02-17 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:42:05' and `end` < '2025-02-17 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:42:18] Production.INFO: count ==30 [2025-02-17 06:42:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:42:05 - End Time 2025-02-17 06:42:05 [2025-02-17 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493971', 'tblTempUsageDetail_20' ) start [2025-02-17 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493971', 'tblTempUsageDetail_20' ) end [2025-02-17 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493971', 'tblTempVendorCDR_20' ) start [2025-02-17 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493971', 'tblTempVendorCDR_20' ) end [2025-02-17 06:42:18] Production.INFO: ProcessCDR(1,14493971,1,1,2) [2025-02-17 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493971', 'tblTempUsageDetail_20' ) start [2025-02-17 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493971', 'tblTempUsageDetail_20' ) end [2025-02-17 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:42:21] Production.INFO: ==31183== Releasing lock... [2025-02-17 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:42:21] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:43:05 [end_date_ymd] => 2025-02-17 06:43:05 [RateCDR] => 1 ) [2025-02-17 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:43:05' and `end` < '2025-02-17 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:43:19] Production.INFO: count ==29 [2025-02-17 06:43:19] Production.ERROR: pbx CDR StartTime 2025-02-17 03:43:05 - End Time 2025-02-17 06:43:05 [2025-02-17 06:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493976', 'tblTempUsageDetail_20' ) start [2025-02-17 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493976', 'tblTempUsageDetail_20' ) end [2025-02-17 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493976', 'tblTempVendorCDR_20' ) start [2025-02-17 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493976', 'tblTempVendorCDR_20' ) end [2025-02-17 06:43:19] Production.INFO: ProcessCDR(1,14493976,1,1,2) [2025-02-17 06:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493976', 'tblTempUsageDetail_20' ) start [2025-02-17 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493976', 'tblTempUsageDetail_20' ) end [2025-02-17 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:43:22] Production.INFO: ==31269== Releasing lock... [2025-02-17 06:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:43:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-17 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:44:05 [end_date_ymd] => 2025-02-17 06:44:05 [RateCDR] => 1 ) [2025-02-17 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:44:05' and `end` < '2025-02-17 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:44:18] Production.INFO: count ==29 [2025-02-17 06:44:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:44:05 - End Time 2025-02-17 06:44:05 [2025-02-17 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493981', 'tblTempUsageDetail_20' ) start [2025-02-17 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493981', 'tblTempUsageDetail_20' ) end [2025-02-17 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493981', 'tblTempVendorCDR_20' ) start [2025-02-17 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493981', 'tblTempVendorCDR_20' ) end [2025-02-17 06:44:18] Production.INFO: ProcessCDR(1,14493981,1,1,2) [2025-02-17 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493981', 'tblTempUsageDetail_20' ) start [2025-02-17 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493981', 'tblTempUsageDetail_20' ) end [2025-02-17 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:44:21] Production.INFO: ==31341== Releasing lock... [2025-02-17 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:44:21] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:45:05 [end_date_ymd] => 2025-02-17 06:45:05 [RateCDR] => 1 ) [2025-02-17 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:45:05' and `end` < '2025-02-17 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:45:18] Production.INFO: count ==29 [2025-02-17 06:45:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:45:05 - End Time 2025-02-17 06:45:05 [2025-02-17 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493986', 'tblTempUsageDetail_20' ) start [2025-02-17 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493986', 'tblTempUsageDetail_20' ) end [2025-02-17 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493986', 'tblTempVendorCDR_20' ) start [2025-02-17 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493986', 'tblTempVendorCDR_20' ) end [2025-02-17 06:45:18] Production.INFO: ProcessCDR(1,14493986,1,1,2) [2025-02-17 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493986', 'tblTempUsageDetail_20' ) start [2025-02-17 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493986', 'tblTempUsageDetail_20' ) end [2025-02-17 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:45:21] Production.INFO: ==31419== Releasing lock... [2025-02-17 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:45:21] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:46:04 [end_date_ymd] => 2025-02-17 06:46:04 [RateCDR] => 1 ) [2025-02-17 06:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:46:04' and `end` < '2025-02-17 06:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:46:17] Production.INFO: count ==29 [2025-02-17 06:46:17] Production.ERROR: pbx CDR StartTime 2025-02-17 03:46:04 - End Time 2025-02-17 06:46:04 [2025-02-17 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493991', 'tblTempUsageDetail_20' ) start [2025-02-17 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493991', 'tblTempUsageDetail_20' ) end [2025-02-17 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493991', 'tblTempVendorCDR_20' ) start [2025-02-17 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493991', 'tblTempVendorCDR_20' ) end [2025-02-17 06:46:17] Production.INFO: ProcessCDR(1,14493991,1,1,2) [2025-02-17 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493991', 'tblTempUsageDetail_20' ) start [2025-02-17 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493991', 'tblTempUsageDetail_20' ) end [2025-02-17 06:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:46:21] Production.INFO: ==31495== Releasing lock... [2025-02-17 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:46:21] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:47:05 [end_date_ymd] => 2025-02-17 06:47:05 [RateCDR] => 1 ) [2025-02-17 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:47:05' and `end` < '2025-02-17 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:47:18] Production.INFO: count ==29 [2025-02-17 06:47:19] Production.ERROR: pbx CDR StartTime 2025-02-17 03:47:05 - End Time 2025-02-17 06:47:05 [2025-02-17 06:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493996', 'tblTempUsageDetail_20' ) start [2025-02-17 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14493996', 'tblTempUsageDetail_20' ) end [2025-02-17 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493996', 'tblTempVendorCDR_20' ) start [2025-02-17 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14493996', 'tblTempVendorCDR_20' ) end [2025-02-17 06:47:19] Production.INFO: ProcessCDR(1,14493996,1,1,2) [2025-02-17 06:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14493996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14493996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14493996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14493996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493996', 'tblTempUsageDetail_20' ) start [2025-02-17 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14493996', 'tblTempUsageDetail_20' ) end [2025-02-17 06:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:47:22] Production.INFO: ==31574== Releasing lock... [2025-02-17 06:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:47:22] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:48:05 [end_date_ymd] => 2025-02-17 06:48:05 [RateCDR] => 1 ) [2025-02-17 06:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:48:05' and `end` < '2025-02-17 06:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:48:18] Production.INFO: count ==30 [2025-02-17 06:48:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:48:05 - End Time 2025-02-17 06:48:05 [2025-02-17 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494001', 'tblTempUsageDetail_20' ) start [2025-02-17 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494001', 'tblTempUsageDetail_20' ) end [2025-02-17 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494001', 'tblTempVendorCDR_20' ) start [2025-02-17 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494001', 'tblTempVendorCDR_20' ) end [2025-02-17 06:48:18] Production.INFO: ProcessCDR(1,14494001,1,1,2) [2025-02-17 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494001', 'tblTempUsageDetail_20' ) start [2025-02-17 06:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494001', 'tblTempUsageDetail_20' ) end [2025-02-17 06:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:48:23] Production.INFO: ==31649== Releasing lock... [2025-02-17 06:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:48:23] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:49:05 [end_date_ymd] => 2025-02-17 06:49:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 03:49:05' and `end` < '2025-02-17 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-02-17 06:49:18] Production.INFO: count ==30 [2025-02-17 06:49:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:49:05 - End Time 2025-02-17 06:49:05 [2025-02-17 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494006', 'tblTempUsageDetail_20' ) start [2025-02-17 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494006', 'tblTempUsageDetail_20' ) end [2025-02-17 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494006', 'tblTempVendorCDR_20' ) start [2025-02-17 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494006', 'tblTempVendorCDR_20' ) end [2025-02-17 06:49:18] Production.INFO: ProcessCDR(1,14494006,1,1,2) [2025-02-17 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494006', 'tblTempUsageDetail_20' ) start [2025-02-17 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494006', 'tblTempUsageDetail_20' ) end [2025-02-17 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:49:21] Production.INFO: ==31722== Releasing lock... [2025-02-17 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:49:21] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:50:05 [end_date_ymd] => 2025-02-17 06:50:05 [RateCDR] => 1 ) [2025-02-17 06: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-02-17 03:50:05' and `end` < '2025-02-17 06:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:50:18] Production.INFO: count ==30 [2025-02-17 06:50:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:50:05 - End Time 2025-02-17 06:50:05 [2025-02-17 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494012', 'tblTempUsageDetail_20' ) start [2025-02-17 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494012', 'tblTempUsageDetail_20' ) end [2025-02-17 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494012', 'tblTempVendorCDR_20' ) start [2025-02-17 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494012', 'tblTempVendorCDR_20' ) end [2025-02-17 06:50:18] Production.INFO: ProcessCDR(1,14494012,1,1,2) [2025-02-17 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494012', 'tblTempUsageDetail_20' ) start [2025-02-17 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494012', 'tblTempUsageDetail_20' ) end [2025-02-17 06:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:50:21] Production.INFO: ==31796== Releasing lock... [2025-02-17 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:50:21] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:51:05 [end_date_ymd] => 2025-02-17 06:51:05 [RateCDR] => 1 ) [2025-02-17 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:51:05' and `end` < '2025-02-17 06:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:51:18] Production.INFO: count ==30 [2025-02-17 06:51:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:51:05 - End Time 2025-02-17 06:51:05 [2025-02-17 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494017', 'tblTempUsageDetail_20' ) start [2025-02-17 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494017', 'tblTempUsageDetail_20' ) end [2025-02-17 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494017', 'tblTempVendorCDR_20' ) start [2025-02-17 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494017', 'tblTempVendorCDR_20' ) end [2025-02-17 06:51:18] Production.INFO: ProcessCDR(1,14494017,1,1,2) [2025-02-17 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494017', 'tblTempUsageDetail_20' ) start [2025-02-17 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494017', 'tblTempUsageDetail_20' ) end [2025-02-17 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:51:21] Production.INFO: ==31875== Releasing lock... [2025-02-17 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:51:21] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:52:05 [end_date_ymd] => 2025-02-17 06:52:05 [RateCDR] => 1 ) [2025-02-17 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:52:05' and `end` < '2025-02-17 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:52:19] Production.INFO: count ==31 [2025-02-17 06:52:19] Production.ERROR: pbx CDR StartTime 2025-02-17 03:52:05 - End Time 2025-02-17 06:52:05 [2025-02-17 06:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494022', 'tblTempUsageDetail_20' ) start [2025-02-17 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494022', 'tblTempUsageDetail_20' ) end [2025-02-17 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494022', 'tblTempVendorCDR_20' ) start [2025-02-17 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494022', 'tblTempVendorCDR_20' ) end [2025-02-17 06:52:19] Production.INFO: ProcessCDR(1,14494022,1,1,2) [2025-02-17 06:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494022', 'tblTempUsageDetail_20' ) start [2025-02-17 06:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494022', 'tblTempUsageDetail_20' ) end [2025-02-17 06:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:52:23] Production.INFO: ==31947== Releasing lock... [2025-02-17 06:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:52:23] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:53:05 [end_date_ymd] => 2025-02-17 06:53:05 [RateCDR] => 1 ) [2025-02-17 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:53:05' and `end` < '2025-02-17 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:53:19] Production.INFO: count ==31 [2025-02-17 06:53:19] Production.ERROR: pbx CDR StartTime 2025-02-17 03:53:05 - End Time 2025-02-17 06:53:05 [2025-02-17 06:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494027', 'tblTempUsageDetail_20' ) start [2025-02-17 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494027', 'tblTempUsageDetail_20' ) end [2025-02-17 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494027', 'tblTempVendorCDR_20' ) start [2025-02-17 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494027', 'tblTempVendorCDR_20' ) end [2025-02-17 06:53:19] Production.INFO: ProcessCDR(1,14494027,1,1,2) [2025-02-17 06:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494027', 'tblTempUsageDetail_20' ) start [2025-02-17 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494027', 'tblTempUsageDetail_20' ) end [2025-02-17 06:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:53:22] Production.INFO: ==32020== Releasing lock... [2025-02-17 06:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:53:22] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:54:05 [end_date_ymd] => 2025-02-17 06:54:05 [RateCDR] => 1 ) [2025-02-17 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:54:05' and `end` < '2025-02-17 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:54:19] Production.INFO: count ==34 [2025-02-17 06:54:19] Production.ERROR: pbx CDR StartTime 2025-02-17 03:54:05 - End Time 2025-02-17 06:54:05 [2025-02-17 06:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494032', 'tblTempUsageDetail_20' ) start [2025-02-17 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494032', 'tblTempUsageDetail_20' ) end [2025-02-17 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494032', 'tblTempVendorCDR_20' ) start [2025-02-17 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494032', 'tblTempVendorCDR_20' ) end [2025-02-17 06:54:19] Production.INFO: ProcessCDR(1,14494032,1,1,2) [2025-02-17 06:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494032', 'tblTempUsageDetail_20' ) start [2025-02-17 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494032', 'tblTempUsageDetail_20' ) end [2025-02-17 06:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:54:22] Production.INFO: ==32096== Releasing lock... [2025-02-17 06:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:54:22] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:55:05 [end_date_ymd] => 2025-02-17 06:55:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 03:55:05' and `end` < '2025-02-17 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-02-17 06:55:18] Production.INFO: count ==37 [2025-02-17 06:55:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:55:05 - End Time 2025-02-17 06:55:05 [2025-02-17 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494037', 'tblTempUsageDetail_20' ) start [2025-02-17 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494037', 'tblTempUsageDetail_20' ) end [2025-02-17 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494037', 'tblTempVendorCDR_20' ) start [2025-02-17 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494037', 'tblTempVendorCDR_20' ) end [2025-02-17 06:55:18] Production.INFO: ProcessCDR(1,14494037,1,1,2) [2025-02-17 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494037', 'tblTempUsageDetail_20' ) start [2025-02-17 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494037', 'tblTempUsageDetail_20' ) end [2025-02-17 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:55:21] Production.INFO: ==32210== Releasing lock... [2025-02-17 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:55:21] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:56:05 [end_date_ymd] => 2025-02-17 06:56:05 [RateCDR] => 1 ) [2025-02-17 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:56:05' and `end` < '2025-02-17 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:56:18] Production.INFO: count ==37 [2025-02-17 06:56:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:56:05 - End Time 2025-02-17 06:56:05 [2025-02-17 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494042', 'tblTempUsageDetail_20' ) start [2025-02-17 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494042', 'tblTempUsageDetail_20' ) end [2025-02-17 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494042', 'tblTempVendorCDR_20' ) start [2025-02-17 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494042', 'tblTempVendorCDR_20' ) end [2025-02-17 06:56:18] Production.INFO: ProcessCDR(1,14494042,1,1,2) [2025-02-17 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494042', 'tblTempUsageDetail_20' ) start [2025-02-17 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494042', 'tblTempUsageDetail_20' ) end [2025-02-17 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:56:21] Production.INFO: ==32290== Releasing lock... [2025-02-17 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:56:21] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:57:05 [end_date_ymd] => 2025-02-17 06:57:05 [RateCDR] => 1 ) [2025-02-17 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:57:05' and `end` < '2025-02-17 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:57:18] Production.INFO: count ==37 [2025-02-17 06:57:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:57:05 - End Time 2025-02-17 06:57:05 [2025-02-17 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494047', 'tblTempUsageDetail_20' ) start [2025-02-17 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494047', 'tblTempUsageDetail_20' ) end [2025-02-17 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494047', 'tblTempVendorCDR_20' ) start [2025-02-17 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494047', 'tblTempVendorCDR_20' ) end [2025-02-17 06:57:18] Production.INFO: ProcessCDR(1,14494047,1,1,2) [2025-02-17 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494047', 'tblTempUsageDetail_20' ) start [2025-02-17 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494047', 'tblTempUsageDetail_20' ) end [2025-02-17 06:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:57:22] Production.INFO: ==32362== Releasing lock... [2025-02-17 06:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:57:22] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:58:05 [end_date_ymd] => 2025-02-17 06:58:05 [RateCDR] => 1 ) [2025-02-17 06:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:58:05' and `end` < '2025-02-17 06:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:58:19] Production.INFO: count ==37 [2025-02-17 06:58:19] Production.ERROR: pbx CDR StartTime 2025-02-17 03:58:05 - End Time 2025-02-17 06:58:05 [2025-02-17 06:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494052', 'tblTempUsageDetail_20' ) start [2025-02-17 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494052', 'tblTempUsageDetail_20' ) end [2025-02-17 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494052', 'tblTempVendorCDR_20' ) start [2025-02-17 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494052', 'tblTempVendorCDR_20' ) end [2025-02-17 06:58:19] Production.INFO: ProcessCDR(1,14494052,1,1,2) [2025-02-17 06:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494052', 'tblTempUsageDetail_20' ) start [2025-02-17 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494052', 'tblTempUsageDetail_20' ) end [2025-02-17 06:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:58:22] Production.INFO: ==32433== Releasing lock... [2025-02-17 06:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:58:22] Production.INFO: 28 MB #Memory Used# [2025-02-17 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 03:59:05 [end_date_ymd] => 2025-02-17 06:59:05 [RateCDR] => 1 ) [2025-02-17 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 03:59:05' and `end` < '2025-02-17 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 06:59:17] Production.INFO: count ==37 [2025-02-17 06:59:18] Production.ERROR: pbx CDR StartTime 2025-02-17 03:59:05 - End Time 2025-02-17 06:59:05 [2025-02-17 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494057', 'tblTempUsageDetail_20' ) start [2025-02-17 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494057', 'tblTempUsageDetail_20' ) end [2025-02-17 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494057', 'tblTempVendorCDR_20' ) start [2025-02-17 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494057', 'tblTempVendorCDR_20' ) end [2025-02-17 06:59:18] Production.INFO: ProcessCDR(1,14494057,1,1,2) [2025-02-17 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494057', 'tblTempUsageDetail_20' ) start [2025-02-17 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494057', 'tblTempUsageDetail_20' ) end [2025-02-17 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 06:59:21] Production.INFO: ==32504== Releasing lock... [2025-02-17 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 06:59:21] Production.INFO: 28 MB #Memory Used# [2025-02-17 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:00:06 [end_date_ymd] => 2025-02-17 07:00:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 04:00:06' and `end` < '2025-02-17 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-02-17 07:00:19] Production.INFO: count ==37 [2025-02-17 07:00:19] Production.ERROR: pbx CDR StartTime 2025-02-17 04:00:06 - End Time 2025-02-17 07:00:06 [2025-02-17 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494063', 'tblTempUsageDetail_20' ) start [2025-02-17 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494063', 'tblTempUsageDetail_20' ) end [2025-02-17 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494063', 'tblTempVendorCDR_20' ) start [2025-02-17 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494063', 'tblTempVendorCDR_20' ) end [2025-02-17 07:00:19] Production.INFO: ProcessCDR(1,14494063,1,1,2) [2025-02-17 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494063', 'tblTempUsageDetail_20' ) start [2025-02-17 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494063', 'tblTempUsageDetail_20' ) end [2025-02-17 07:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:00:23] Production.INFO: ==32577== Releasing lock... [2025-02-17 07:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:00:23] Production.INFO: 28 MB #Memory Used# [2025-02-17 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:01:05 [end_date_ymd] => 2025-02-17 07:01:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 04:01:05' and `end` < '2025-02-17 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-02-17 07:01:21] Production.INFO: count ==37 [2025-02-17 07:01:21] Production.ERROR: pbx CDR StartTime 2025-02-17 04:01:05 - End Time 2025-02-17 07:01:05 [2025-02-17 07:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494068', 'tblTempUsageDetail_20' ) start [2025-02-17 07:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494068', 'tblTempUsageDetail_20' ) end [2025-02-17 07:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494068', 'tblTempVendorCDR_20' ) start [2025-02-17 07:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494068', 'tblTempVendorCDR_20' ) end [2025-02-17 07:01:21] Production.INFO: ProcessCDR(1,14494068,1,1,2) [2025-02-17 07:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494068', 'tblTempUsageDetail_20' ) start [2025-02-17 07:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494068', 'tblTempUsageDetail_20' ) end [2025-02-17 07:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:01:24] Production.INFO: ==32712== Releasing lock... [2025-02-17 07:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:01:24] Production.INFO: 28 MB #Memory Used# [2025-02-17 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:02:05 [end_date_ymd] => 2025-02-17 07:02:05 [RateCDR] => 1 ) [2025-02-17 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:02:05' and `end` < '2025-02-17 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:02:20] Production.INFO: count ==37 [2025-02-17 07:02:20] Production.ERROR: pbx CDR StartTime 2025-02-17 04:02:05 - End Time 2025-02-17 07:02:05 [2025-02-17 07:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494073', 'tblTempUsageDetail_20' ) start [2025-02-17 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494073', 'tblTempUsageDetail_20' ) end [2025-02-17 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494073', 'tblTempVendorCDR_20' ) start [2025-02-17 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494073', 'tblTempVendorCDR_20' ) end [2025-02-17 07:02:20] Production.INFO: ProcessCDR(1,14494073,1,1,2) [2025-02-17 07:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494073', 'tblTempUsageDetail_20' ) start [2025-02-17 07:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494073', 'tblTempUsageDetail_20' ) end [2025-02-17 07:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:02:24] Production.INFO: ==366== Releasing lock... [2025-02-17 07:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:02:24] Production.INFO: 28 MB #Memory Used# [2025-02-17 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:03:05 [end_date_ymd] => 2025-02-17 07:03:05 [RateCDR] => 1 ) [2025-02-17 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:03:05' and `end` < '2025-02-17 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:03:20] Production.INFO: count ==37 [2025-02-17 07:03:20] Production.ERROR: pbx CDR StartTime 2025-02-17 04:03:05 - End Time 2025-02-17 07:03:05 [2025-02-17 07:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494078', 'tblTempUsageDetail_20' ) start [2025-02-17 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494078', 'tblTempUsageDetail_20' ) end [2025-02-17 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494078', 'tblTempVendorCDR_20' ) start [2025-02-17 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494078', 'tblTempVendorCDR_20' ) end [2025-02-17 07:03:20] Production.INFO: ProcessCDR(1,14494078,1,1,2) [2025-02-17 07:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494078', 'tblTempUsageDetail_20' ) start [2025-02-17 07:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494078', 'tblTempUsageDetail_20' ) end [2025-02-17 07:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:03:24] Production.INFO: ==438== Releasing lock... [2025-02-17 07:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:03:24] Production.INFO: 28 MB #Memory Used# [2025-02-17 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:04:05 [end_date_ymd] => 2025-02-17 07:04:05 [RateCDR] => 1 ) [2025-02-17 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:04:05' and `end` < '2025-02-17 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:04:20] Production.INFO: count ==38 [2025-02-17 07:04:20] Production.ERROR: pbx CDR StartTime 2025-02-17 04:04:05 - End Time 2025-02-17 07:04:05 [2025-02-17 07:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494083', 'tblTempUsageDetail_20' ) start [2025-02-17 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494083', 'tblTempUsageDetail_20' ) end [2025-02-17 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494083', 'tblTempVendorCDR_20' ) start [2025-02-17 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494083', 'tblTempVendorCDR_20' ) end [2025-02-17 07:04:20] Production.INFO: ProcessCDR(1,14494083,1,1,2) [2025-02-17 07:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494083', 'tblTempUsageDetail_20' ) start [2025-02-17 07:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494083', 'tblTempUsageDetail_20' ) end [2025-02-17 07:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:04:25] Production.INFO: ==513== Releasing lock... [2025-02-17 07:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:04:25] Production.INFO: 28 MB #Memory Used# [2025-02-17 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:05:05 [end_date_ymd] => 2025-02-17 07:05:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 04:05:05' and `end` < '2025-02-17 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:05:20] Production.INFO: count ==38 [2025-02-17 07:05:20] Production.ERROR: pbx CDR StartTime 2025-02-17 04:05:05 - End Time 2025-02-17 07:05:05 [2025-02-17 07:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494088', 'tblTempUsageDetail_20' ) start [2025-02-17 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494088', 'tblTempUsageDetail_20' ) end [2025-02-17 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494088', 'tblTempVendorCDR_20' ) start [2025-02-17 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494088', 'tblTempVendorCDR_20' ) end [2025-02-17 07:05:20] Production.INFO: ProcessCDR(1,14494088,1,1,2) [2025-02-17 07:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494088', 'tblTempUsageDetail_20' ) start [2025-02-17 07:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494088', 'tblTempUsageDetail_20' ) end [2025-02-17 07:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:05:24] Production.INFO: ==681== Releasing lock... [2025-02-17 07:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:05:24] Production.INFO: 28 MB #Memory Used# [2025-02-17 07:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:06:06 [end_date_ymd] => 2025-02-17 07:06:06 [RateCDR] => 1 ) [2025-02-17 07:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:06:06' and `end` < '2025-02-17 07:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:06:21] Production.INFO: count ==41 [2025-02-17 07:06:21] Production.ERROR: pbx CDR StartTime 2025-02-17 04:06:06 - End Time 2025-02-17 07:06:06 [2025-02-17 07:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494093', 'tblTempUsageDetail_20' ) start [2025-02-17 07:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494093', 'tblTempUsageDetail_20' ) end [2025-02-17 07:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494093', 'tblTempVendorCDR_20' ) start [2025-02-17 07:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494093', 'tblTempVendorCDR_20' ) end [2025-02-17 07:06:21] Production.INFO: ProcessCDR(1,14494093,1,1,2) [2025-02-17 07:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494093', 'tblTempUsageDetail_20' ) start [2025-02-17 07:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494093', 'tblTempUsageDetail_20' ) end [2025-02-17 07:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:06:24] Production.INFO: ==768== Releasing lock... [2025-02-17 07:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:06:24] Production.INFO: 28 MB #Memory Used# [2025-02-17 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:07:05 [end_date_ymd] => 2025-02-17 07:07:05 [RateCDR] => 1 ) [2025-02-17 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:07:05' and `end` < '2025-02-17 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:07:19] Production.INFO: count ==41 [2025-02-17 07:07:19] Production.ERROR: pbx CDR StartTime 2025-02-17 04:07:05 - End Time 2025-02-17 07:07:05 [2025-02-17 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494098', 'tblTempUsageDetail_20' ) start [2025-02-17 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494098', 'tblTempUsageDetail_20' ) end [2025-02-17 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494098', 'tblTempVendorCDR_20' ) start [2025-02-17 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494098', 'tblTempVendorCDR_20' ) end [2025-02-17 07:07:19] Production.INFO: ProcessCDR(1,14494098,1,1,2) [2025-02-17 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494098', 'tblTempUsageDetail_20' ) start [2025-02-17 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494098', 'tblTempUsageDetail_20' ) end [2025-02-17 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:07:22] Production.INFO: ==838== Releasing lock... [2025-02-17 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:07:22] Production.INFO: 28 MB #Memory Used# [2025-02-17 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:08:05 [end_date_ymd] => 2025-02-17 07:08:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 04:08:05' and `end` < '2025-02-17 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-02-17 07:08:20] Production.INFO: count ==41 [2025-02-17 07:08:20] Production.ERROR: pbx CDR StartTime 2025-02-17 04:08:05 - End Time 2025-02-17 07:08:05 [2025-02-17 07:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494103', 'tblTempUsageDetail_20' ) start [2025-02-17 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494103', 'tblTempUsageDetail_20' ) end [2025-02-17 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494103', 'tblTempVendorCDR_20' ) start [2025-02-17 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494103', 'tblTempVendorCDR_20' ) end [2025-02-17 07:08:20] Production.INFO: ProcessCDR(1,14494103,1,1,2) [2025-02-17 07:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494103', 'tblTempUsageDetail_20' ) start [2025-02-17 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494103', 'tblTempUsageDetail_20' ) end [2025-02-17 07:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:08:23] Production.INFO: ==950== Releasing lock... [2025-02-17 07:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:08:23] Production.INFO: 28 MB #Memory Used# [2025-02-17 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:09:05 [end_date_ymd] => 2025-02-17 07:09:05 [RateCDR] => 1 ) [2025-02-17 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:09:05' and `end` < '2025-02-17 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:09:19] Production.INFO: count ==41 [2025-02-17 07:09:19] Production.ERROR: pbx CDR StartTime 2025-02-17 04:09:05 - End Time 2025-02-17 07:09:05 [2025-02-17 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494108', 'tblTempUsageDetail_20' ) start [2025-02-17 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494108', 'tblTempUsageDetail_20' ) end [2025-02-17 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494108', 'tblTempVendorCDR_20' ) start [2025-02-17 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494108', 'tblTempVendorCDR_20' ) end [2025-02-17 07:09:19] Production.INFO: ProcessCDR(1,14494108,1,1,2) [2025-02-17 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494108', 'tblTempUsageDetail_20' ) start [2025-02-17 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494108', 'tblTempUsageDetail_20' ) end [2025-02-17 07:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:09:22] Production.INFO: ==1066== Releasing lock... [2025-02-17 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:09:22] Production.INFO: 28 MB #Memory Used# [2025-02-17 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:10:06 [end_date_ymd] => 2025-02-17 07:10:06 [RateCDR] => 1 ) [2025-02-17 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:10:06' and `end` < '2025-02-17 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:10:21] Production.INFO: count ==43 [2025-02-17 07:10:21] Production.ERROR: pbx CDR StartTime 2025-02-17 04:10:06 - End Time 2025-02-17 07:10:06 [2025-02-17 07:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494114', 'tblTempUsageDetail_20' ) start [2025-02-17 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494114', 'tblTempUsageDetail_20' ) end [2025-02-17 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494114', 'tblTempVendorCDR_20' ) start [2025-02-17 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494114', 'tblTempVendorCDR_20' ) end [2025-02-17 07:10:21] Production.INFO: ProcessCDR(1,14494114,1,1,2) [2025-02-17 07:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494114', 'tblTempUsageDetail_20' ) start [2025-02-17 07:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494114', 'tblTempUsageDetail_20' ) end [2025-02-17 07:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:10:25] Production.INFO: ==1192== Releasing lock... [2025-02-17 07:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:10:25] Production.INFO: 28 MB #Memory Used# [2025-02-17 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:11:05 [end_date_ymd] => 2025-02-17 07:11:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 04:11:05' and `end` < '2025-02-17 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-02-17 07:11:18] Production.INFO: count ==43 [2025-02-17 07:11:18] Production.ERROR: pbx CDR StartTime 2025-02-17 04:11:05 - End Time 2025-02-17 07:11:05 [2025-02-17 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494119', 'tblTempUsageDetail_20' ) start [2025-02-17 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494119', 'tblTempUsageDetail_20' ) end [2025-02-17 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494119', 'tblTempVendorCDR_20' ) start [2025-02-17 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494119', 'tblTempVendorCDR_20' ) end [2025-02-17 07:11:18] Production.INFO: ProcessCDR(1,14494119,1,1,2) [2025-02-17 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494119', 'tblTempUsageDetail_20' ) start [2025-02-17 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494119', 'tblTempUsageDetail_20' ) end [2025-02-17 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:11:22] Production.INFO: ==1281== Releasing lock... [2025-02-17 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:11:22] Production.INFO: 28 MB #Memory Used# [2025-02-17 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:12:05 [end_date_ymd] => 2025-02-17 07:12:05 [RateCDR] => 1 ) [2025-02-17 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:12:05' and `end` < '2025-02-17 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:12:21] Production.INFO: count ==43 [2025-02-17 07:12:21] Production.ERROR: pbx CDR StartTime 2025-02-17 04:12:05 - End Time 2025-02-17 07:12:05 [2025-02-17 07:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494124', 'tblTempUsageDetail_20' ) start [2025-02-17 07:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494124', 'tblTempUsageDetail_20' ) end [2025-02-17 07:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494124', 'tblTempVendorCDR_20' ) start [2025-02-17 07:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494124', 'tblTempVendorCDR_20' ) end [2025-02-17 07:12:21] Production.INFO: ProcessCDR(1,14494124,1,1,2) [2025-02-17 07:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494124', 'tblTempUsageDetail_20' ) start [2025-02-17 07:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494124', 'tblTempUsageDetail_20' ) end [2025-02-17 07:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:12:24] Production.INFO: ==1428== Releasing lock... [2025-02-17 07:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:12:24] Production.INFO: 28 MB #Memory Used# [2025-02-17 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:13:05 [end_date_ymd] => 2025-02-17 07:13:05 [RateCDR] => 1 ) [2025-02-17 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:13:05' and `end` < '2025-02-17 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:13:20] Production.INFO: count ==43 [2025-02-17 07:13:20] Production.ERROR: pbx CDR StartTime 2025-02-17 04:13:05 - End Time 2025-02-17 07:13:05 [2025-02-17 07:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494129', 'tblTempUsageDetail_20' ) start [2025-02-17 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494129', 'tblTempUsageDetail_20' ) end [2025-02-17 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494129', 'tblTempVendorCDR_20' ) start [2025-02-17 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494129', 'tblTempVendorCDR_20' ) end [2025-02-17 07:13:20] Production.INFO: ProcessCDR(1,14494129,1,1,2) [2025-02-17 07:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494129', 'tblTempUsageDetail_20' ) start [2025-02-17 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494129', 'tblTempUsageDetail_20' ) end [2025-02-17 07:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:13:23] Production.INFO: ==1500== Releasing lock... [2025-02-17 07:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:13:23] Production.INFO: 28 MB #Memory Used# [2025-02-17 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:14:05 [end_date_ymd] => 2025-02-17 07:14:05 [RateCDR] => 1 ) [2025-02-17 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:14:05' and `end` < '2025-02-17 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:14:20] Production.INFO: count ==43 [2025-02-17 07:14:20] Production.ERROR: pbx CDR StartTime 2025-02-17 04:14:05 - End Time 2025-02-17 07:14:05 [2025-02-17 07:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494134', 'tblTempUsageDetail_20' ) start [2025-02-17 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494134', 'tblTempUsageDetail_20' ) end [2025-02-17 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494134', 'tblTempVendorCDR_20' ) start [2025-02-17 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494134', 'tblTempVendorCDR_20' ) end [2025-02-17 07:14:20] Production.INFO: ProcessCDR(1,14494134,1,1,2) [2025-02-17 07:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494134', 'tblTempUsageDetail_20' ) start [2025-02-17 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494134', 'tblTempUsageDetail_20' ) end [2025-02-17 07:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:14:23] Production.INFO: ==1607== Releasing lock... [2025-02-17 07:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:14:23] Production.INFO: 28 MB #Memory Used# [2025-02-17 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:15:05 [end_date_ymd] => 2025-02-17 07:15:05 [RateCDR] => 1 ) [2025-02-17 07:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:15:05' and `end` < '2025-02-17 07:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:15:21] Production.INFO: count ==43 [2025-02-17 07:15:21] Production.ERROR: pbx CDR StartTime 2025-02-17 04:15:05 - End Time 2025-02-17 07:15:05 [2025-02-17 07:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494139', 'tblTempUsageDetail_20' ) start [2025-02-17 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494139', 'tblTempUsageDetail_20' ) end [2025-02-17 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494139', 'tblTempVendorCDR_20' ) start [2025-02-17 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494139', 'tblTempVendorCDR_20' ) end [2025-02-17 07:15:21] Production.INFO: ProcessCDR(1,14494139,1,1,2) [2025-02-17 07:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494139', 'tblTempUsageDetail_20' ) start [2025-02-17 07:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494139', 'tblTempUsageDetail_20' ) end [2025-02-17 07:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:15:25] Production.INFO: ==1719== Releasing lock... [2025-02-17 07:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:15:25] Production.INFO: 28 MB #Memory Used# [2025-02-17 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:16:05 [end_date_ymd] => 2025-02-17 07:16:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 04:16:05' and `end` < '2025-02-17 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-02-17 07:16:19] Production.INFO: count ==43 [2025-02-17 07:16:19] Production.ERROR: pbx CDR StartTime 2025-02-17 04:16:05 - End Time 2025-02-17 07:16:05 [2025-02-17 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494144', 'tblTempUsageDetail_20' ) start [2025-02-17 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494144', 'tblTempUsageDetail_20' ) end [2025-02-17 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494144', 'tblTempVendorCDR_20' ) start [2025-02-17 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494144', 'tblTempVendorCDR_20' ) end [2025-02-17 07:16:19] Production.INFO: ProcessCDR(1,14494144,1,1,2) [2025-02-17 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494144', 'tblTempUsageDetail_20' ) start [2025-02-17 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494144', 'tblTempUsageDetail_20' ) end [2025-02-17 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:16:22] Production.INFO: ==1836== Releasing lock... [2025-02-17 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:16:22] Production.INFO: 28 MB #Memory Used# [2025-02-17 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:17:05 [end_date_ymd] => 2025-02-17 07:17:05 [RateCDR] => 1 ) [2025-02-17 07:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:17:05' and `end` < '2025-02-17 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:17:20] Production.INFO: count ==43 [2025-02-17 07:17:20] Production.ERROR: pbx CDR StartTime 2025-02-17 04:17:05 - End Time 2025-02-17 07:17:05 [2025-02-17 07:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494149', 'tblTempUsageDetail_20' ) start [2025-02-17 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494149', 'tblTempUsageDetail_20' ) end [2025-02-17 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494149', 'tblTempVendorCDR_20' ) start [2025-02-17 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494149', 'tblTempVendorCDR_20' ) end [2025-02-17 07:17:20] Production.INFO: ProcessCDR(1,14494149,1,1,2) [2025-02-17 07:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494149', 'tblTempUsageDetail_20' ) start [2025-02-17 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494149', 'tblTempUsageDetail_20' ) end [2025-02-17 07:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:17:23] Production.INFO: ==1907== Releasing lock... [2025-02-17 07:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:17:23] Production.INFO: 28 MB #Memory Used# [2025-02-17 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:18:05 [end_date_ymd] => 2025-02-17 07:18:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 04:18:05' and `end` < '2025-02-17 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-02-17 07:18:20] Production.INFO: count ==43 [2025-02-17 07:18:20] Production.ERROR: pbx CDR StartTime 2025-02-17 04:18:05 - End Time 2025-02-17 07:18:05 [2025-02-17 07:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494154', 'tblTempUsageDetail_20' ) start [2025-02-17 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494154', 'tblTempUsageDetail_20' ) end [2025-02-17 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494154', 'tblTempVendorCDR_20' ) start [2025-02-17 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494154', 'tblTempVendorCDR_20' ) end [2025-02-17 07:18:20] Production.INFO: ProcessCDR(1,14494154,1,1,2) [2025-02-17 07:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494154', 'tblTempUsageDetail_20' ) start [2025-02-17 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494154', 'tblTempUsageDetail_20' ) end [2025-02-17 07:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:18:23] Production.INFO: ==1980== Releasing lock... [2025-02-17 07:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:18:23] Production.INFO: 28 MB #Memory Used# [2025-02-17 07:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:19:04 [end_date_ymd] => 2025-02-17 07:19:04 [RateCDR] => 1 ) [2025-02-17 07:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:19:04' and `end` < '2025-02-17 07:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:19:18] Production.INFO: count ==43 [2025-02-17 07:19:18] Production.ERROR: pbx CDR StartTime 2025-02-17 04:19:04 - End Time 2025-02-17 07:19:04 [2025-02-17 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494159', 'tblTempUsageDetail_20' ) start [2025-02-17 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494159', 'tblTempUsageDetail_20' ) end [2025-02-17 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494159', 'tblTempVendorCDR_20' ) start [2025-02-17 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494159', 'tblTempVendorCDR_20' ) end [2025-02-17 07:19:18] Production.INFO: ProcessCDR(1,14494159,1,1,2) [2025-02-17 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494159', 'tblTempUsageDetail_20' ) start [2025-02-17 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494159', 'tblTempUsageDetail_20' ) end [2025-02-17 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:19:21] Production.INFO: ==2050== Releasing lock... [2025-02-17 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:19:21] Production.INFO: 28 MB #Memory Used# [2025-02-17 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:20:06 [end_date_ymd] => 2025-02-17 07:20:06 [RateCDR] => 1 ) [2025-02-17 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:20:06' and `end` < '2025-02-17 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:20:19] Production.INFO: count ==43 [2025-02-17 07:20:19] Production.ERROR: pbx CDR StartTime 2025-02-17 04:20:06 - End Time 2025-02-17 07:20:06 [2025-02-17 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494165', 'tblTempUsageDetail_20' ) start [2025-02-17 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494165', 'tblTempUsageDetail_20' ) end [2025-02-17 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494165', 'tblTempVendorCDR_20' ) start [2025-02-17 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494165', 'tblTempVendorCDR_20' ) end [2025-02-17 07:20:19] Production.INFO: ProcessCDR(1,14494165,1,1,2) [2025-02-17 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494165', 'tblTempUsageDetail_20' ) start [2025-02-17 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494165', 'tblTempUsageDetail_20' ) end [2025-02-17 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:20:22] Production.INFO: ==2126== Releasing lock... [2025-02-17 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:20:22] Production.INFO: 28 MB #Memory Used# [2025-02-17 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:21:05 [end_date_ymd] => 2025-02-17 07:21:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 04:21:05' and `end` < '2025-02-17 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-02-17 07:21:22] Production.INFO: count ==43 [2025-02-17 07:21:22] Production.ERROR: pbx CDR StartTime 2025-02-17 04:21:05 - End Time 2025-02-17 07:21:05 [2025-02-17 07:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494170', 'tblTempUsageDetail_20' ) start [2025-02-17 07:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494170', 'tblTempUsageDetail_20' ) end [2025-02-17 07:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494170', 'tblTempVendorCDR_20' ) start [2025-02-17 07:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494170', 'tblTempVendorCDR_20' ) end [2025-02-17 07:21:22] Production.INFO: ProcessCDR(1,14494170,1,1,2) [2025-02-17 07:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494170', 'tblTempUsageDetail_20' ) start [2025-02-17 07:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494170', 'tblTempUsageDetail_20' ) end [2025-02-17 07:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:21:25] Production.INFO: ==2202== Releasing lock... [2025-02-17 07:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:21:25] Production.INFO: 28 MB #Memory Used# [2025-02-17 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:22:05 [end_date_ymd] => 2025-02-17 07:22:05 [RateCDR] => 1 ) [2025-02-17 07:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:22:05' and `end` < '2025-02-17 07:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:22:18] Production.INFO: count ==43 [2025-02-17 07:22:18] Production.ERROR: pbx CDR StartTime 2025-02-17 04:22:05 - End Time 2025-02-17 07:22:05 [2025-02-17 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494175', 'tblTempUsageDetail_20' ) start [2025-02-17 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494175', 'tblTempUsageDetail_20' ) end [2025-02-17 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494175', 'tblTempVendorCDR_20' ) start [2025-02-17 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494175', 'tblTempVendorCDR_20' ) end [2025-02-17 07:22:18] Production.INFO: ProcessCDR(1,14494175,1,1,2) [2025-02-17 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494175', 'tblTempUsageDetail_20' ) start [2025-02-17 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494175', 'tblTempUsageDetail_20' ) end [2025-02-17 07:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:22:21] Production.INFO: ==2276== Releasing lock... [2025-02-17 07:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:22:21] Production.INFO: 28 MB #Memory Used# [2025-02-17 07:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:23:06 [end_date_ymd] => 2025-02-17 07:23:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 04:23:06' and `end` < '2025-02-17 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-02-17 07:23:18] Production.INFO: count ==44 [2025-02-17 07:23:18] Production.ERROR: pbx CDR StartTime 2025-02-17 04:23:06 - End Time 2025-02-17 07:23:06 [2025-02-17 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494180', 'tblTempUsageDetail_20' ) start [2025-02-17 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494180', 'tblTempUsageDetail_20' ) end [2025-02-17 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494180', 'tblTempVendorCDR_20' ) start [2025-02-17 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494180', 'tblTempVendorCDR_20' ) end [2025-02-17 07:23:18] Production.INFO: ProcessCDR(1,14494180,1,1,2) [2025-02-17 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494180', 'tblTempUsageDetail_20' ) start [2025-02-17 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494180', 'tblTempUsageDetail_20' ) end [2025-02-17 07:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:23:23] Production.INFO: ==2352== Releasing lock... [2025-02-17 07:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:23:23] Production.INFO: 28 MB #Memory Used# [2025-02-17 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:24:05 [end_date_ymd] => 2025-02-17 07:24:05 [RateCDR] => 1 ) [2025-02-17 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:24:05' and `end` < '2025-02-17 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:24:18] Production.INFO: count ==46 [2025-02-17 07:24:18] Production.ERROR: pbx CDR StartTime 2025-02-17 04:24:05 - End Time 2025-02-17 07:24:05 [2025-02-17 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494185', 'tblTempUsageDetail_20' ) start [2025-02-17 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494185', 'tblTempUsageDetail_20' ) end [2025-02-17 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494185', 'tblTempVendorCDR_20' ) start [2025-02-17 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494185', 'tblTempVendorCDR_20' ) end [2025-02-17 07:24:18] Production.INFO: ProcessCDR(1,14494185,1,1,2) [2025-02-17 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494185', 'tblTempUsageDetail_20' ) start [2025-02-17 07:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494185', 'tblTempUsageDetail_20' ) end [2025-02-17 07:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:24:23] Production.INFO: ==2427== Releasing lock... [2025-02-17 07:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:24:23] Production.INFO: 28 MB #Memory Used# [2025-02-17 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:25:05 [end_date_ymd] => 2025-02-17 07:25:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 04:25:05' and `end` < '2025-02-17 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-02-17 07:25:18] Production.INFO: count ==46 [2025-02-17 07:25:18] Production.ERROR: pbx CDR StartTime 2025-02-17 04:25:05 - End Time 2025-02-17 07:25:05 [2025-02-17 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494190', 'tblTempUsageDetail_20' ) start [2025-02-17 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494190', 'tblTempUsageDetail_20' ) end [2025-02-17 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494190', 'tblTempVendorCDR_20' ) start [2025-02-17 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494190', 'tblTempVendorCDR_20' ) end [2025-02-17 07:25:18] Production.INFO: ProcessCDR(1,14494190,1,1,2) [2025-02-17 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494190', 'tblTempUsageDetail_20' ) start [2025-02-17 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494190', 'tblTempUsageDetail_20' ) end [2025-02-17 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:25:21] Production.INFO: ==2499== Releasing lock... [2025-02-17 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:25:21] Production.INFO: 28 MB #Memory Used# [2025-02-17 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:26:05 [end_date_ymd] => 2025-02-17 07:26:05 [RateCDR] => 1 ) [2025-02-17 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:26:05' and `end` < '2025-02-17 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:26:18] Production.INFO: count ==48 [2025-02-17 07:26:18] Production.ERROR: pbx CDR StartTime 2025-02-17 04:26:05 - End Time 2025-02-17 07:26:05 [2025-02-17 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494195', 'tblTempUsageDetail_20' ) start [2025-02-17 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494195', 'tblTempUsageDetail_20' ) end [2025-02-17 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494195', 'tblTempVendorCDR_20' ) start [2025-02-17 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494195', 'tblTempVendorCDR_20' ) end [2025-02-17 07:26:18] Production.INFO: ProcessCDR(1,14494195,1,1,2) [2025-02-17 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494195', 'tblTempUsageDetail_20' ) start [2025-02-17 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494195', 'tblTempUsageDetail_20' ) end [2025-02-17 07:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:26:22] Production.INFO: ==2611== Releasing lock... [2025-02-17 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:26:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-17 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:27:05 [end_date_ymd] => 2025-02-17 07:27:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 04:27:05' and `end` < '2025-02-17 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-02-17 07:27:18] Production.INFO: count ==50 [2025-02-17 07:27:18] Production.ERROR: pbx CDR StartTime 2025-02-17 04:27:05 - End Time 2025-02-17 07:27:05 [2025-02-17 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494200', 'tblTempUsageDetail_20' ) start [2025-02-17 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494200', 'tblTempUsageDetail_20' ) end [2025-02-17 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494200', 'tblTempVendorCDR_20' ) start [2025-02-17 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494200', 'tblTempVendorCDR_20' ) end [2025-02-17 07:27:18] Production.INFO: ProcessCDR(1,14494200,1,1,2) [2025-02-17 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494200', 'tblTempUsageDetail_20' ) start [2025-02-17 07:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494200', 'tblTempUsageDetail_20' ) end [2025-02-17 07:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:27:24] Production.INFO: ==2689== Releasing lock... [2025-02-17 07:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:27:24] Production.INFO: 28.25 MB #Memory Used# [2025-02-17 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:28:05 [end_date_ymd] => 2025-02-17 07:28:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 04:28:05' and `end` < '2025-02-17 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-02-17 07:28:18] Production.INFO: count ==50 [2025-02-17 07:28:18] Production.ERROR: pbx CDR StartTime 2025-02-17 04:28:05 - End Time 2025-02-17 07:28:05 [2025-02-17 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494205', 'tblTempUsageDetail_20' ) start [2025-02-17 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494205', 'tblTempUsageDetail_20' ) end [2025-02-17 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494205', 'tblTempVendorCDR_20' ) start [2025-02-17 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494205', 'tblTempVendorCDR_20' ) end [2025-02-17 07:28:18] Production.INFO: ProcessCDR(1,14494205,1,1,2) [2025-02-17 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494205', 'tblTempUsageDetail_20' ) start [2025-02-17 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494205', 'tblTempUsageDetail_20' ) end [2025-02-17 07:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:28:22] Production.INFO: ==2769== Releasing lock... [2025-02-17 07:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:28:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-17 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:29:05 [end_date_ymd] => 2025-02-17 07:29:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 04:29:05' and `end` < '2025-02-17 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-02-17 07:29:18] Production.INFO: count ==52 [2025-02-17 07:29:18] Production.ERROR: pbx CDR StartTime 2025-02-17 04:29:05 - End Time 2025-02-17 07:29:05 [2025-02-17 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494210', 'tblTempUsageDetail_20' ) start [2025-02-17 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494210', 'tblTempUsageDetail_20' ) end [2025-02-17 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494210', 'tblTempVendorCDR_20' ) start [2025-02-17 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494210', 'tblTempVendorCDR_20' ) end [2025-02-17 07:29:18] Production.INFO: ProcessCDR(1,14494210,1,1,2) [2025-02-17 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494210', 'tblTempUsageDetail_20' ) start [2025-02-17 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494210', 'tblTempUsageDetail_20' ) end [2025-02-17 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:29:22] Production.INFO: ==2846== Releasing lock... [2025-02-17 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:29:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-17 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:30:06 [end_date_ymd] => 2025-02-17 07:30:06 [RateCDR] => 1 ) [2025-02-17 07:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:30:06' and `end` < '2025-02-17 07:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:30:19] Production.INFO: count ==49 [2025-02-17 07:30:19] Production.ERROR: pbx CDR StartTime 2025-02-17 04:30:06 - End Time 2025-02-17 07:30:06 [2025-02-17 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494216', 'tblTempUsageDetail_20' ) start [2025-02-17 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494216', 'tblTempUsageDetail_20' ) end [2025-02-17 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494216', 'tblTempVendorCDR_20' ) start [2025-02-17 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494216', 'tblTempVendorCDR_20' ) end [2025-02-17 07:30:19] Production.INFO: ProcessCDR(1,14494216,1,1,2) [2025-02-17 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494216', 'tblTempUsageDetail_20' ) start [2025-02-17 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494216', 'tblTempUsageDetail_20' ) end [2025-02-17 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:30:22] Production.INFO: ==2920== Releasing lock... [2025-02-17 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-17 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:31:05 [end_date_ymd] => 2025-02-17 07:31:05 [RateCDR] => 1 ) [2025-02-17 07:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:31:05' and `end` < '2025-02-17 07:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:31:18] Production.INFO: count ==49 [2025-02-17 07:31:18] Production.ERROR: pbx CDR StartTime 2025-02-17 04:31:05 - End Time 2025-02-17 07:31:05 [2025-02-17 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494221', 'tblTempUsageDetail_20' ) start [2025-02-17 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494221', 'tblTempUsageDetail_20' ) end [2025-02-17 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494221', 'tblTempVendorCDR_20' ) start [2025-02-17 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494221', 'tblTempVendorCDR_20' ) end [2025-02-17 07:31:18] Production.INFO: ProcessCDR(1,14494221,1,1,2) [2025-02-17 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494221', 'tblTempUsageDetail_20' ) start [2025-02-17 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494221', 'tblTempUsageDetail_20' ) end [2025-02-17 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:31:22] Production.INFO: ==2997== Releasing lock... [2025-02-17 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:31:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-17 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:32:05 [end_date_ymd] => 2025-02-17 07:32:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 04:32:05' and `end` < '2025-02-17 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-02-17 07:32:19] Production.INFO: count ==49 [2025-02-17 07:32:19] Production.ERROR: pbx CDR StartTime 2025-02-17 04:32:05 - End Time 2025-02-17 07:32:05 [2025-02-17 07:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494226', 'tblTempUsageDetail_20' ) start [2025-02-17 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494226', 'tblTempUsageDetail_20' ) end [2025-02-17 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494226', 'tblTempVendorCDR_20' ) start [2025-02-17 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494226', 'tblTempVendorCDR_20' ) end [2025-02-17 07:32:19] Production.INFO: ProcessCDR(1,14494226,1,1,2) [2025-02-17 07:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494226', 'tblTempUsageDetail_20' ) start [2025-02-17 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494226', 'tblTempUsageDetail_20' ) end [2025-02-17 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:32:22] Production.INFO: ==3067== Releasing lock... [2025-02-17 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:32:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-17 07:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:33:06 [end_date_ymd] => 2025-02-17 07:33:06 [RateCDR] => 1 ) [2025-02-17 07:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:33:06' and `end` < '2025-02-17 07:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:33:19] Production.INFO: count ==49 [2025-02-17 07:33:19] Production.ERROR: pbx CDR StartTime 2025-02-17 04:33:06 - End Time 2025-02-17 07:33:06 [2025-02-17 07:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494231', 'tblTempUsageDetail_20' ) start [2025-02-17 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494231', 'tblTempUsageDetail_20' ) end [2025-02-17 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494231', 'tblTempVendorCDR_20' ) start [2025-02-17 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494231', 'tblTempVendorCDR_20' ) end [2025-02-17 07:33:19] Production.INFO: ProcessCDR(1,14494231,1,1,2) [2025-02-17 07:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494231', 'tblTempUsageDetail_20' ) start [2025-02-17 07:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494231', 'tblTempUsageDetail_20' ) end [2025-02-17 07:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:33:23] Production.INFO: ==3142== Releasing lock... [2025-02-17 07:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:33:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-17 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:34:05 [end_date_ymd] => 2025-02-17 07:34:05 [RateCDR] => 1 ) [2025-02-17 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:34:05' and `end` < '2025-02-17 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:34:18] Production.INFO: count ==49 [2025-02-17 07:34:18] Production.ERROR: pbx CDR StartTime 2025-02-17 04:34:05 - End Time 2025-02-17 07:34:05 [2025-02-17 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494236', 'tblTempUsageDetail_20' ) start [2025-02-17 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494236', 'tblTempUsageDetail_20' ) end [2025-02-17 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494236', 'tblTempVendorCDR_20' ) start [2025-02-17 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494236', 'tblTempVendorCDR_20' ) end [2025-02-17 07:34:18] Production.INFO: ProcessCDR(1,14494236,1,1,2) [2025-02-17 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494236', 'tblTempUsageDetail_20' ) start [2025-02-17 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494236', 'tblTempUsageDetail_20' ) end [2025-02-17 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:34:22] Production.INFO: ==3215== Releasing lock... [2025-02-17 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:34:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-17 07:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:35:06 [end_date_ymd] => 2025-02-17 07:35:06 [RateCDR] => 1 ) [2025-02-17 07:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:35:06' and `end` < '2025-02-17 07:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:35:18] Production.INFO: count ==49 [2025-02-17 07:35:18] Production.ERROR: pbx CDR StartTime 2025-02-17 04:35:06 - End Time 2025-02-17 07:35:06 [2025-02-17 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494241', 'tblTempUsageDetail_20' ) start [2025-02-17 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494241', 'tblTempUsageDetail_20' ) end [2025-02-17 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494241', 'tblTempVendorCDR_20' ) start [2025-02-17 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494241', 'tblTempVendorCDR_20' ) end [2025-02-17 07:35:18] Production.INFO: ProcessCDR(1,14494241,1,1,2) [2025-02-17 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494241', 'tblTempUsageDetail_20' ) start [2025-02-17 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494241', 'tblTempUsageDetail_20' ) end [2025-02-17 07:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:35:22] Production.INFO: ==3288== Releasing lock... [2025-02-17 07:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:35:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-17 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:36:05 [end_date_ymd] => 2025-02-17 07:36:05 [RateCDR] => 1 ) [2025-02-17 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:36:05' and `end` < '2025-02-17 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:36:19] Production.INFO: count ==49 [2025-02-17 07:36:19] Production.ERROR: pbx CDR StartTime 2025-02-17 04:36:05 - End Time 2025-02-17 07:36:05 [2025-02-17 07:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494246', 'tblTempUsageDetail_20' ) start [2025-02-17 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494246', 'tblTempUsageDetail_20' ) end [2025-02-17 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494246', 'tblTempVendorCDR_20' ) start [2025-02-17 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494246', 'tblTempVendorCDR_20' ) end [2025-02-17 07:36:19] Production.INFO: ProcessCDR(1,14494246,1,1,2) [2025-02-17 07:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494246', 'tblTempUsageDetail_20' ) start [2025-02-17 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494246', 'tblTempUsageDetail_20' ) end [2025-02-17 07:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:36:22] Production.INFO: ==3360== Releasing lock... [2025-02-17 07:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:36:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-17 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:37:05 [end_date_ymd] => 2025-02-17 07:37:05 [RateCDR] => 1 ) [2025-02-17 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:37:05' and `end` < '2025-02-17 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:37:19] Production.INFO: count ==49 [2025-02-17 07:37:19] Production.ERROR: pbx CDR StartTime 2025-02-17 04:37:05 - End Time 2025-02-17 07:37:05 [2025-02-17 07:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494251', 'tblTempUsageDetail_20' ) start [2025-02-17 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494251', 'tblTempUsageDetail_20' ) end [2025-02-17 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494251', 'tblTempVendorCDR_20' ) start [2025-02-17 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494251', 'tblTempVendorCDR_20' ) end [2025-02-17 07:37:19] Production.INFO: ProcessCDR(1,14494251,1,1,2) [2025-02-17 07:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494251', 'tblTempUsageDetail_20' ) start [2025-02-17 07:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494251', 'tblTempUsageDetail_20' ) end [2025-02-17 07:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:37:23] Production.INFO: ==3432== Releasing lock... [2025-02-17 07:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:37:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-17 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:38:05 [end_date_ymd] => 2025-02-17 07:38:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 04:38:05' and `end` < '2025-02-17 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-02-17 07:38:19] Production.INFO: count ==49 [2025-02-17 07:38:19] Production.ERROR: pbx CDR StartTime 2025-02-17 04:38:05 - End Time 2025-02-17 07:38:05 [2025-02-17 07:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494256', 'tblTempUsageDetail_20' ) start [2025-02-17 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494256', 'tblTempUsageDetail_20' ) end [2025-02-17 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494256', 'tblTempVendorCDR_20' ) start [2025-02-17 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494256', 'tblTempVendorCDR_20' ) end [2025-02-17 07:38:19] Production.INFO: ProcessCDR(1,14494256,1,1,2) [2025-02-17 07:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494256', 'tblTempUsageDetail_20' ) start [2025-02-17 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494256', 'tblTempUsageDetail_20' ) end [2025-02-17 07:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:38:22] Production.INFO: ==3507== Releasing lock... [2025-02-17 07:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:38:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-17 07:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:39:06 [end_date_ymd] => 2025-02-17 07:39:06 [RateCDR] => 1 ) [2025-02-17 07:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:39:06' and `end` < '2025-02-17 07:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:39:19] Production.INFO: count ==49 [2025-02-17 07:39:19] Production.ERROR: pbx CDR StartTime 2025-02-17 04:39:06 - End Time 2025-02-17 07:39:06 [2025-02-17 07:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494261', 'tblTempUsageDetail_20' ) start [2025-02-17 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494261', 'tblTempUsageDetail_20' ) end [2025-02-17 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494261', 'tblTempVendorCDR_20' ) start [2025-02-17 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494261', 'tblTempVendorCDR_20' ) end [2025-02-17 07:39:19] Production.INFO: ProcessCDR(1,14494261,1,1,2) [2025-02-17 07:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494261', 'tblTempUsageDetail_20' ) start [2025-02-17 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494261', 'tblTempUsageDetail_20' ) end [2025-02-17 07:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:39:22] Production.INFO: ==3579== Releasing lock... [2025-02-17 07:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:39:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-17 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:40:06 [end_date_ymd] => 2025-02-17 07:40:06 [RateCDR] => 1 ) [2025-02-17 07:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:40:06' and `end` < '2025-02-17 07:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:40:19] Production.INFO: count ==57 [2025-02-17 07:40:19] Production.ERROR: pbx CDR StartTime 2025-02-17 04:40:06 - End Time 2025-02-17 07:40:06 [2025-02-17 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494267', 'tblTempUsageDetail_20' ) start [2025-02-17 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494267', 'tblTempUsageDetail_20' ) end [2025-02-17 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494267', 'tblTempVendorCDR_20' ) start [2025-02-17 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494267', 'tblTempVendorCDR_20' ) end [2025-02-17 07:40:19] Production.INFO: ProcessCDR(1,14494267,1,1,2) [2025-02-17 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494267', 'tblTempUsageDetail_20' ) start [2025-02-17 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494267', 'tblTempUsageDetail_20' ) end [2025-02-17 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:40:22] Production.INFO: ==3655== Releasing lock... [2025-02-17 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:40:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-17 07:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:41:06 [end_date_ymd] => 2025-02-17 07:41:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 04:41:06' and `end` < '2025-02-17 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-02-17 07:41:20] Production.INFO: count ==60 [2025-02-17 07:41:20] Production.ERROR: pbx CDR StartTime 2025-02-17 04:41:06 - End Time 2025-02-17 07:41:06 [2025-02-17 07:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494272', 'tblTempUsageDetail_20' ) start [2025-02-17 07:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494272', 'tblTempUsageDetail_20' ) end [2025-02-17 07:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494272', 'tblTempVendorCDR_20' ) start [2025-02-17 07:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494272', 'tblTempVendorCDR_20' ) end [2025-02-17 07:41:20] Production.INFO: ProcessCDR(1,14494272,1,1,2) [2025-02-17 07:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494272', 'tblTempUsageDetail_20' ) start [2025-02-17 07:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494272', 'tblTempUsageDetail_20' ) end [2025-02-17 07:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:41:23] Production.INFO: ==3768== Releasing lock... [2025-02-17 07:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:41:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-17 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:42:05 [end_date_ymd] => 2025-02-17 07:42:05 [RateCDR] => 1 ) [2025-02-17 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:42:05' and `end` < '2025-02-17 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:42:20] Production.INFO: count ==60 [2025-02-17 07:42:20] Production.ERROR: pbx CDR StartTime 2025-02-17 04:42:05 - End Time 2025-02-17 07:42:05 [2025-02-17 07:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494277', 'tblTempUsageDetail_20' ) start [2025-02-17 07:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494277', 'tblTempUsageDetail_20' ) end [2025-02-17 07:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494277', 'tblTempVendorCDR_20' ) start [2025-02-17 07:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494277', 'tblTempVendorCDR_20' ) end [2025-02-17 07:42:20] Production.INFO: ProcessCDR(1,14494277,1,1,2) [2025-02-17 07:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494277', 'tblTempUsageDetail_20' ) start [2025-02-17 07:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494277', 'tblTempUsageDetail_20' ) end [2025-02-17 07:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:42:23] Production.INFO: ==3840== Releasing lock... [2025-02-17 07:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:42:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-17 07:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:43:06 [end_date_ymd] => 2025-02-17 07:43:06 [RateCDR] => 1 ) [2025-02-17 07:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:43:06' and `end` < '2025-02-17 07:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:43:19] Production.INFO: count ==60 [2025-02-17 07:43:19] Production.ERROR: pbx CDR StartTime 2025-02-17 04:43:06 - End Time 2025-02-17 07:43:06 [2025-02-17 07:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494282', 'tblTempUsageDetail_20' ) start [2025-02-17 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494282', 'tblTempUsageDetail_20' ) end [2025-02-17 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494282', 'tblTempVendorCDR_20' ) start [2025-02-17 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494282', 'tblTempVendorCDR_20' ) end [2025-02-17 07:43:19] Production.INFO: ProcessCDR(1,14494282,1,1,2) [2025-02-17 07:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494282', 'tblTempUsageDetail_20' ) start [2025-02-17 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494282', 'tblTempUsageDetail_20' ) end [2025-02-17 07:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:43:22] Production.INFO: ==3911== Releasing lock... [2025-02-17 07:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:43:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-17 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:44:05 [end_date_ymd] => 2025-02-17 07:44:05 [RateCDR] => 1 ) [2025-02-17 07:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:44:05' and `end` < '2025-02-17 07:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:44:18] Production.INFO: count ==60 [2025-02-17 07:44:18] Production.ERROR: pbx CDR StartTime 2025-02-17 04:44:05 - End Time 2025-02-17 07:44:05 [2025-02-17 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494287', 'tblTempUsageDetail_20' ) start [2025-02-17 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494287', 'tblTempUsageDetail_20' ) end [2025-02-17 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494287', 'tblTempVendorCDR_20' ) start [2025-02-17 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494287', 'tblTempVendorCDR_20' ) end [2025-02-17 07:44:18] Production.INFO: ProcessCDR(1,14494287,1,1,2) [2025-02-17 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494287', 'tblTempUsageDetail_20' ) start [2025-02-17 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494287', 'tblTempUsageDetail_20' ) end [2025-02-17 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:44:21] Production.INFO: ==3981== Releasing lock... [2025-02-17 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:44:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-17 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:45:05 [end_date_ymd] => 2025-02-17 07:45:05 [RateCDR] => 1 ) [2025-02-17 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:45:05' and `end` < '2025-02-17 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:45:18] Production.INFO: count ==60 [2025-02-17 07:45:18] Production.ERROR: pbx CDR StartTime 2025-02-17 04:45:05 - End Time 2025-02-17 07:45:05 [2025-02-17 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494289', 'tblTempUsageDetail_20' ) start [2025-02-17 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494289', 'tblTempUsageDetail_20' ) end [2025-02-17 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494289', 'tblTempVendorCDR_20' ) start [2025-02-17 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494289', 'tblTempVendorCDR_20' ) end [2025-02-17 07:45:18] Production.INFO: ProcessCDR(1,14494289,1,1,2) [2025-02-17 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494289', 'tblTempUsageDetail_20' ) start [2025-02-17 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494289', 'tblTempUsageDetail_20' ) end [2025-02-17 07:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:45:22] Production.INFO: ==4060== Releasing lock... [2025-02-17 07:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:45:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-17 07:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:46:06 [end_date_ymd] => 2025-02-17 07:46:06 [RateCDR] => 1 ) [2025-02-17 07:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:46:06' and `end` < '2025-02-17 07:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:46:18] Production.INFO: count ==60 [2025-02-17 07:46:18] Production.ERROR: pbx CDR StartTime 2025-02-17 04:46:06 - End Time 2025-02-17 07:46:06 [2025-02-17 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494297', 'tblTempUsageDetail_20' ) start [2025-02-17 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494297', 'tblTempUsageDetail_20' ) end [2025-02-17 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494297', 'tblTempVendorCDR_20' ) start [2025-02-17 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494297', 'tblTempVendorCDR_20' ) end [2025-02-17 07:46:18] Production.INFO: ProcessCDR(1,14494297,1,1,2) [2025-02-17 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494297', 'tblTempUsageDetail_20' ) start [2025-02-17 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494297', 'tblTempUsageDetail_20' ) end [2025-02-17 07:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:46:22] Production.INFO: ==4131== Releasing lock... [2025-02-17 07:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:46:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-17 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:47:05 [end_date_ymd] => 2025-02-17 07:47:05 [RateCDR] => 1 ) [2025-02-17 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:47:05' and `end` < '2025-02-17 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:47:18] Production.INFO: count ==60 [2025-02-17 07:47:18] Production.ERROR: pbx CDR StartTime 2025-02-17 04:47:05 - End Time 2025-02-17 07:47:05 [2025-02-17 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494302', 'tblTempUsageDetail_20' ) start [2025-02-17 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494302', 'tblTempUsageDetail_20' ) end [2025-02-17 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494302', 'tblTempVendorCDR_20' ) start [2025-02-17 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494302', 'tblTempVendorCDR_20' ) end [2025-02-17 07:47:18] Production.INFO: ProcessCDR(1,14494302,1,1,2) [2025-02-17 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494302', 'tblTempUsageDetail_20' ) start [2025-02-17 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494302', 'tblTempUsageDetail_20' ) end [2025-02-17 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:47:21] Production.INFO: ==4205== Releasing lock... [2025-02-17 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:47:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-17 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:48:05 [end_date_ymd] => 2025-02-17 07:48:05 [RateCDR] => 1 ) [2025-02-17 07:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:48:05' and `end` < '2025-02-17 07:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:48:18] Production.INFO: count ==60 [2025-02-17 07:48:18] Production.ERROR: pbx CDR StartTime 2025-02-17 04:48:05 - End Time 2025-02-17 07:48:05 [2025-02-17 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494307', 'tblTempUsageDetail_20' ) start [2025-02-17 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494307', 'tblTempUsageDetail_20' ) end [2025-02-17 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494307', 'tblTempVendorCDR_20' ) start [2025-02-17 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494307', 'tblTempVendorCDR_20' ) end [2025-02-17 07:48:18] Production.INFO: ProcessCDR(1,14494307,1,1,2) [2025-02-17 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494307', 'tblTempUsageDetail_20' ) start [2025-02-17 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494307', 'tblTempUsageDetail_20' ) end [2025-02-17 07:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:48:22] Production.INFO: ==4275== Releasing lock... [2025-02-17 07:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:48:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-17 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:49:05 [end_date_ymd] => 2025-02-17 07:49:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 04:49:05' and `end` < '2025-02-17 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-02-17 07:49:19] Production.INFO: count ==61 [2025-02-17 07:49:19] Production.ERROR: pbx CDR StartTime 2025-02-17 04:49:05 - End Time 2025-02-17 07:49:05 [2025-02-17 07:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494312', 'tblTempUsageDetail_20' ) start [2025-02-17 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494312', 'tblTempUsageDetail_20' ) end [2025-02-17 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494312', 'tblTempVendorCDR_20' ) start [2025-02-17 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494312', 'tblTempVendorCDR_20' ) end [2025-02-17 07:49:19] Production.INFO: ProcessCDR(1,14494312,1,1,2) [2025-02-17 07:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494312', 'tblTempUsageDetail_20' ) start [2025-02-17 07:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494312', 'tblTempUsageDetail_20' ) end [2025-02-17 07:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:49:23] Production.INFO: ==4354== Releasing lock... [2025-02-17 07:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:49:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-17 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:50:06 [end_date_ymd] => 2025-02-17 07:50:06 [RateCDR] => 1 ) [2025-02-17 07:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:50:06' and `end` < '2025-02-17 07:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:50:19] Production.INFO: count ==67 [2025-02-17 07:50:19] Production.ERROR: pbx CDR StartTime 2025-02-17 04:50:06 - End Time 2025-02-17 07:50:06 [2025-02-17 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494318', 'tblTempUsageDetail_20' ) start [2025-02-17 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494318', 'tblTempUsageDetail_20' ) end [2025-02-17 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494318', 'tblTempVendorCDR_20' ) start [2025-02-17 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494318', 'tblTempVendorCDR_20' ) end [2025-02-17 07:50:19] Production.INFO: ProcessCDR(1,14494318,1,1,2) [2025-02-17 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494318', 'tblTempUsageDetail_20' ) start [2025-02-17 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494318', 'tblTempUsageDetail_20' ) end [2025-02-17 07:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:50:23] Production.INFO: ==4429== Releasing lock... [2025-02-17 07:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:50:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-17 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:51:05 [end_date_ymd] => 2025-02-17 07:51:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 04:51:05' and `end` < '2025-02-17 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-02-17 07:51:19] Production.INFO: count ==67 [2025-02-17 07:51:19] Production.ERROR: pbx CDR StartTime 2025-02-17 04:51:05 - End Time 2025-02-17 07:51:05 [2025-02-17 07:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494323', 'tblTempUsageDetail_20' ) start [2025-02-17 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494323', 'tblTempUsageDetail_20' ) end [2025-02-17 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494323', 'tblTempVendorCDR_20' ) start [2025-02-17 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494323', 'tblTempVendorCDR_20' ) end [2025-02-17 07:51:19] Production.INFO: ProcessCDR(1,14494323,1,1,2) [2025-02-17 07:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494323', 'tblTempUsageDetail_20' ) start [2025-02-17 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494323', 'tblTempUsageDetail_20' ) end [2025-02-17 07:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:51:22] Production.INFO: ==4504== Releasing lock... [2025-02-17 07:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:51:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-17 07:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:52:05 [end_date_ymd] => 2025-02-17 07:52:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 04:52:05' and `end` < '2025-02-17 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:52:18] Production.INFO: count ==67 [2025-02-17 07:52:18] Production.ERROR: pbx CDR StartTime 2025-02-17 04:52:05 - End Time 2025-02-17 07:52:05 [2025-02-17 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494328', 'tblTempUsageDetail_20' ) start [2025-02-17 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494328', 'tblTempUsageDetail_20' ) end [2025-02-17 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494328', 'tblTempVendorCDR_20' ) start [2025-02-17 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494328', 'tblTempVendorCDR_20' ) end [2025-02-17 07:52:18] Production.INFO: ProcessCDR(1,14494328,1,1,2) [2025-02-17 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494328', 'tblTempUsageDetail_20' ) start [2025-02-17 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494328', 'tblTempUsageDetail_20' ) end [2025-02-17 07:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:52:22] Production.INFO: ==4579== Releasing lock... [2025-02-17 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:52:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-17 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:53:05 [end_date_ymd] => 2025-02-17 07:53:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 04:53:05' and `end` < '2025-02-17 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-02-17 07:53:19] Production.INFO: count ==67 [2025-02-17 07:53:19] Production.ERROR: pbx CDR StartTime 2025-02-17 04:53:05 - End Time 2025-02-17 07:53:05 [2025-02-17 07:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494333', 'tblTempUsageDetail_20' ) start [2025-02-17 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494333', 'tblTempUsageDetail_20' ) end [2025-02-17 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494333', 'tblTempVendorCDR_20' ) start [2025-02-17 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494333', 'tblTempVendorCDR_20' ) end [2025-02-17 07:53:19] Production.INFO: ProcessCDR(1,14494333,1,1,2) [2025-02-17 07:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494333', 'tblTempUsageDetail_20' ) start [2025-02-17 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494333', 'tblTempUsageDetail_20' ) end [2025-02-17 07:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:53:22] Production.INFO: ==4656== Releasing lock... [2025-02-17 07:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:53:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-17 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:54:05 [end_date_ymd] => 2025-02-17 07:54:05 [RateCDR] => 1 ) [2025-02-17 07:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:54:05' and `end` < '2025-02-17 07:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:54:19] Production.INFO: count ==67 [2025-02-17 07:54:19] Production.ERROR: pbx CDR StartTime 2025-02-17 04:54:05 - End Time 2025-02-17 07:54:05 [2025-02-17 07:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494338', 'tblTempUsageDetail_20' ) start [2025-02-17 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494338', 'tblTempUsageDetail_20' ) end [2025-02-17 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494338', 'tblTempVendorCDR_20' ) start [2025-02-17 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494338', 'tblTempVendorCDR_20' ) end [2025-02-17 07:54:19] Production.INFO: ProcessCDR(1,14494338,1,1,2) [2025-02-17 07:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494338', 'tblTempUsageDetail_20' ) start [2025-02-17 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494338', 'tblTempUsageDetail_20' ) end [2025-02-17 07:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:54:22] Production.INFO: ==4728== Releasing lock... [2025-02-17 07:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:54:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-17 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:55:05 [end_date_ymd] => 2025-02-17 07:55:05 [RateCDR] => 1 ) [2025-02-17 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:55:05' and `end` < '2025-02-17 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:55:18] Production.INFO: count ==70 [2025-02-17 07:55:18] Production.ERROR: pbx CDR StartTime 2025-02-17 04:55:05 - End Time 2025-02-17 07:55:05 [2025-02-17 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494343', 'tblTempUsageDetail_20' ) start [2025-02-17 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494343', 'tblTempUsageDetail_20' ) end [2025-02-17 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494343', 'tblTempVendorCDR_20' ) start [2025-02-17 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494343', 'tblTempVendorCDR_20' ) end [2025-02-17 07:55:18] Production.INFO: ProcessCDR(1,14494343,1,1,2) [2025-02-17 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494343', 'tblTempUsageDetail_20' ) start [2025-02-17 07:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494343', 'tblTempUsageDetail_20' ) end [2025-02-17 07:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:55:23] Production.INFO: ==4799== Releasing lock... [2025-02-17 07:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:55:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-17 07:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:56:06 [end_date_ymd] => 2025-02-17 07:56:06 [RateCDR] => 1 ) [2025-02-17 07:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:56:06' and `end` < '2025-02-17 07:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:56:18] Production.INFO: count ==70 [2025-02-17 07:56:18] Production.ERROR: pbx CDR StartTime 2025-02-17 04:56:06 - End Time 2025-02-17 07:56:06 [2025-02-17 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494348', 'tblTempUsageDetail_20' ) start [2025-02-17 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494348', 'tblTempUsageDetail_20' ) end [2025-02-17 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494348', 'tblTempVendorCDR_20' ) start [2025-02-17 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494348', 'tblTempVendorCDR_20' ) end [2025-02-17 07:56:18] Production.INFO: ProcessCDR(1,14494348,1,1,2) [2025-02-17 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494348', 'tblTempUsageDetail_20' ) start [2025-02-17 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494348', 'tblTempUsageDetail_20' ) end [2025-02-17 07:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:56:22] Production.INFO: ==4877== Releasing lock... [2025-02-17 07:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:56:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-17 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:57:05 [end_date_ymd] => 2025-02-17 07:57:05 [RateCDR] => 1 ) [2025-02-17 07:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:57:05' and `end` < '2025-02-17 07:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:57:19] Production.INFO: count ==70 [2025-02-17 07:57:19] Production.ERROR: pbx CDR StartTime 2025-02-17 04:57:05 - End Time 2025-02-17 07:57:05 [2025-02-17 07:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494353', 'tblTempUsageDetail_20' ) start [2025-02-17 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494353', 'tblTempUsageDetail_20' ) end [2025-02-17 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494353', 'tblTempVendorCDR_20' ) start [2025-02-17 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494353', 'tblTempVendorCDR_20' ) end [2025-02-17 07:57:19] Production.INFO: ProcessCDR(1,14494353,1,1,2) [2025-02-17 07:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494353', 'tblTempUsageDetail_20' ) start [2025-02-17 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494353', 'tblTempUsageDetail_20' ) end [2025-02-17 07:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:57:22] Production.INFO: ==4986== Releasing lock... [2025-02-17 07:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:57:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-17 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:58:05 [end_date_ymd] => 2025-02-17 07:58:05 [RateCDR] => 1 ) [2025-02-17 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:58:05' and `end` < '2025-02-17 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:58:18] Production.INFO: count ==72 [2025-02-17 07:58:18] Production.ERROR: pbx CDR StartTime 2025-02-17 04:58:05 - End Time 2025-02-17 07:58:05 [2025-02-17 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494358', 'tblTempUsageDetail_20' ) start [2025-02-17 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494358', 'tblTempUsageDetail_20' ) end [2025-02-17 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494358', 'tblTempVendorCDR_20' ) start [2025-02-17 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494358', 'tblTempVendorCDR_20' ) end [2025-02-17 07:58:18] Production.INFO: ProcessCDR(1,14494358,1,1,2) [2025-02-17 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494358', 'tblTempUsageDetail_20' ) start [2025-02-17 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494358', 'tblTempUsageDetail_20' ) end [2025-02-17 07:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:58:23] Production.INFO: ==5059== Releasing lock... [2025-02-17 07:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:58:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-17 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 04:59:05 [end_date_ymd] => 2025-02-17 07:59:05 [RateCDR] => 1 ) [2025-02-17 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 04:59:05' and `end` < '2025-02-17 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 07:59:19] Production.INFO: count ==72 [2025-02-17 07:59:19] Production.ERROR: pbx CDR StartTime 2025-02-17 04:59:05 - End Time 2025-02-17 07:59:05 [2025-02-17 07:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494363', 'tblTempUsageDetail_20' ) start [2025-02-17 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494363', 'tblTempUsageDetail_20' ) end [2025-02-17 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494363', 'tblTempVendorCDR_20' ) start [2025-02-17 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494363', 'tblTempVendorCDR_20' ) end [2025-02-17 07:59:19] Production.INFO: ProcessCDR(1,14494363,1,1,2) [2025-02-17 07:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 07:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494363', 'tblTempUsageDetail_20' ) start [2025-02-17 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494363', 'tblTempUsageDetail_20' ) end [2025-02-17 07:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 07:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 07:59:22] Production.INFO: ==5133== Releasing lock... [2025-02-17 07:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 07:59:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-17 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:00:06 [end_date_ymd] => 2025-02-17 08:00:06 [RateCDR] => 1 ) [2025-02-17 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:00:06' and `end` < '2025-02-17 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:00:19] Production.INFO: count ==74 [2025-02-17 08:00:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:00:06 - End Time 2025-02-17 08:00:06 [2025-02-17 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494369', 'tblTempUsageDetail_20' ) start [2025-02-17 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494369', 'tblTempUsageDetail_20' ) end [2025-02-17 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494369', 'tblTempVendorCDR_20' ) start [2025-02-17 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494369', 'tblTempVendorCDR_20' ) end [2025-02-17 08:00:19] Production.INFO: ProcessCDR(1,14494369,1,1,2) [2025-02-17 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494369', 'tblTempUsageDetail_20' ) start [2025-02-17 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494369', 'tblTempUsageDetail_20' ) end [2025-02-17 08:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:00:23] Production.INFO: ==5212== Releasing lock... [2025-02-17 08:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:00:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-17 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:01:05 [end_date_ymd] => 2025-02-17 08:01:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 05:01:05' and `end` < '2025-02-17 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-02-17 08:01:18] Production.INFO: count ==74 [2025-02-17 08:01:18] Production.ERROR: pbx CDR StartTime 2025-02-17 05:01:05 - End Time 2025-02-17 08:01:05 [2025-02-17 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494374', 'tblTempUsageDetail_20' ) start [2025-02-17 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494374', 'tblTempUsageDetail_20' ) end [2025-02-17 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494374', 'tblTempVendorCDR_20' ) start [2025-02-17 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494374', 'tblTempVendorCDR_20' ) end [2025-02-17 08:01:18] Production.INFO: ProcessCDR(1,14494374,1,1,2) [2025-02-17 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494374', 'tblTempUsageDetail_20' ) start [2025-02-17 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494374', 'tblTempUsageDetail_20' ) end [2025-02-17 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:01:21] Production.INFO: ==5299== Releasing lock... [2025-02-17 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:01:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-17 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:02:05 [end_date_ymd] => 2025-02-17 08:02:05 [RateCDR] => 1 ) [2025-02-17 08:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:02:05' and `end` < '2025-02-17 08:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:02:20] Production.INFO: count ==75 [2025-02-17 08:02:20] Production.ERROR: pbx CDR StartTime 2025-02-17 05:02:05 - End Time 2025-02-17 08:02:05 [2025-02-17 08:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494379', 'tblTempUsageDetail_20' ) start [2025-02-17 08:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494379', 'tblTempUsageDetail_20' ) end [2025-02-17 08:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494379', 'tblTempVendorCDR_20' ) start [2025-02-17 08:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494379', 'tblTempVendorCDR_20' ) end [2025-02-17 08:02:20] Production.INFO: ProcessCDR(1,14494379,1,1,2) [2025-02-17 08:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494379', 'tblTempUsageDetail_20' ) start [2025-02-17 08:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494379', 'tblTempUsageDetail_20' ) end [2025-02-17 08:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:02:25] Production.INFO: ==5391== Releasing lock... [2025-02-17 08:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:02:25] Production.INFO: 28.5 MB #Memory Used# [2025-02-17 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:03:05 [end_date_ymd] => 2025-02-17 08:03:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 05:03:05' and `end` < '2025-02-17 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-02-17 08:03:19] Production.INFO: count ==75 [2025-02-17 08:03:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:03:05 - End Time 2025-02-17 08:03:05 [2025-02-17 08:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494384', 'tblTempUsageDetail_20' ) start [2025-02-17 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494384', 'tblTempUsageDetail_20' ) end [2025-02-17 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494384', 'tblTempVendorCDR_20' ) start [2025-02-17 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494384', 'tblTempVendorCDR_20' ) end [2025-02-17 08:03:19] Production.INFO: ProcessCDR(1,14494384,1,1,2) [2025-02-17 08:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494384', 'tblTempUsageDetail_20' ) start [2025-02-17 08:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494384', 'tblTempUsageDetail_20' ) end [2025-02-17 08:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:03:23] Production.INFO: ==5463== Releasing lock... [2025-02-17 08:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:03:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-17 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:04:05 [end_date_ymd] => 2025-02-17 08:04:05 [RateCDR] => 1 ) [2025-02-17 08:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:04:05' and `end` < '2025-02-17 08:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:04:18] Production.INFO: count ==76 [2025-02-17 08:04:18] Production.ERROR: pbx CDR StartTime 2025-02-17 05:04:05 - End Time 2025-02-17 08:04:05 [2025-02-17 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494389', 'tblTempUsageDetail_20' ) start [2025-02-17 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494389', 'tblTempUsageDetail_20' ) end [2025-02-17 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494389', 'tblTempVendorCDR_20' ) start [2025-02-17 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494389', 'tblTempVendorCDR_20' ) end [2025-02-17 08:04:18] Production.INFO: ProcessCDR(1,14494389,1,1,2) [2025-02-17 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494389', 'tblTempUsageDetail_20' ) start [2025-02-17 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494389', 'tblTempUsageDetail_20' ) end [2025-02-17 08:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:04:23] Production.INFO: ==5535== Releasing lock... [2025-02-17 08:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:04:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-17 08:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:05:05 [end_date_ymd] => 2025-02-17 08:05:05 [RateCDR] => 1 ) [2025-02-17 08:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:05:05' and `end` < '2025-02-17 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:05:18] Production.INFO: count ==76 [2025-02-17 08:05:18] Production.ERROR: pbx CDR StartTime 2025-02-17 05:05:05 - End Time 2025-02-17 08:05:05 [2025-02-17 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494394', 'tblTempUsageDetail_20' ) start [2025-02-17 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494394', 'tblTempUsageDetail_20' ) end [2025-02-17 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494394', 'tblTempVendorCDR_20' ) start [2025-02-17 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494394', 'tblTempVendorCDR_20' ) end [2025-02-17 08:05:18] Production.INFO: ProcessCDR(1,14494394,1,1,2) [2025-02-17 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494394', 'tblTempUsageDetail_20' ) start [2025-02-17 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494394', 'tblTempUsageDetail_20' ) end [2025-02-17 08:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:05:22] Production.INFO: ==5606== Releasing lock... [2025-02-17 08:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:05:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-17 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:06:05 [end_date_ymd] => 2025-02-17 08:06:05 [RateCDR] => 1 ) [2025-02-17 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:06:05' and `end` < '2025-02-17 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:06:19] Production.INFO: count ==76 [2025-02-17 08:06:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:06:05 - End Time 2025-02-17 08:06:05 [2025-02-17 08:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494399', 'tblTempUsageDetail_20' ) start [2025-02-17 08:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494399', 'tblTempUsageDetail_20' ) end [2025-02-17 08:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494399', 'tblTempVendorCDR_20' ) start [2025-02-17 08:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494399', 'tblTempVendorCDR_20' ) end [2025-02-17 08:06:20] Production.INFO: ProcessCDR(1,14494399,1,1,2) [2025-02-17 08:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494399', 'tblTempUsageDetail_20' ) start [2025-02-17 08:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494399', 'tblTempUsageDetail_20' ) end [2025-02-17 08:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:06:23] Production.INFO: ==5678== Releasing lock... [2025-02-17 08:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:06:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-17 08:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:07:06 [end_date_ymd] => 2025-02-17 08:07:06 [RateCDR] => 1 ) [2025-02-17 08:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:07:06' and `end` < '2025-02-17 08:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:07:19] Production.INFO: count ==76 [2025-02-17 08:07:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:07:06 - End Time 2025-02-17 08:07:06 [2025-02-17 08:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494404', 'tblTempUsageDetail_20' ) start [2025-02-17 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494404', 'tblTempUsageDetail_20' ) end [2025-02-17 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494404', 'tblTempVendorCDR_20' ) start [2025-02-17 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494404', 'tblTempVendorCDR_20' ) end [2025-02-17 08:07:19] Production.INFO: ProcessCDR(1,14494404,1,1,2) [2025-02-17 08:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494404', 'tblTempUsageDetail_20' ) start [2025-02-17 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494404', 'tblTempUsageDetail_20' ) end [2025-02-17 08:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:07:22] Production.INFO: ==5748== Releasing lock... [2025-02-17 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:07:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-17 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:08:05 [end_date_ymd] => 2025-02-17 08:08:05 [RateCDR] => 1 ) [2025-02-17 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:08:05' and `end` < '2025-02-17 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:08:18] Production.INFO: count ==76 [2025-02-17 08:08:18] Production.ERROR: pbx CDR StartTime 2025-02-17 05:08:05 - End Time 2025-02-17 08:08:05 [2025-02-17 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494409', 'tblTempUsageDetail_20' ) start [2025-02-17 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494409', 'tblTempUsageDetail_20' ) end [2025-02-17 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494409', 'tblTempVendorCDR_20' ) start [2025-02-17 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494409', 'tblTempVendorCDR_20' ) end [2025-02-17 08:08:18] Production.INFO: ProcessCDR(1,14494409,1,1,2) [2025-02-17 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494409', 'tblTempUsageDetail_20' ) start [2025-02-17 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494409', 'tblTempUsageDetail_20' ) end [2025-02-17 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:08:21] Production.INFO: ==5828== Releasing lock... [2025-02-17 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:08:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-17 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:09:05 [end_date_ymd] => 2025-02-17 08:09:05 [RateCDR] => 1 ) [2025-02-17 08:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:09:05' and `end` < '2025-02-17 08:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:09:18] Production.INFO: count ==76 [2025-02-17 08:09:18] Production.ERROR: pbx CDR StartTime 2025-02-17 05:09:05 - End Time 2025-02-17 08:09:05 [2025-02-17 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494414', 'tblTempUsageDetail_20' ) start [2025-02-17 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494414', 'tblTempUsageDetail_20' ) end [2025-02-17 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494414', 'tblTempVendorCDR_20' ) start [2025-02-17 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494414', 'tblTempVendorCDR_20' ) end [2025-02-17 08:09:18] Production.INFO: ProcessCDR(1,14494414,1,1,2) [2025-02-17 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494414', 'tblTempUsageDetail_20' ) start [2025-02-17 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494414', 'tblTempUsageDetail_20' ) end [2025-02-17 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:09:21] Production.INFO: ==5899== Releasing lock... [2025-02-17 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:09:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-17 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:10:06 [end_date_ymd] => 2025-02-17 08:10:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 05:10:06' and `end` < '2025-02-17 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-02-17 08:10:19] Production.INFO: count ==77 [2025-02-17 08:10:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:10:06 - End Time 2025-02-17 08:10:06 [2025-02-17 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494420', 'tblTempUsageDetail_20' ) start [2025-02-17 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494420', 'tblTempUsageDetail_20' ) end [2025-02-17 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494420', 'tblTempVendorCDR_20' ) start [2025-02-17 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494420', 'tblTempVendorCDR_20' ) end [2025-02-17 08:10:19] Production.INFO: ProcessCDR(1,14494420,1,1,2) [2025-02-17 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494420', 'tblTempUsageDetail_20' ) start [2025-02-17 08:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494420', 'tblTempUsageDetail_20' ) end [2025-02-17 08:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:10:24] Production.INFO: ==5972== Releasing lock... [2025-02-17 08:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:10:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-17 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:11:05 [end_date_ymd] => 2025-02-17 08:11:05 [RateCDR] => 1 ) [2025-02-17 08:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:11:05' and `end` < '2025-02-17 08:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:11:19] Production.INFO: count ==77 [2025-02-17 08:11:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:11:05 - End Time 2025-02-17 08:11:05 [2025-02-17 08:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494425', 'tblTempUsageDetail_20' ) start [2025-02-17 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494425', 'tblTempUsageDetail_20' ) end [2025-02-17 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494425', 'tblTempVendorCDR_20' ) start [2025-02-17 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494425', 'tblTempVendorCDR_20' ) end [2025-02-17 08:11:19] Production.INFO: ProcessCDR(1,14494425,1,1,2) [2025-02-17 08:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494425', 'tblTempUsageDetail_20' ) start [2025-02-17 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494425', 'tblTempUsageDetail_20' ) end [2025-02-17 08:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:11:22] Production.INFO: ==6048== Releasing lock... [2025-02-17 08:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:11:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-17 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:12:05 [end_date_ymd] => 2025-02-17 08:12:05 [RateCDR] => 1 ) [2025-02-17 08:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:12:05' and `end` < '2025-02-17 08:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:12:19] Production.INFO: count ==77 [2025-02-17 08:12:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:12:05 - End Time 2025-02-17 08:12:05 [2025-02-17 08:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494430', 'tblTempUsageDetail_20' ) start [2025-02-17 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494430', 'tblTempUsageDetail_20' ) end [2025-02-17 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494430', 'tblTempVendorCDR_20' ) start [2025-02-17 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494430', 'tblTempVendorCDR_20' ) end [2025-02-17 08:12:19] Production.INFO: ProcessCDR(1,14494430,1,1,2) [2025-02-17 08:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494430', 'tblTempUsageDetail_20' ) start [2025-02-17 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494430', 'tblTempUsageDetail_20' ) end [2025-02-17 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:12:22] Production.INFO: ==6160== Releasing lock... [2025-02-17 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:12:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-17 08:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:13:04 [end_date_ymd] => 2025-02-17 08:13:04 [RateCDR] => 1 ) [2025-02-17 08:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:13:04' and `end` < '2025-02-17 08:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:13:17] Production.INFO: count ==77 [2025-02-17 08:13:17] Production.ERROR: pbx CDR StartTime 2025-02-17 05:13:04 - End Time 2025-02-17 08:13:04 [2025-02-17 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494435', 'tblTempUsageDetail_20' ) start [2025-02-17 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494435', 'tblTempUsageDetail_20' ) end [2025-02-17 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494435', 'tblTempVendorCDR_20' ) start [2025-02-17 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494435', 'tblTempVendorCDR_20' ) end [2025-02-17 08:13:17] Production.INFO: ProcessCDR(1,14494435,1,1,2) [2025-02-17 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494435', 'tblTempUsageDetail_20' ) start [2025-02-17 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494435', 'tblTempUsageDetail_20' ) end [2025-02-17 08:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:13:20] Production.INFO: ==6232== Releasing lock... [2025-02-17 08:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:13:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-17 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:14:05 [end_date_ymd] => 2025-02-17 08:14:05 [RateCDR] => 1 ) [2025-02-17 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:14:05' and `end` < '2025-02-17 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:14:19] Production.INFO: count ==79 [2025-02-17 08:14:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:14:05 - End Time 2025-02-17 08:14:05 [2025-02-17 08:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494440', 'tblTempUsageDetail_20' ) start [2025-02-17 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494440', 'tblTempUsageDetail_20' ) end [2025-02-17 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494440', 'tblTempVendorCDR_20' ) start [2025-02-17 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494440', 'tblTempVendorCDR_20' ) end [2025-02-17 08:14:19] Production.INFO: ProcessCDR(1,14494440,1,1,2) [2025-02-17 08:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494440', 'tblTempUsageDetail_20' ) start [2025-02-17 08:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494440', 'tblTempUsageDetail_20' ) end [2025-02-17 08:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:14:24] Production.INFO: ==6302== Releasing lock... [2025-02-17 08:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:14:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-17 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:15:05 [end_date_ymd] => 2025-02-17 08:15:05 [RateCDR] => 1 ) [2025-02-17 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:15:05' and `end` < '2025-02-17 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:15:18] Production.INFO: count ==79 [2025-02-17 08:15:18] Production.ERROR: pbx CDR StartTime 2025-02-17 05:15:05 - End Time 2025-02-17 08:15:05 [2025-02-17 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494445', 'tblTempUsageDetail_20' ) start [2025-02-17 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494445', 'tblTempUsageDetail_20' ) end [2025-02-17 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494445', 'tblTempVendorCDR_20' ) start [2025-02-17 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494445', 'tblTempVendorCDR_20' ) end [2025-02-17 08:15:18] Production.INFO: ProcessCDR(1,14494445,1,1,2) [2025-02-17 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494445', 'tblTempUsageDetail_20' ) start [2025-02-17 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494445', 'tblTempUsageDetail_20' ) end [2025-02-17 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:15:21] Production.INFO: ==6377== Releasing lock... [2025-02-17 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-17 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:16:05 [end_date_ymd] => 2025-02-17 08:16:05 [RateCDR] => 1 ) [2025-02-17 08:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:16:05' and `end` < '2025-02-17 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:16:18] Production.INFO: count ==81 [2025-02-17 08:16:18] Production.ERROR: pbx CDR StartTime 2025-02-17 05:16:05 - End Time 2025-02-17 08:16:05 [2025-02-17 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494450', 'tblTempUsageDetail_20' ) start [2025-02-17 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494450', 'tblTempUsageDetail_20' ) end [2025-02-17 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494450', 'tblTempVendorCDR_20' ) start [2025-02-17 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494450', 'tblTempVendorCDR_20' ) end [2025-02-17 08:16:18] Production.INFO: ProcessCDR(1,14494450,1,1,2) [2025-02-17 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494450', 'tblTempUsageDetail_20' ) start [2025-02-17 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494450', 'tblTempUsageDetail_20' ) end [2025-02-17 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:16:21] Production.INFO: ==6447== Releasing lock... [2025-02-17 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:16:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-17 08:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:17:06 [end_date_ymd] => 2025-02-17 08:17:06 [RateCDR] => 1 ) [2025-02-17 08:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:17:06' and `end` < '2025-02-17 08:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:17:19] Production.INFO: count ==81 [2025-02-17 08:17:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:17:06 - End Time 2025-02-17 08:17:06 [2025-02-17 08:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494455', 'tblTempUsageDetail_20' ) start [2025-02-17 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494455', 'tblTempUsageDetail_20' ) end [2025-02-17 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494455', 'tblTempVendorCDR_20' ) start [2025-02-17 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494455', 'tblTempVendorCDR_20' ) end [2025-02-17 08:17:19] Production.INFO: ProcessCDR(1,14494455,1,1,2) [2025-02-17 08:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494455', 'tblTempUsageDetail_20' ) start [2025-02-17 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494455', 'tblTempUsageDetail_20' ) end [2025-02-17 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:17:22] Production.INFO: ==6518== Releasing lock... [2025-02-17 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:17:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-17 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:18:05 [end_date_ymd] => 2025-02-17 08:18:05 [RateCDR] => 1 ) [2025-02-17 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:18:05' and `end` < '2025-02-17 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:18:19] Production.INFO: count ==81 [2025-02-17 08:18:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:18:05 - End Time 2025-02-17 08:18:05 [2025-02-17 08:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494460', 'tblTempUsageDetail_20' ) start [2025-02-17 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494460', 'tblTempUsageDetail_20' ) end [2025-02-17 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494460', 'tblTempVendorCDR_20' ) start [2025-02-17 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494460', 'tblTempVendorCDR_20' ) end [2025-02-17 08:18:19] Production.INFO: ProcessCDR(1,14494460,1,1,2) [2025-02-17 08:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494460', 'tblTempUsageDetail_20' ) start [2025-02-17 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494460', 'tblTempUsageDetail_20' ) end [2025-02-17 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:18:22] Production.INFO: ==6599== Releasing lock... [2025-02-17 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:18:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-17 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:19:05 [end_date_ymd] => 2025-02-17 08:19:05 [RateCDR] => 1 ) [2025-02-17 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:19:05' and `end` < '2025-02-17 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:19:19] Production.INFO: count ==97 [2025-02-17 08:19:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:19:05 - End Time 2025-02-17 08:19:05 [2025-02-17 08:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494465', 'tblTempUsageDetail_20' ) start [2025-02-17 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494465', 'tblTempUsageDetail_20' ) end [2025-02-17 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494465', 'tblTempVendorCDR_20' ) start [2025-02-17 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494465', 'tblTempVendorCDR_20' ) end [2025-02-17 08:19:19] Production.INFO: ProcessCDR(1,14494465,1,1,2) [2025-02-17 08:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494465', 'tblTempUsageDetail_20' ) start [2025-02-17 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494465', 'tblTempUsageDetail_20' ) end [2025-02-17 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:19:22] Production.INFO: ==6673== Releasing lock... [2025-02-17 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:19:22] Production.INFO: 29 MB #Memory Used# [2025-02-17 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:20:05 [end_date_ymd] => 2025-02-17 08:20:05 [RateCDR] => 1 ) [2025-02-17 08:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:20:05' and `end` < '2025-02-17 08:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:20:18] Production.INFO: count ==108 [2025-02-17 08:20:18] Production.ERROR: pbx CDR StartTime 2025-02-17 05:20:05 - End Time 2025-02-17 08:20:05 [2025-02-17 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494470', 'tblTempUsageDetail_20' ) start [2025-02-17 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494470', 'tblTempUsageDetail_20' ) end [2025-02-17 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494470', 'tblTempVendorCDR_20' ) start [2025-02-17 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494470', 'tblTempVendorCDR_20' ) end [2025-02-17 08:20:18] Production.INFO: ProcessCDR(1,14494470,1,1,2) [2025-02-17 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494470', 'tblTempUsageDetail_20' ) start [2025-02-17 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494470', 'tblTempUsageDetail_20' ) end [2025-02-17 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:20:22] Production.INFO: ==6746== Releasing lock... [2025-02-17 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:20:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-17 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:21:05 [end_date_ymd] => 2025-02-17 08:21:05 [RateCDR] => 1 ) [2025-02-17 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:21:05' and `end` < '2025-02-17 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:21:19] Production.INFO: count ==115 [2025-02-17 08:21:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:21:05 - End Time 2025-02-17 08:21:05 [2025-02-17 08:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494476', 'tblTempUsageDetail_20' ) start [2025-02-17 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494476', 'tblTempUsageDetail_20' ) end [2025-02-17 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494476', 'tblTempVendorCDR_20' ) start [2025-02-17 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494476', 'tblTempVendorCDR_20' ) end [2025-02-17 08:21:19] Production.INFO: ProcessCDR(1,14494476,1,1,2) [2025-02-17 08:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494476', 'tblTempUsageDetail_20' ) start [2025-02-17 08:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494476', 'tblTempUsageDetail_20' ) end [2025-02-17 08:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:21:24] Production.INFO: ==6820== Releasing lock... [2025-02-17 08:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:21:24] Production.INFO: 29.25 MB #Memory Used# [2025-02-17 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:22:05 [end_date_ymd] => 2025-02-17 08:22:05 [RateCDR] => 1 ) [2025-02-17 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:22:05' and `end` < '2025-02-17 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:22:18] Production.INFO: count ==115 [2025-02-17 08:22:18] Production.ERROR: pbx CDR StartTime 2025-02-17 05:22:05 - End Time 2025-02-17 08:22:05 [2025-02-17 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494481', 'tblTempUsageDetail_20' ) start [2025-02-17 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494481', 'tblTempUsageDetail_20' ) end [2025-02-17 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494481', 'tblTempVendorCDR_20' ) start [2025-02-17 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494481', 'tblTempVendorCDR_20' ) end [2025-02-17 08:22:18] Production.INFO: ProcessCDR(1,14494481,1,1,2) [2025-02-17 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494481', 'tblTempUsageDetail_20' ) start [2025-02-17 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494481', 'tblTempUsageDetail_20' ) end [2025-02-17 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:22:21] Production.INFO: ==6893== Releasing lock... [2025-02-17 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:22:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-17 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:23:05 [end_date_ymd] => 2025-02-17 08:23:05 [RateCDR] => 1 ) [2025-02-17 08:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:23:05' and `end` < '2025-02-17 08:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:23:18] Production.INFO: count ==115 [2025-02-17 08:23:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:23:05 - End Time 2025-02-17 08:23:05 [2025-02-17 08:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494486', 'tblTempUsageDetail_20' ) start [2025-02-17 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494486', 'tblTempUsageDetail_20' ) end [2025-02-17 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494486', 'tblTempVendorCDR_20' ) start [2025-02-17 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494486', 'tblTempVendorCDR_20' ) end [2025-02-17 08:23:19] Production.INFO: ProcessCDR(1,14494486,1,1,2) [2025-02-17 08:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494486', 'tblTempUsageDetail_20' ) start [2025-02-17 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494486', 'tblTempUsageDetail_20' ) end [2025-02-17 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:23:22] Production.INFO: ==6965== Releasing lock... [2025-02-17 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:23:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-17 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:24:05 [end_date_ymd] => 2025-02-17 08:24:05 [RateCDR] => 1 ) [2025-02-17 08:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:24:05' and `end` < '2025-02-17 08:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:24:18] Production.INFO: count ==115 [2025-02-17 08:24:18] Production.ERROR: pbx CDR StartTime 2025-02-17 05:24:05 - End Time 2025-02-17 08:24:05 [2025-02-17 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494491', 'tblTempUsageDetail_20' ) start [2025-02-17 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494491', 'tblTempUsageDetail_20' ) end [2025-02-17 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494491', 'tblTempVendorCDR_20' ) start [2025-02-17 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494491', 'tblTempVendorCDR_20' ) end [2025-02-17 08:24:18] Production.INFO: ProcessCDR(1,14494491,1,1,2) [2025-02-17 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494491', 'tblTempUsageDetail_20' ) start [2025-02-17 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494491', 'tblTempUsageDetail_20' ) end [2025-02-17 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:24:22] Production.INFO: ==7036== Releasing lock... [2025-02-17 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:24:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-17 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:25:05 [end_date_ymd] => 2025-02-17 08:25:05 [RateCDR] => 1 ) [2025-02-17 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:25:05' and `end` < '2025-02-17 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:25:18] Production.INFO: count ==115 [2025-02-17 08:25:18] Production.ERROR: pbx CDR StartTime 2025-02-17 05:25:05 - End Time 2025-02-17 08:25:05 [2025-02-17 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494496', 'tblTempUsageDetail_20' ) start [2025-02-17 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494496', 'tblTempUsageDetail_20' ) end [2025-02-17 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494496', 'tblTempVendorCDR_20' ) start [2025-02-17 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494496', 'tblTempVendorCDR_20' ) end [2025-02-17 08:25:18] Production.INFO: ProcessCDR(1,14494496,1,1,2) [2025-02-17 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494496', 'tblTempUsageDetail_20' ) start [2025-02-17 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494496', 'tblTempUsageDetail_20' ) end [2025-02-17 08:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:25:22] Production.INFO: ==7107== Releasing lock... [2025-02-17 08:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:25:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-17 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:26:05 [end_date_ymd] => 2025-02-17 08:26:05 [RateCDR] => 1 ) [2025-02-17 08:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:26:05' and `end` < '2025-02-17 08:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:26:19] Production.INFO: count ==116 [2025-02-17 08:26:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:26:05 - End Time 2025-02-17 08:26:05 [2025-02-17 08:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494501', 'tblTempUsageDetail_20' ) start [2025-02-17 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494501', 'tblTempUsageDetail_20' ) end [2025-02-17 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494501', 'tblTempVendorCDR_20' ) start [2025-02-17 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494501', 'tblTempVendorCDR_20' ) end [2025-02-17 08:26:19] Production.INFO: ProcessCDR(1,14494501,1,1,2) [2025-02-17 08:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494501', 'tblTempUsageDetail_20' ) start [2025-02-17 08:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494501', 'tblTempUsageDetail_20' ) end [2025-02-17 08:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:26:24] Production.INFO: ==7177== Releasing lock... [2025-02-17 08:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:26:24] Production.INFO: 29.25 MB #Memory Used# [2025-02-17 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:27:05 [end_date_ymd] => 2025-02-17 08:27:05 [RateCDR] => 1 ) [2025-02-17 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:27:05' and `end` < '2025-02-17 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:27:18] Production.INFO: count ==116 [2025-02-17 08:27:18] Production.ERROR: pbx CDR StartTime 2025-02-17 05:27:05 - End Time 2025-02-17 08:27:05 [2025-02-17 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494506', 'tblTempUsageDetail_20' ) start [2025-02-17 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494506', 'tblTempUsageDetail_20' ) end [2025-02-17 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494506', 'tblTempVendorCDR_20' ) start [2025-02-17 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494506', 'tblTempVendorCDR_20' ) end [2025-02-17 08:27:18] Production.INFO: ProcessCDR(1,14494506,1,1,2) [2025-02-17 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494506', 'tblTempUsageDetail_20' ) start [2025-02-17 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494506', 'tblTempUsageDetail_20' ) end [2025-02-17 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:27:21] Production.INFO: ==7252== Releasing lock... [2025-02-17 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:27:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-17 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:28:05 [end_date_ymd] => 2025-02-17 08:28:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 05:28:05' and `end` < '2025-02-17 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-02-17 08:28:18] Production.INFO: count ==116 [2025-02-17 08:28:18] Production.ERROR: pbx CDR StartTime 2025-02-17 05:28:05 - End Time 2025-02-17 08:28:05 [2025-02-17 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494511', 'tblTempUsageDetail_20' ) start [2025-02-17 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494511', 'tblTempUsageDetail_20' ) end [2025-02-17 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494511', 'tblTempVendorCDR_20' ) start [2025-02-17 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494511', 'tblTempVendorCDR_20' ) end [2025-02-17 08:28:18] Production.INFO: ProcessCDR(1,14494511,1,1,2) [2025-02-17 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494511', 'tblTempUsageDetail_20' ) start [2025-02-17 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494511', 'tblTempUsageDetail_20' ) end [2025-02-17 08:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:28:22] Production.INFO: ==7362== Releasing lock... [2025-02-17 08:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:28:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-17 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:29:05 [end_date_ymd] => 2025-02-17 08:29:05 [RateCDR] => 1 ) [2025-02-17 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:29:05' and `end` < '2025-02-17 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:29:19] Production.INFO: count ==116 [2025-02-17 08:29:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:29:05 - End Time 2025-02-17 08:29:05 [2025-02-17 08:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494516', 'tblTempUsageDetail_20' ) start [2025-02-17 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494516', 'tblTempUsageDetail_20' ) end [2025-02-17 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494516', 'tblTempVendorCDR_20' ) start [2025-02-17 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494516', 'tblTempVendorCDR_20' ) end [2025-02-17 08:29:19] Production.INFO: ProcessCDR(1,14494516,1,1,2) [2025-02-17 08:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494516', 'tblTempUsageDetail_20' ) start [2025-02-17 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494516', 'tblTempUsageDetail_20' ) end [2025-02-17 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:29:22] Production.INFO: ==7439== Releasing lock... [2025-02-17 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:29:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-17 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:30:06 [end_date_ymd] => 2025-02-17 08:30:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 05:30:06' and `end` < '2025-02-17 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-02-17 08:30:19] Production.INFO: count ==125 [2025-02-17 08:30:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:30:06 - End Time 2025-02-17 08:30:06 [2025-02-17 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494522', 'tblTempUsageDetail_20' ) start [2025-02-17 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494522', 'tblTempUsageDetail_20' ) end [2025-02-17 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494522', 'tblTempVendorCDR_20' ) start [2025-02-17 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494522', 'tblTempVendorCDR_20' ) end [2025-02-17 08:30:19] Production.INFO: ProcessCDR(1,14494522,1,1,2) [2025-02-17 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494522', 'tblTempUsageDetail_20' ) start [2025-02-17 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494522', 'tblTempUsageDetail_20' ) end [2025-02-17 08:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:30:24] Production.INFO: ==7515== Releasing lock... [2025-02-17 08:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:30:24] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:31:05 [end_date_ymd] => 2025-02-17 08:31:05 [RateCDR] => 1 ) [2025-02-17 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:31:05' and `end` < '2025-02-17 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:31:19] Production.INFO: count ==126 [2025-02-17 08:31:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:31:05 - End Time 2025-02-17 08:31:05 [2025-02-17 08:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494527', 'tblTempUsageDetail_20' ) start [2025-02-17 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494527', 'tblTempUsageDetail_20' ) end [2025-02-17 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494527', 'tblTempVendorCDR_20' ) start [2025-02-17 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494527', 'tblTempVendorCDR_20' ) end [2025-02-17 08:31:19] Production.INFO: ProcessCDR(1,14494527,1,1,2) [2025-02-17 08:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494527', 'tblTempUsageDetail_20' ) start [2025-02-17 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494527', 'tblTempUsageDetail_20' ) end [2025-02-17 08:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:31:22] Production.INFO: ==7590== Releasing lock... [2025-02-17 08:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:31:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:32:06 [end_date_ymd] => 2025-02-17 08:32:06 [RateCDR] => 1 ) [2025-02-17 08:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:32:06' and `end` < '2025-02-17 08:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:32:20] Production.INFO: count ==127 [2025-02-17 08:32:20] Production.ERROR: pbx CDR StartTime 2025-02-17 05:32:06 - End Time 2025-02-17 08:32:06 [2025-02-17 08:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494532', 'tblTempUsageDetail_20' ) start [2025-02-17 08:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494532', 'tblTempUsageDetail_20' ) end [2025-02-17 08:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494532', 'tblTempVendorCDR_20' ) start [2025-02-17 08:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494532', 'tblTempVendorCDR_20' ) end [2025-02-17 08:32:20] Production.INFO: ProcessCDR(1,14494532,1,1,2) [2025-02-17 08:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494532', 'tblTempUsageDetail_20' ) start [2025-02-17 08:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494532', 'tblTempUsageDetail_20' ) end [2025-02-17 08:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:32:25] Production.INFO: ==7668== Releasing lock... [2025-02-17 08:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:32:25] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:33:05 [end_date_ymd] => 2025-02-17 08:33:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 05:33:05' and `end` < '2025-02-17 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-02-17 08:33:19] Production.INFO: count ==127 [2025-02-17 08:33:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:33:05 - End Time 2025-02-17 08:33:05 [2025-02-17 08:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494537', 'tblTempUsageDetail_20' ) start [2025-02-17 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494537', 'tblTempUsageDetail_20' ) end [2025-02-17 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494537', 'tblTempVendorCDR_20' ) start [2025-02-17 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494537', 'tblTempVendorCDR_20' ) end [2025-02-17 08:33:19] Production.INFO: ProcessCDR(1,14494537,1,1,2) [2025-02-17 08:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494537', 'tblTempUsageDetail_20' ) start [2025-02-17 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494537', 'tblTempUsageDetail_20' ) end [2025-02-17 08:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:33:22] Production.INFO: ==7738== Releasing lock... [2025-02-17 08:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:33:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 08:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:34:06 [end_date_ymd] => 2025-02-17 08:34:06 [RateCDR] => 1 ) [2025-02-17 08:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:34:06' and `end` < '2025-02-17 08:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:34:19] Production.INFO: count ==128 [2025-02-17 08:34:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:34:06 - End Time 2025-02-17 08:34:06 [2025-02-17 08:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494542', 'tblTempUsageDetail_20' ) start [2025-02-17 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494542', 'tblTempUsageDetail_20' ) end [2025-02-17 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494542', 'tblTempVendorCDR_20' ) start [2025-02-17 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494542', 'tblTempVendorCDR_20' ) end [2025-02-17 08:34:19] Production.INFO: ProcessCDR(1,14494542,1,1,2) [2025-02-17 08:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494542', 'tblTempUsageDetail_20' ) start [2025-02-17 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494542', 'tblTempUsageDetail_20' ) end [2025-02-17 08:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:34:23] Production.INFO: ==7810== Releasing lock... [2025-02-17 08:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:34:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:35:05 [end_date_ymd] => 2025-02-17 08:35:05 [RateCDR] => 1 ) [2025-02-17 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:35:05' and `end` < '2025-02-17 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:35:19] Production.INFO: count ==129 [2025-02-17 08:35:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:35:05 - End Time 2025-02-17 08:35:05 [2025-02-17 08:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494547', 'tblTempUsageDetail_20' ) start [2025-02-17 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494547', 'tblTempUsageDetail_20' ) end [2025-02-17 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494547', 'tblTempVendorCDR_20' ) start [2025-02-17 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494547', 'tblTempVendorCDR_20' ) end [2025-02-17 08:35:19] Production.INFO: ProcessCDR(1,14494547,1,1,2) [2025-02-17 08:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494547', 'tblTempUsageDetail_20' ) start [2025-02-17 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494547', 'tblTempUsageDetail_20' ) end [2025-02-17 08:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:35:22] Production.INFO: ==7881== Releasing lock... [2025-02-17 08:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:35:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 08:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:36:06 [end_date_ymd] => 2025-02-17 08:36:06 [RateCDR] => 1 ) [2025-02-17 08:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:36:06' and `end` < '2025-02-17 08:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:36:18] Production.INFO: count ==132 [2025-02-17 08:36:18] Production.ERROR: pbx CDR StartTime 2025-02-17 05:36:06 - End Time 2025-02-17 08:36:06 [2025-02-17 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494552', 'tblTempUsageDetail_20' ) start [2025-02-17 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494552', 'tblTempUsageDetail_20' ) end [2025-02-17 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494552', 'tblTempVendorCDR_20' ) start [2025-02-17 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494552', 'tblTempVendorCDR_20' ) end [2025-02-17 08:36:18] Production.INFO: ProcessCDR(1,14494552,1,1,2) [2025-02-17 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494552', 'tblTempUsageDetail_20' ) start [2025-02-17 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494552', 'tblTempUsageDetail_20' ) end [2025-02-17 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:36:22] Production.INFO: ==7960== Releasing lock... [2025-02-17 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:36:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:37:05 [end_date_ymd] => 2025-02-17 08:37:05 [RateCDR] => 1 ) [2025-02-17 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:37:05' and `end` < '2025-02-17 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:37:19] Production.INFO: count ==132 [2025-02-17 08:37:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:37:05 - End Time 2025-02-17 08:37:05 [2025-02-17 08:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494557', 'tblTempUsageDetail_20' ) start [2025-02-17 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494557', 'tblTempUsageDetail_20' ) end [2025-02-17 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494557', 'tblTempVendorCDR_20' ) start [2025-02-17 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494557', 'tblTempVendorCDR_20' ) end [2025-02-17 08:37:19] Production.INFO: ProcessCDR(1,14494557,1,1,2) [2025-02-17 08:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494557', 'tblTempUsageDetail_20' ) start [2025-02-17 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494557', 'tblTempUsageDetail_20' ) end [2025-02-17 08:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:37:22] Production.INFO: ==8032== Releasing lock... [2025-02-17 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:37:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 08:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:38:06 [end_date_ymd] => 2025-02-17 08:38:06 [RateCDR] => 1 ) [2025-02-17 08:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:38:06' and `end` < '2025-02-17 08:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:38:19] Production.INFO: count ==150 [2025-02-17 08:38:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:38:06 - End Time 2025-02-17 08:38:06 [2025-02-17 08:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494562', 'tblTempUsageDetail_20' ) start [2025-02-17 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494562', 'tblTempUsageDetail_20' ) end [2025-02-17 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494562', 'tblTempVendorCDR_20' ) start [2025-02-17 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494562', 'tblTempVendorCDR_20' ) end [2025-02-17 08:38:19] Production.INFO: ProcessCDR(1,14494562,1,1,2) [2025-02-17 08:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494562', 'tblTempUsageDetail_20' ) start [2025-02-17 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494562', 'tblTempUsageDetail_20' ) end [2025-02-17 08:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:38:22] Production.INFO: ==8105== Releasing lock... [2025-02-17 08:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:38:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-17 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:39:05 [end_date_ymd] => 2025-02-17 08:39:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 05:39:05' and `end` < '2025-02-17 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-02-17 08:39:19] Production.INFO: count ==151 [2025-02-17 08:39:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:39:05 - End Time 2025-02-17 08:39:05 [2025-02-17 08:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494567', 'tblTempUsageDetail_20' ) start [2025-02-17 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494567', 'tblTempUsageDetail_20' ) end [2025-02-17 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494567', 'tblTempVendorCDR_20' ) start [2025-02-17 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494567', 'tblTempVendorCDR_20' ) end [2025-02-17 08:39:19] Production.INFO: ProcessCDR(1,14494567,1,1,2) [2025-02-17 08:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494567', 'tblTempUsageDetail_20' ) start [2025-02-17 08:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494567', 'tblTempUsageDetail_20' ) end [2025-02-17 08:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:39:24] Production.INFO: ==8181== Releasing lock... [2025-02-17 08:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:39:24] Production.INFO: 29.25 MB #Memory Used# [2025-02-17 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:40:06 [end_date_ymd] => 2025-02-17 08:40:06 [RateCDR] => 1 ) [2025-02-17 08:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:40:06' and `end` < '2025-02-17 08:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:40:19] Production.INFO: count ==154 [2025-02-17 08:40:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:40:06 - End Time 2025-02-17 08:40:06 [2025-02-17 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494573', 'tblTempUsageDetail_20' ) start [2025-02-17 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494573', 'tblTempUsageDetail_20' ) end [2025-02-17 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494573', 'tblTempVendorCDR_20' ) start [2025-02-17 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494573', 'tblTempVendorCDR_20' ) end [2025-02-17 08:40:19] Production.INFO: ProcessCDR(1,14494573,1,1,2) [2025-02-17 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494573', 'tblTempUsageDetail_20' ) start [2025-02-17 08:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494573', 'tblTempUsageDetail_20' ) end [2025-02-17 08:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:40:24] Production.INFO: ==8257== Releasing lock... [2025-02-17 08:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:40:24] Production.INFO: 29.75 MB #Memory Used# [2025-02-17 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:41:05 [end_date_ymd] => 2025-02-17 08:41:05 [RateCDR] => 1 ) [2025-02-17 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:41:05' and `end` < '2025-02-17 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:41:19] Production.INFO: count ==155 [2025-02-17 08:41:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:41:05 - End Time 2025-02-17 08:41:05 [2025-02-17 08:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494578', 'tblTempUsageDetail_20' ) start [2025-02-17 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494578', 'tblTempUsageDetail_20' ) end [2025-02-17 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494578', 'tblTempVendorCDR_20' ) start [2025-02-17 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494578', 'tblTempVendorCDR_20' ) end [2025-02-17 08:41:19] Production.INFO: ProcessCDR(1,14494578,1,1,2) [2025-02-17 08:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494578', 'tblTempUsageDetail_20' ) start [2025-02-17 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494578', 'tblTempUsageDetail_20' ) end [2025-02-17 08:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:41:23] Production.INFO: ==8335== Releasing lock... [2025-02-17 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:41:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:42:05 [end_date_ymd] => 2025-02-17 08:42:05 [RateCDR] => 1 ) [2025-02-17 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:42:05' and `end` < '2025-02-17 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:42:18] Production.INFO: count ==173 [2025-02-17 08:42:18] Production.ERROR: pbx CDR StartTime 2025-02-17 05:42:05 - End Time 2025-02-17 08:42:05 [2025-02-17 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494583', 'tblTempUsageDetail_20' ) start [2025-02-17 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494583', 'tblTempUsageDetail_20' ) end [2025-02-17 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494583', 'tblTempVendorCDR_20' ) start [2025-02-17 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494583', 'tblTempVendorCDR_20' ) end [2025-02-17 08:42:18] Production.INFO: ProcessCDR(1,14494583,1,1,2) [2025-02-17 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494583', 'tblTempUsageDetail_20' ) start [2025-02-17 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494583', 'tblTempUsageDetail_20' ) end [2025-02-17 08:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:42:22] Production.INFO: ==8412== Releasing lock... [2025-02-17 08:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:42:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-17 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:43:05 [end_date_ymd] => 2025-02-17 08:43:05 [RateCDR] => 1 ) [2025-02-17 08:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:43:05' and `end` < '2025-02-17 08:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:43:19] Production.INFO: count ==186 [2025-02-17 08:43:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:43:05 - End Time 2025-02-17 08:43:05 [2025-02-17 08:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494588', 'tblTempUsageDetail_20' ) start [2025-02-17 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494588', 'tblTempUsageDetail_20' ) end [2025-02-17 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494588', 'tblTempVendorCDR_20' ) start [2025-02-17 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494588', 'tblTempVendorCDR_20' ) end [2025-02-17 08:43:19] Production.INFO: ProcessCDR(1,14494588,1,1,2) [2025-02-17 08:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494588', 'tblTempUsageDetail_20' ) start [2025-02-17 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494588', 'tblTempUsageDetail_20' ) end [2025-02-17 08:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:43:23] Production.INFO: ==8527== Releasing lock... [2025-02-17 08:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:43:23] Production.INFO: 30 MB #Memory Used# [2025-02-17 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:44:05 [end_date_ymd] => 2025-02-17 08:44:05 [RateCDR] => 1 ) [2025-02-17 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:44:05' and `end` < '2025-02-17 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:44:18] Production.INFO: count ==191 [2025-02-17 08:44:18] Production.ERROR: pbx CDR StartTime 2025-02-17 05:44:05 - End Time 2025-02-17 08:44:05 [2025-02-17 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494593', 'tblTempUsageDetail_20' ) start [2025-02-17 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494593', 'tblTempUsageDetail_20' ) end [2025-02-17 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494593', 'tblTempVendorCDR_20' ) start [2025-02-17 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494593', 'tblTempVendorCDR_20' ) end [2025-02-17 08:44:18] Production.INFO: ProcessCDR(1,14494593,1,1,2) [2025-02-17 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494593', 'tblTempUsageDetail_20' ) start [2025-02-17 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494593', 'tblTempUsageDetail_20' ) end [2025-02-17 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:44:22] Production.INFO: ==8606== Releasing lock... [2025-02-17 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:44:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:45:05 [end_date_ymd] => 2025-02-17 08:45:05 [RateCDR] => 1 ) [2025-02-17 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:45:05' and `end` < '2025-02-17 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:45:17] Production.INFO: count ==191 [2025-02-17 08:45:17] Production.ERROR: pbx CDR StartTime 2025-02-17 05:45:05 - End Time 2025-02-17 08:45:05 [2025-02-17 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494598', 'tblTempUsageDetail_20' ) start [2025-02-17 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494598', 'tblTempUsageDetail_20' ) end [2025-02-17 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494598', 'tblTempVendorCDR_20' ) start [2025-02-17 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494598', 'tblTempVendorCDR_20' ) end [2025-02-17 08:45:17] Production.INFO: ProcessCDR(1,14494598,1,1,2) [2025-02-17 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494598', 'tblTempUsageDetail_20' ) start [2025-02-17 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494598', 'tblTempUsageDetail_20' ) end [2025-02-17 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:45:21] Production.INFO: ==8687== Releasing lock... [2025-02-17 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:45:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:46:05 [end_date_ymd] => 2025-02-17 08:46:05 [RateCDR] => 1 ) [2025-02-17 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:46:05' and `end` < '2025-02-17 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:46:18] Production.INFO: count ==191 [2025-02-17 08:46:18] Production.ERROR: pbx CDR StartTime 2025-02-17 05:46:05 - End Time 2025-02-17 08:46:05 [2025-02-17 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494603', 'tblTempUsageDetail_20' ) start [2025-02-17 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494603', 'tblTempUsageDetail_20' ) end [2025-02-17 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494603', 'tblTempVendorCDR_20' ) start [2025-02-17 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494603', 'tblTempVendorCDR_20' ) end [2025-02-17 08:46:18] Production.INFO: ProcessCDR(1,14494603,1,1,2) [2025-02-17 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494603', 'tblTempUsageDetail_20' ) start [2025-02-17 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494603', 'tblTempUsageDetail_20' ) end [2025-02-17 08:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:46:21] Production.INFO: ==8764== Releasing lock... [2025-02-17 08:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-17 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:47:05 [end_date_ymd] => 2025-02-17 08:47:05 [RateCDR] => 1 ) [2025-02-17 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:47:05' and `end` < '2025-02-17 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:47:17] Production.INFO: count ==194 [2025-02-17 08:47:18] Production.ERROR: pbx CDR StartTime 2025-02-17 05:47:05 - End Time 2025-02-17 08:47:05 [2025-02-17 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494608', 'tblTempUsageDetail_20' ) start [2025-02-17 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494608', 'tblTempUsageDetail_20' ) end [2025-02-17 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494608', 'tblTempVendorCDR_20' ) start [2025-02-17 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494608', 'tblTempVendorCDR_20' ) end [2025-02-17 08:47:18] Production.INFO: ProcessCDR(1,14494608,1,1,2) [2025-02-17 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494608', 'tblTempUsageDetail_20' ) start [2025-02-17 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494608', 'tblTempUsageDetail_20' ) end [2025-02-17 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:47:21] Production.INFO: ==8844== Releasing lock... [2025-02-17 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:47:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-17 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:48:05 [end_date_ymd] => 2025-02-17 08:48:05 [RateCDR] => 1 ) [2025-02-17 08:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:48:05' and `end` < '2025-02-17 08:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:48:19] Production.INFO: count ==194 [2025-02-17 08:48:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:48:05 - End Time 2025-02-17 08:48:05 [2025-02-17 08:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494613', 'tblTempUsageDetail_20' ) start [2025-02-17 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494613', 'tblTempUsageDetail_20' ) end [2025-02-17 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494613', 'tblTempVendorCDR_20' ) start [2025-02-17 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494613', 'tblTempVendorCDR_20' ) end [2025-02-17 08:48:19] Production.INFO: ProcessCDR(1,14494613,1,1,2) [2025-02-17 08:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494613', 'tblTempUsageDetail_20' ) start [2025-02-17 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494613', 'tblTempUsageDetail_20' ) end [2025-02-17 08:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:48:23] Production.INFO: ==8928== Releasing lock... [2025-02-17 08:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:48:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-17 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:49:05 [end_date_ymd] => 2025-02-17 08:49:05 [RateCDR] => 1 ) [2025-02-17 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:49:05' and `end` < '2025-02-17 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:49:18] Production.INFO: count ==194 [2025-02-17 08:49:18] Production.ERROR: pbx CDR StartTime 2025-02-17 05:49:05 - End Time 2025-02-17 08:49:05 [2025-02-17 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494618', 'tblTempUsageDetail_20' ) start [2025-02-17 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494618', 'tblTempUsageDetail_20' ) end [2025-02-17 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494618', 'tblTempVendorCDR_20' ) start [2025-02-17 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494618', 'tblTempVendorCDR_20' ) end [2025-02-17 08:49:18] Production.INFO: ProcessCDR(1,14494618,1,1,2) [2025-02-17 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494618', 'tblTempUsageDetail_20' ) start [2025-02-17 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494618', 'tblTempUsageDetail_20' ) end [2025-02-17 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:49:21] Production.INFO: ==9010== Releasing lock... [2025-02-17 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:49:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-17 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:50:06 [end_date_ymd] => 2025-02-17 08:50:06 [RateCDR] => 1 ) [2025-02-17 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:50:06' and `end` < '2025-02-17 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:50:19] Production.INFO: count ==215 [2025-02-17 08:50:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:50:06 - End Time 2025-02-17 08:50:06 [2025-02-17 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494624', 'tblTempUsageDetail_20' ) start [2025-02-17 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494624', 'tblTempUsageDetail_20' ) end [2025-02-17 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494624', 'tblTempVendorCDR_20' ) start [2025-02-17 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494624', 'tblTempVendorCDR_20' ) end [2025-02-17 08:50:19] Production.INFO: ProcessCDR(1,14494624,1,1,2) [2025-02-17 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494624', 'tblTempUsageDetail_20' ) start [2025-02-17 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494624', 'tblTempUsageDetail_20' ) end [2025-02-17 08:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:50:23] Production.INFO: ==9088== Releasing lock... [2025-02-17 08:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:50:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-17 08:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:51:04 [end_date_ymd] => 2025-02-17 08:51:04 [RateCDR] => 1 ) [2025-02-17 08:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:51:04' and `end` < '2025-02-17 08:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:51:17] Production.INFO: count ==220 [2025-02-17 08:51:17] Production.ERROR: pbx CDR StartTime 2025-02-17 05:51:04 - End Time 2025-02-17 08:51:04 [2025-02-17 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494629', 'tblTempUsageDetail_20' ) start [2025-02-17 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494629', 'tblTempUsageDetail_20' ) end [2025-02-17 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494629', 'tblTempVendorCDR_20' ) start [2025-02-17 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494629', 'tblTempVendorCDR_20' ) end [2025-02-17 08:51:17] Production.INFO: ProcessCDR(1,14494629,1,1,2) [2025-02-17 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494629', 'tblTempUsageDetail_20' ) start [2025-02-17 08:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494629', 'tblTempUsageDetail_20' ) end [2025-02-17 08:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:51:20] Production.INFO: ==9164== Releasing lock... [2025-02-17 08:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:51:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-17 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:52:05 [end_date_ymd] => 2025-02-17 08:52:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 05:52:05' and `end` < '2025-02-17 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-02-17 08:52:18] Production.INFO: count ==220 [2025-02-17 08:52:18] Production.ERROR: pbx CDR StartTime 2025-02-17 05:52:05 - End Time 2025-02-17 08:52:05 [2025-02-17 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494634', 'tblTempUsageDetail_20' ) start [2025-02-17 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494634', 'tblTempUsageDetail_20' ) end [2025-02-17 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494634', 'tblTempVendorCDR_20' ) start [2025-02-17 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494634', 'tblTempVendorCDR_20' ) end [2025-02-17 08:52:18] Production.INFO: ProcessCDR(1,14494634,1,1,2) [2025-02-17 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494634', 'tblTempUsageDetail_20' ) start [2025-02-17 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494634', 'tblTempUsageDetail_20' ) end [2025-02-17 08:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:52:22] Production.INFO: ==9244== Releasing lock... [2025-02-17 08:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:52:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-17 08:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:53:06 [end_date_ymd] => 2025-02-17 08:53:06 [RateCDR] => 1 ) [2025-02-17 08:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:53:06' and `end` < '2025-02-17 08:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:53:19] Production.INFO: count ==220 [2025-02-17 08:53:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:53:06 - End Time 2025-02-17 08:53:06 [2025-02-17 08:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494639', 'tblTempUsageDetail_20' ) start [2025-02-17 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494639', 'tblTempUsageDetail_20' ) end [2025-02-17 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494639', 'tblTempVendorCDR_20' ) start [2025-02-17 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494639', 'tblTempVendorCDR_20' ) end [2025-02-17 08:53:19] Production.INFO: ProcessCDR(1,14494639,1,1,2) [2025-02-17 08:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494639', 'tblTempUsageDetail_20' ) start [2025-02-17 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494639', 'tblTempUsageDetail_20' ) end [2025-02-17 08:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:53:23] Production.INFO: ==9324== Releasing lock... [2025-02-17 08:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:53:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-17 08:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:54:06 [end_date_ymd] => 2025-02-17 08:54:06 [RateCDR] => 1 ) [2025-02-17 08:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:54:06' and `end` < '2025-02-17 08:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:54:19] Production.INFO: count ==220 [2025-02-17 08:54:20] Production.ERROR: pbx CDR StartTime 2025-02-17 05:54:06 - End Time 2025-02-17 08:54:06 [2025-02-17 08:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494644', 'tblTempUsageDetail_20' ) start [2025-02-17 08:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494644', 'tblTempUsageDetail_20' ) end [2025-02-17 08:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494644', 'tblTempVendorCDR_20' ) start [2025-02-17 08:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494644', 'tblTempVendorCDR_20' ) end [2025-02-17 08:54:20] Production.INFO: ProcessCDR(1,14494644,1,1,2) [2025-02-17 08:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494644', 'tblTempUsageDetail_20' ) start [2025-02-17 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494644', 'tblTempUsageDetail_20' ) end [2025-02-17 08:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:54:23] Production.INFO: ==9398== Releasing lock... [2025-02-17 08:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:54:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-17 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:55:05 [end_date_ymd] => 2025-02-17 08:55:05 [RateCDR] => 1 ) [2025-02-17 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:55:05' and `end` < '2025-02-17 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:55:18] Production.INFO: count ==220 [2025-02-17 08:55:18] Production.ERROR: pbx CDR StartTime 2025-02-17 05:55:05 - End Time 2025-02-17 08:55:05 [2025-02-17 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494649', 'tblTempUsageDetail_20' ) start [2025-02-17 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494649', 'tblTempUsageDetail_20' ) end [2025-02-17 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494649', 'tblTempVendorCDR_20' ) start [2025-02-17 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494649', 'tblTempVendorCDR_20' ) end [2025-02-17 08:55:18] Production.INFO: ProcessCDR(1,14494649,1,1,2) [2025-02-17 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494649', 'tblTempUsageDetail_20' ) start [2025-02-17 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494649', 'tblTempUsageDetail_20' ) end [2025-02-17 08:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:55:22] Production.INFO: ==9473== Releasing lock... [2025-02-17 08:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:55:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-17 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:56:05 [end_date_ymd] => 2025-02-17 08:56:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 05:56:05' and `end` < '2025-02-17 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-02-17 08:56:19] Production.INFO: count ==221 [2025-02-17 08:56:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:56:05 - End Time 2025-02-17 08:56:05 [2025-02-17 08:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494654', 'tblTempUsageDetail_20' ) start [2025-02-17 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494654', 'tblTempUsageDetail_20' ) end [2025-02-17 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494654', 'tblTempVendorCDR_20' ) start [2025-02-17 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494654', 'tblTempVendorCDR_20' ) end [2025-02-17 08:56:19] Production.INFO: ProcessCDR(1,14494654,1,1,2) [2025-02-17 08:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494654', 'tblTempUsageDetail_20' ) start [2025-02-17 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494654', 'tblTempUsageDetail_20' ) end [2025-02-17 08:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:56:24] Production.INFO: ==9553== Releasing lock... [2025-02-17 08:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:56:24] Production.INFO: 30 MB #Memory Used# [2025-02-17 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:57:05 [end_date_ymd] => 2025-02-17 08:57:05 [RateCDR] => 1 ) [2025-02-17 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:57:05' and `end` < '2025-02-17 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:57:19] Production.INFO: count ==221 [2025-02-17 08:57:19] Production.ERROR: pbx CDR StartTime 2025-02-17 05:57:05 - End Time 2025-02-17 08:57:05 [2025-02-17 08:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494659', 'tblTempUsageDetail_20' ) start [2025-02-17 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494659', 'tblTempUsageDetail_20' ) end [2025-02-17 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494659', 'tblTempVendorCDR_20' ) start [2025-02-17 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494659', 'tblTempVendorCDR_20' ) end [2025-02-17 08:57:19] Production.INFO: ProcessCDR(1,14494659,1,1,2) [2025-02-17 08:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494659', 'tblTempUsageDetail_20' ) start [2025-02-17 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494659', 'tblTempUsageDetail_20' ) end [2025-02-17 08:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:57:22] Production.INFO: ==9631== Releasing lock... [2025-02-17 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:57:22] Production.INFO: 30 MB #Memory Used# [2025-02-17 08:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:58:06 [end_date_ymd] => 2025-02-17 08:58:06 [RateCDR] => 1 ) [2025-02-17 08:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:58:06' and `end` < '2025-02-17 08:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:58:20] Production.INFO: count ==221 [2025-02-17 08:58:20] Production.ERROR: pbx CDR StartTime 2025-02-17 05:58:06 - End Time 2025-02-17 08:58:06 [2025-02-17 08:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494664', 'tblTempUsageDetail_20' ) start [2025-02-17 08:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494664', 'tblTempUsageDetail_20' ) end [2025-02-17 08:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494664', 'tblTempVendorCDR_20' ) start [2025-02-17 08:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494664', 'tblTempVendorCDR_20' ) end [2025-02-17 08:58:20] Production.INFO: ProcessCDR(1,14494664,1,1,2) [2025-02-17 08:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494664', 'tblTempUsageDetail_20' ) start [2025-02-17 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494664', 'tblTempUsageDetail_20' ) end [2025-02-17 08:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:58:23] Production.INFO: ==9712== Releasing lock... [2025-02-17 08:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:58:23] Production.INFO: 30 MB #Memory Used# [2025-02-17 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 05:59:05 [end_date_ymd] => 2025-02-17 08:59:05 [RateCDR] => 1 ) [2025-02-17 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 05:59:05' and `end` < '2025-02-17 08:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 08:59:18] Production.INFO: count ==223 [2025-02-17 08:59:18] Production.ERROR: pbx CDR StartTime 2025-02-17 05:59:05 - End Time 2025-02-17 08:59:05 [2025-02-17 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494669', 'tblTempUsageDetail_20' ) start [2025-02-17 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494669', 'tblTempUsageDetail_20' ) end [2025-02-17 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494669', 'tblTempVendorCDR_20' ) start [2025-02-17 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494669', 'tblTempVendorCDR_20' ) end [2025-02-17 08:59:18] Production.INFO: ProcessCDR(1,14494669,1,1,2) [2025-02-17 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 08:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494669', 'tblTempUsageDetail_20' ) start [2025-02-17 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494669', 'tblTempUsageDetail_20' ) end [2025-02-17 08:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 08:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 08:59:23] Production.INFO: ==9827== Releasing lock... [2025-02-17 08:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 08:59:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-17 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:00:05 [end_date_ymd] => 2025-02-17 09:00:05 [RateCDR] => 1 ) [2025-02-17 09:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:00:05' and `end` < '2025-02-17 09:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:00:19] Production.INFO: count ==229 [2025-02-17 09:00:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:00:05 - End Time 2025-02-17 09:00:05 [2025-02-17 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494674', 'tblTempUsageDetail_20' ) start [2025-02-17 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494674', 'tblTempUsageDetail_20' ) end [2025-02-17 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494674', 'tblTempVendorCDR_20' ) start [2025-02-17 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494674', 'tblTempVendorCDR_20' ) end [2025-02-17 09:00:19] Production.INFO: ProcessCDR(1,14494674,1,1,2) [2025-02-17 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494674', 'tblTempUsageDetail_20' ) start [2025-02-17 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494674', 'tblTempUsageDetail_20' ) end [2025-02-17 09:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:00:23] Production.INFO: ==9905== Releasing lock... [2025-02-17 09:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:00:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-17 09:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:01:06 [end_date_ymd] => 2025-02-17 09:01:06 [RateCDR] => 1 ) [2025-02-17 09:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:01:06' and `end` < '2025-02-17 09:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:01:18] Production.INFO: count ==229 [2025-02-17 09:01:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:01:06 - End Time 2025-02-17 09:01:06 [2025-02-17 09:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494680', 'tblTempUsageDetail_20' ) start [2025-02-17 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494680', 'tblTempUsageDetail_20' ) end [2025-02-17 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494680', 'tblTempVendorCDR_20' ) start [2025-02-17 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494680', 'tblTempVendorCDR_20' ) end [2025-02-17 09:01:19] Production.INFO: ProcessCDR(1,14494680,1,1,2) [2025-02-17 09:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494680', 'tblTempUsageDetail_20' ) start [2025-02-17 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494680', 'tblTempUsageDetail_20' ) end [2025-02-17 09:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:01:22] Production.INFO: ==9996== Releasing lock... [2025-02-17 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:01:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-17 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:02:05 [end_date_ymd] => 2025-02-17 09:02:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 06:02:05' and `end` < '2025-02-17 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-02-17 09:02:18] Production.INFO: count ==237 [2025-02-17 09:02:18] Production.ERROR: pbx CDR StartTime 2025-02-17 06:02:05 - End Time 2025-02-17 09:02:05 [2025-02-17 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494685', 'tblTempUsageDetail_20' ) start [2025-02-17 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494685', 'tblTempUsageDetail_20' ) end [2025-02-17 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494685', 'tblTempVendorCDR_20' ) start [2025-02-17 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494685', 'tblTempVendorCDR_20' ) end [2025-02-17 09:02:18] Production.INFO: ProcessCDR(1,14494685,1,1,2) [2025-02-17 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494685', 'tblTempUsageDetail_20' ) start [2025-02-17 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494685', 'tblTempUsageDetail_20' ) end [2025-02-17 09:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:02:24] Production.INFO: ==10080== Releasing lock... [2025-02-17 09:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:02:24] Production.INFO: 30.5 MB #Memory Used# [2025-02-17 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:03:05 [end_date_ymd] => 2025-02-17 09:03:05 [RateCDR] => 1 ) [2025-02-17 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:03:05' and `end` < '2025-02-17 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:03:19] Production.INFO: count ==244 [2025-02-17 09:03:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:03:05 - End Time 2025-02-17 09:03:05 [2025-02-17 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494690', 'tblTempUsageDetail_20' ) start [2025-02-17 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494690', 'tblTempUsageDetail_20' ) end [2025-02-17 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494690', 'tblTempVendorCDR_20' ) start [2025-02-17 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494690', 'tblTempVendorCDR_20' ) end [2025-02-17 09:03:19] Production.INFO: ProcessCDR(1,14494690,1,1,2) [2025-02-17 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494690', 'tblTempUsageDetail_20' ) start [2025-02-17 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494690', 'tblTempUsageDetail_20' ) end [2025-02-17 09:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:03:22] Production.INFO: ==10167== Releasing lock... [2025-02-17 09:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:03:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-17 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:04:05 [end_date_ymd] => 2025-02-17 09:04:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 06:04:05' and `end` < '2025-02-17 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-02-17 09:04:18] Production.INFO: count ==252 [2025-02-17 09:04:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:04:05 - End Time 2025-02-17 09:04:05 [2025-02-17 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494695', 'tblTempUsageDetail_20' ) start [2025-02-17 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494695', 'tblTempUsageDetail_20' ) end [2025-02-17 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494695', 'tblTempVendorCDR_20' ) start [2025-02-17 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494695', 'tblTempVendorCDR_20' ) end [2025-02-17 09:04:19] Production.INFO: ProcessCDR(1,14494695,1,1,2) [2025-02-17 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494695', 'tblTempUsageDetail_20' ) start [2025-02-17 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494695', 'tblTempUsageDetail_20' ) end [2025-02-17 09:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:04:24] Production.INFO: ==10262== Releasing lock... [2025-02-17 09:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:04:24] Production.INFO: 30.5 MB #Memory Used# [2025-02-17 09:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:05:06 [end_date_ymd] => 2025-02-17 09:05:06 [RateCDR] => 1 ) [2025-02-17 09:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:05:06' and `end` < '2025-02-17 09:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:05:19] Production.INFO: count ==263 [2025-02-17 09:05:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:05:06 - End Time 2025-02-17 09:05:06 [2025-02-17 09:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494700', 'tblTempUsageDetail_20' ) start [2025-02-17 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494700', 'tblTempUsageDetail_20' ) end [2025-02-17 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494700', 'tblTempVendorCDR_20' ) start [2025-02-17 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494700', 'tblTempVendorCDR_20' ) end [2025-02-17 09:05:19] Production.INFO: ProcessCDR(1,14494700,1,1,2) [2025-02-17 09:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494700', 'tblTempUsageDetail_20' ) start [2025-02-17 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494700', 'tblTempUsageDetail_20' ) end [2025-02-17 09:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:05:23] Production.INFO: ==10350== Releasing lock... [2025-02-17 09:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:05:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-17 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:06:06 [end_date_ymd] => 2025-02-17 09:06:06 [RateCDR] => 1 ) [2025-02-17 09:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:06:06' and `end` < '2025-02-17 09:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:06:19] Production.INFO: count ==284 [2025-02-17 09:06:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:06:06 - End Time 2025-02-17 09:06:06 [2025-02-17 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494705', 'tblTempUsageDetail_20' ) start [2025-02-17 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494705', 'tblTempUsageDetail_20' ) end [2025-02-17 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494705', 'tblTempVendorCDR_20' ) start [2025-02-17 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494705', 'tblTempVendorCDR_20' ) end [2025-02-17 09:06:19] Production.INFO: ProcessCDR(1,14494705,1,1,2) [2025-02-17 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494705', 'tblTempUsageDetail_20' ) start [2025-02-17 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494705', 'tblTempUsageDetail_20' ) end [2025-02-17 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:06:23] Production.INFO: ==10442== Releasing lock... [2025-02-17 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:06:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-17 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:07:05 [end_date_ymd] => 2025-02-17 09:07:05 [RateCDR] => 1 ) [2025-02-17 09:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:07:05' and `end` < '2025-02-17 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:07:18] Production.INFO: count ==310 [2025-02-17 09:07:18] Production.ERROR: pbx CDR StartTime 2025-02-17 06:07:05 - End Time 2025-02-17 09:07:05 [2025-02-17 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494710', 'tblTempUsageDetail_20' ) start [2025-02-17 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494710', 'tblTempUsageDetail_20' ) end [2025-02-17 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494710', 'tblTempVendorCDR_20' ) start [2025-02-17 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494710', 'tblTempVendorCDR_20' ) end [2025-02-17 09:07:18] Production.INFO: ProcessCDR(1,14494710,1,1,2) [2025-02-17 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494710', 'tblTempUsageDetail_20' ) start [2025-02-17 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494710', 'tblTempUsageDetail_20' ) end [2025-02-17 09:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:07:22] Production.INFO: ==10516== Releasing lock... [2025-02-17 09:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:07:22] Production.INFO: 31 MB #Memory Used# [2025-02-17 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:08:05 [end_date_ymd] => 2025-02-17 09:08:05 [RateCDR] => 1 ) [2025-02-17 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:08:05' and `end` < '2025-02-17 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:08:19] Production.INFO: count ==327 [2025-02-17 09:08:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:08:05 - End Time 2025-02-17 09:08:05 [2025-02-17 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494715', 'tblTempUsageDetail_20' ) start [2025-02-17 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494715', 'tblTempUsageDetail_20' ) end [2025-02-17 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494715', 'tblTempVendorCDR_20' ) start [2025-02-17 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494715', 'tblTempVendorCDR_20' ) end [2025-02-17 09:08:19] Production.INFO: ProcessCDR(1,14494715,1,1,2) [2025-02-17 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494715', 'tblTempUsageDetail_20' ) start [2025-02-17 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494715', 'tblTempUsageDetail_20' ) end [2025-02-17 09:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:08:23] Production.INFO: ==10595== Releasing lock... [2025-02-17 09:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:08:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-17 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:09:05 [end_date_ymd] => 2025-02-17 09:09:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 06:09:05' and `end` < '2025-02-17 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-02-17 09:09:19] Production.INFO: count ==336 [2025-02-17 09:09:20] Production.ERROR: pbx CDR StartTime 2025-02-17 06:09:05 - End Time 2025-02-17 09:09:05 [2025-02-17 09:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494720', 'tblTempUsageDetail_20' ) start [2025-02-17 09:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494720', 'tblTempUsageDetail_20' ) end [2025-02-17 09:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494720', 'tblTempVendorCDR_20' ) start [2025-02-17 09:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494720', 'tblTempVendorCDR_20' ) end [2025-02-17 09:09:20] Production.INFO: ProcessCDR(1,14494720,1,1,2) [2025-02-17 09:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494720', 'tblTempUsageDetail_20' ) start [2025-02-17 09:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494720', 'tblTempUsageDetail_20' ) end [2025-02-17 09:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:09:25] Production.INFO: ==10671== Releasing lock... [2025-02-17 09:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:09:25] Production.INFO: 31.75 MB #Memory Used# [2025-02-17 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:10:06 [end_date_ymd] => 2025-02-17 09:10:06 [RateCDR] => 1 ) [2025-02-17 09:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:10:06' and `end` < '2025-02-17 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:10:19] Production.INFO: count ==346 [2025-02-17 09:10:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:10:06 - End Time 2025-02-17 09:10:06 [2025-02-17 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494725', 'tblTempUsageDetail_20' ) start [2025-02-17 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494725', 'tblTempUsageDetail_20' ) end [2025-02-17 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494725', 'tblTempVendorCDR_20' ) start [2025-02-17 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494725', 'tblTempVendorCDR_20' ) end [2025-02-17 09:10:19] Production.INFO: ProcessCDR(1,14494725,1,1,2) [2025-02-17 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494725', 'tblTempUsageDetail_20' ) start [2025-02-17 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494725', 'tblTempUsageDetail_20' ) end [2025-02-17 09:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:10:23] Production.INFO: ==10749== Releasing lock... [2025-02-17 09:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:10:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-17 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:11:05 [end_date_ymd] => 2025-02-17 09:11:05 [RateCDR] => 1 ) [2025-02-17 09:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:11:05' and `end` < '2025-02-17 09:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:11:20] Production.INFO: count ==393 [2025-02-17 09:11:20] Production.ERROR: pbx CDR StartTime 2025-02-17 06:11:05 - End Time 2025-02-17 09:11:05 [2025-02-17 09:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494731', 'tblTempUsageDetail_20' ) start [2025-02-17 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494731', 'tblTempUsageDetail_20' ) end [2025-02-17 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494731', 'tblTempVendorCDR_20' ) start [2025-02-17 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494731', 'tblTempVendorCDR_20' ) end [2025-02-17 09:11:20] Production.INFO: ProcessCDR(1,14494731,1,1,2) [2025-02-17 09:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494731', 'tblTempUsageDetail_20' ) start [2025-02-17 09:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494731', 'tblTempUsageDetail_20' ) end [2025-02-17 09:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:11:25] Production.INFO: ==10824== Releasing lock... [2025-02-17 09:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:11:25] Production.INFO: 31.75 MB #Memory Used# [2025-02-17 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:12:06 [end_date_ymd] => 2025-02-17 09:12:06 [RateCDR] => 1 ) [2025-02-17 09:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:12:06' and `end` < '2025-02-17 09:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:12:21] Production.INFO: count ==393 [2025-02-17 09:12:21] Production.ERROR: pbx CDR StartTime 2025-02-17 06:12:06 - End Time 2025-02-17 09:12:06 [2025-02-17 09:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494736', 'tblTempUsageDetail_20' ) start [2025-02-17 09:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494736', 'tblTempUsageDetail_20' ) end [2025-02-17 09:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494736', 'tblTempVendorCDR_20' ) start [2025-02-17 09:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494736', 'tblTempVendorCDR_20' ) end [2025-02-17 09:12:21] Production.INFO: ProcessCDR(1,14494736,1,1,2) [2025-02-17 09:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494736', 'tblTempUsageDetail_20' ) start [2025-02-17 09:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494736', 'tblTempUsageDetail_20' ) end [2025-02-17 09:12:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:12:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:12:25] Production.INFO: ==10898== Releasing lock... [2025-02-17 09:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:12:25] Production.INFO: 31.75 MB #Memory Used# [2025-02-17 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:13:05 [end_date_ymd] => 2025-02-17 09:13:05 [RateCDR] => 1 ) [2025-02-17 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:13:05' and `end` < '2025-02-17 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:13:19] Production.INFO: count ==399 [2025-02-17 09:13:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:13:05 - End Time 2025-02-17 09:13:05 [2025-02-17 09:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494741', 'tblTempUsageDetail_20' ) start [2025-02-17 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494741', 'tblTempUsageDetail_20' ) end [2025-02-17 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494741', 'tblTempVendorCDR_20' ) start [2025-02-17 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494741', 'tblTempVendorCDR_20' ) end [2025-02-17 09:13:19] Production.INFO: ProcessCDR(1,14494741,1,1,2) [2025-02-17 09:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494741', 'tblTempUsageDetail_20' ) start [2025-02-17 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494741', 'tblTempUsageDetail_20' ) end [2025-02-17 09:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:13:24] Production.INFO: ==10975== Releasing lock... [2025-02-17 09:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:13:24] Production.INFO: 31.75 MB #Memory Used# [2025-02-17 09:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:14:06 [end_date_ymd] => 2025-02-17 09:14:06 [RateCDR] => 1 ) [2025-02-17 09:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:14:06' and `end` < '2025-02-17 09:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:14:20] Production.INFO: count ==399 [2025-02-17 09:14:20] Production.ERROR: pbx CDR StartTime 2025-02-17 06:14:06 - End Time 2025-02-17 09:14:06 [2025-02-17 09:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494746', 'tblTempUsageDetail_20' ) start [2025-02-17 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494746', 'tblTempUsageDetail_20' ) end [2025-02-17 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494746', 'tblTempVendorCDR_20' ) start [2025-02-17 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494746', 'tblTempVendorCDR_20' ) end [2025-02-17 09:14:20] Production.INFO: ProcessCDR(1,14494746,1,1,2) [2025-02-17 09:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494746', 'tblTempUsageDetail_20' ) start [2025-02-17 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494746', 'tblTempUsageDetail_20' ) end [2025-02-17 09:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:14:24] Production.INFO: ==11087== Releasing lock... [2025-02-17 09:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:14:24] Production.INFO: 31.75 MB #Memory Used# [2025-02-17 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:15:05 [end_date_ymd] => 2025-02-17 09:15:05 [RateCDR] => 1 ) [2025-02-17 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:15:05' and `end` < '2025-02-17 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:15:18] Production.INFO: count ==437 [2025-02-17 09:15:18] Production.ERROR: pbx CDR StartTime 2025-02-17 06:15:05 - End Time 2025-02-17 09:15:05 [2025-02-17 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494751', 'tblTempUsageDetail_20' ) start [2025-02-17 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494751', 'tblTempUsageDetail_20' ) end [2025-02-17 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494751', 'tblTempVendorCDR_20' ) start [2025-02-17 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494751', 'tblTempVendorCDR_20' ) end [2025-02-17 09:15:18] Production.INFO: ProcessCDR(1,14494751,1,1,2) [2025-02-17 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494751', 'tblTempUsageDetail_20' ) start [2025-02-17 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494751', 'tblTempUsageDetail_20' ) end [2025-02-17 09:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:15:22] Production.INFO: ==11158== Releasing lock... [2025-02-17 09:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:15:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-17 09:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:16:06 [end_date_ymd] => 2025-02-17 09:16:06 [RateCDR] => 1 ) [2025-02-17 09:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:16:06' and `end` < '2025-02-17 09:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:16:19] Production.INFO: count ==452 [2025-02-17 09:16:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:16:06 - End Time 2025-02-17 09:16:06 [2025-02-17 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494756', 'tblTempUsageDetail_20' ) start [2025-02-17 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494756', 'tblTempUsageDetail_20' ) end [2025-02-17 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494756', 'tblTempVendorCDR_20' ) start [2025-02-17 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494756', 'tblTempVendorCDR_20' ) end [2025-02-17 09:16:19] Production.INFO: ProcessCDR(1,14494756,1,1,2) [2025-02-17 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494756', 'tblTempUsageDetail_20' ) start [2025-02-17 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494756', 'tblTempUsageDetail_20' ) end [2025-02-17 09:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:16:23] Production.INFO: ==11227== Releasing lock... [2025-02-17 09:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:16:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-17 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:17:05 [end_date_ymd] => 2025-02-17 09:17:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 06:17:05' and `end` < '2025-02-17 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-02-17 09:17:18] Production.INFO: count ==471 [2025-02-17 09:17:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:17:05 - End Time 2025-02-17 09:17:05 [2025-02-17 09:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494761', 'tblTempUsageDetail_20' ) start [2025-02-17 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494761', 'tblTempUsageDetail_20' ) end [2025-02-17 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494761', 'tblTempVendorCDR_20' ) start [2025-02-17 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494761', 'tblTempVendorCDR_20' ) end [2025-02-17 09:17:19] Production.INFO: ProcessCDR(1,14494761,1,1,2) [2025-02-17 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494761', 'tblTempUsageDetail_20' ) start [2025-02-17 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494761', 'tblTempUsageDetail_20' ) end [2025-02-17 09:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:17:22] Production.INFO: ==11298== Releasing lock... [2025-02-17 09:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:17:22] Production.INFO: 32 MB #Memory Used# [2025-02-17 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:18:05 [end_date_ymd] => 2025-02-17 09:18:05 [RateCDR] => 1 ) [2025-02-17 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:18:05' and `end` < '2025-02-17 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:18:20] Production.INFO: count ==471 [2025-02-17 09:18:20] Production.ERROR: pbx CDR StartTime 2025-02-17 06:18:05 - End Time 2025-02-17 09:18:05 [2025-02-17 09:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494766', 'tblTempUsageDetail_20' ) start [2025-02-17 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494766', 'tblTempUsageDetail_20' ) end [2025-02-17 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494766', 'tblTempVendorCDR_20' ) start [2025-02-17 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494766', 'tblTempVendorCDR_20' ) end [2025-02-17 09:18:20] Production.INFO: ProcessCDR(1,14494766,1,1,2) [2025-02-17 09:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494766', 'tblTempUsageDetail_20' ) start [2025-02-17 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494766', 'tblTempUsageDetail_20' ) end [2025-02-17 09:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:18:23] Production.INFO: ==11374== Releasing lock... [2025-02-17 09:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:18:23] Production.INFO: 32 MB #Memory Used# [2025-02-17 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:19:05 [end_date_ymd] => 2025-02-17 09:19:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 06:19:05' and `end` < '2025-02-17 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-02-17 09:19:20] Production.INFO: count ==470 [2025-02-17 09:19:20] Production.ERROR: pbx CDR StartTime 2025-02-17 06:19:05 - End Time 2025-02-17 09:19:05 [2025-02-17 09:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494771', 'tblTempUsageDetail_20' ) start [2025-02-17 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494771', 'tblTempUsageDetail_20' ) end [2025-02-17 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494771', 'tblTempVendorCDR_20' ) start [2025-02-17 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494771', 'tblTempVendorCDR_20' ) end [2025-02-17 09:19:20] Production.INFO: ProcessCDR(1,14494771,1,1,2) [2025-02-17 09:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494771', 'tblTempUsageDetail_20' ) start [2025-02-17 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494771', 'tblTempUsageDetail_20' ) end [2025-02-17 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:19:23] Production.INFO: ==11445== Releasing lock... [2025-02-17 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:19:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-17 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:20:06 [end_date_ymd] => 2025-02-17 09:20:06 [RateCDR] => 1 ) [2025-02-17 09:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:20:06' and `end` < '2025-02-17 09:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:20:19] Production.INFO: count ==524 [2025-02-17 09:20:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:20:06 - End Time 2025-02-17 09:20:06 [2025-02-17 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494777', 'tblTempUsageDetail_20' ) start [2025-02-17 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494777', 'tblTempUsageDetail_20' ) end [2025-02-17 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494777', 'tblTempVendorCDR_20' ) start [2025-02-17 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494777', 'tblTempVendorCDR_20' ) end [2025-02-17 09:20:19] Production.INFO: ProcessCDR(1,14494777,1,1,2) [2025-02-17 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494777', 'tblTempUsageDetail_20' ) start [2025-02-17 09:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494777', 'tblTempUsageDetail_20' ) end [2025-02-17 09:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:20:23] Production.INFO: ==11518== Releasing lock... [2025-02-17 09:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:20:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-17 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:21:05 [end_date_ymd] => 2025-02-17 09:21:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 06:21:05' and `end` < '2025-02-17 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-02-17 09:21:20] Production.INFO: count ==582 [2025-02-17 09:21:20] Production.ERROR: pbx CDR StartTime 2025-02-17 06:21:05 - End Time 2025-02-17 09:21:05 [2025-02-17 09:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494782', 'tblTempUsageDetail_20' ) start [2025-02-17 09:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494782', 'tblTempUsageDetail_20' ) end [2025-02-17 09:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494782', 'tblTempVendorCDR_20' ) start [2025-02-17 09:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494782', 'tblTempVendorCDR_20' ) end [2025-02-17 09:21:20] Production.INFO: ProcessCDR(1,14494782,1,1,2) [2025-02-17 09:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494782', 'tblTempUsageDetail_20' ) start [2025-02-17 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494782', 'tblTempUsageDetail_20' ) end [2025-02-17 09:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:21:23] Production.INFO: ==11594== Releasing lock... [2025-02-17 09:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:21:23] Production.INFO: 33 MB #Memory Used# [2025-02-17 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:22:05 [end_date_ymd] => 2025-02-17 09:22:05 [RateCDR] => 1 ) [2025-02-17 09:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:22:05' and `end` < '2025-02-17 09:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:22:18] Production.INFO: count ==582 [2025-02-17 09:22:18] Production.ERROR: pbx CDR StartTime 2025-02-17 06:22:05 - End Time 2025-02-17 09:22:05 [2025-02-17 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494787', 'tblTempUsageDetail_20' ) start [2025-02-17 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494787', 'tblTempUsageDetail_20' ) end [2025-02-17 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494787', 'tblTempVendorCDR_20' ) start [2025-02-17 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494787', 'tblTempVendorCDR_20' ) end [2025-02-17 09:22:19] Production.INFO: ProcessCDR(1,14494787,1,1,2) [2025-02-17 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494787', 'tblTempUsageDetail_20' ) start [2025-02-17 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494787', 'tblTempUsageDetail_20' ) end [2025-02-17 09:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:22:22] Production.INFO: ==11664== Releasing lock... [2025-02-17 09:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:22:22] Production.INFO: 33 MB #Memory Used# [2025-02-17 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:23:05 [end_date_ymd] => 2025-02-17 09:23:05 [RateCDR] => 1 ) [2025-02-17 09:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:23:05' and `end` < '2025-02-17 09:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:23:19] Production.INFO: count ==590 [2025-02-17 09:23:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:23:05 - End Time 2025-02-17 09:23:05 [2025-02-17 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494792', 'tblTempUsageDetail_20' ) start [2025-02-17 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494792', 'tblTempUsageDetail_20' ) end [2025-02-17 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494792', 'tblTempVendorCDR_20' ) start [2025-02-17 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494792', 'tblTempVendorCDR_20' ) end [2025-02-17 09:23:19] Production.INFO: ProcessCDR(1,14494792,1,1,2) [2025-02-17 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494792', 'tblTempUsageDetail_20' ) start [2025-02-17 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494792', 'tblTempUsageDetail_20' ) end [2025-02-17 09:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:23:23] Production.INFO: ==11741== Releasing lock... [2025-02-17 09:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:23:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-17 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:24:06 [end_date_ymd] => 2025-02-17 09:24:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 06:24:06' and `end` < '2025-02-17 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-02-17 09:24:20] Production.INFO: count ==600 [2025-02-17 09:24:20] Production.ERROR: pbx CDR StartTime 2025-02-17 06:24:06 - End Time 2025-02-17 09:24:06 [2025-02-17 09:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494797', 'tblTempUsageDetail_20' ) start [2025-02-17 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494797', 'tblTempUsageDetail_20' ) end [2025-02-17 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494797', 'tblTempVendorCDR_20' ) start [2025-02-17 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494797', 'tblTempVendorCDR_20' ) end [2025-02-17 09:24:20] Production.INFO: ProcessCDR(1,14494797,1,1,2) [2025-02-17 09:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494797', 'tblTempUsageDetail_20' ) start [2025-02-17 09:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494797', 'tblTempUsageDetail_20' ) end [2025-02-17 09:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:24:25] Production.INFO: ==11815== Releasing lock... [2025-02-17 09:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:24:25] Production.INFO: 33.75 MB #Memory Used# [2025-02-17 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:25:05 [end_date_ymd] => 2025-02-17 09:25:05 [RateCDR] => 1 ) [2025-02-17 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:25:05' and `end` < '2025-02-17 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:25:18] Production.INFO: count ==602 [2025-02-17 09:25:18] Production.ERROR: pbx CDR StartTime 2025-02-17 06:25:05 - End Time 2025-02-17 09:25:05 [2025-02-17 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494802', 'tblTempUsageDetail_20' ) start [2025-02-17 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494802', 'tblTempUsageDetail_20' ) end [2025-02-17 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494802', 'tblTempVendorCDR_20' ) start [2025-02-17 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494802', 'tblTempVendorCDR_20' ) end [2025-02-17 09:25:18] Production.INFO: ProcessCDR(1,14494802,1,1,2) [2025-02-17 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494802', 'tblTempUsageDetail_20' ) start [2025-02-17 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494802', 'tblTempUsageDetail_20' ) end [2025-02-17 09:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:25:23] Production.INFO: ==11886== Releasing lock... [2025-02-17 09:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:25:23] Production.INFO: 33 MB #Memory Used# [2025-02-17 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:26:05 [end_date_ymd] => 2025-02-17 09:26:05 [RateCDR] => 1 ) [2025-02-17 09:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:26:05' and `end` < '2025-02-17 09:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:26:19] Production.INFO: count ==602 [2025-02-17 09:26:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:26:05 - End Time 2025-02-17 09:26:05 [2025-02-17 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494807', 'tblTempUsageDetail_20' ) start [2025-02-17 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494807', 'tblTempUsageDetail_20' ) end [2025-02-17 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494807', 'tblTempVendorCDR_20' ) start [2025-02-17 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494807', 'tblTempVendorCDR_20' ) end [2025-02-17 09:26:19] Production.INFO: ProcessCDR(1,14494807,1,1,2) [2025-02-17 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494807', 'tblTempUsageDetail_20' ) start [2025-02-17 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494807', 'tblTempUsageDetail_20' ) end [2025-02-17 09:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:26:23] Production.INFO: ==11968== Releasing lock... [2025-02-17 09:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:26:23] Production.INFO: 33 MB #Memory Used# [2025-02-17 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:27:05 [end_date_ymd] => 2025-02-17 09:27:05 [RateCDR] => 1 ) [2025-02-17 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:27:05' and `end` < '2025-02-17 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:27:20] Production.INFO: count ==603 [2025-02-17 09:27:21] Production.ERROR: pbx CDR StartTime 2025-02-17 06:27:05 - End Time 2025-02-17 09:27:05 [2025-02-17 09:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494812', 'tblTempUsageDetail_20' ) start [2025-02-17 09:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494812', 'tblTempUsageDetail_20' ) end [2025-02-17 09:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494812', 'tblTempVendorCDR_20' ) start [2025-02-17 09:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494812', 'tblTempVendorCDR_20' ) end [2025-02-17 09:27:21] Production.INFO: ProcessCDR(1,14494812,1,1,2) [2025-02-17 09:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494812', 'tblTempUsageDetail_20' ) start [2025-02-17 09:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494812', 'tblTempUsageDetail_20' ) end [2025-02-17 09:27:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:27:25] Production.INFO: ==12038== Releasing lock... [2025-02-17 09:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:27:25] Production.INFO: 33 MB #Memory Used# [2025-02-17 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:28:05 [end_date_ymd] => 2025-02-17 09:28:05 [RateCDR] => 1 ) [2025-02-17 09:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:28:05' and `end` < '2025-02-17 09:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:28:18] Production.INFO: count ==602 [2025-02-17 09:28:18] Production.ERROR: pbx CDR StartTime 2025-02-17 06:28:05 - End Time 2025-02-17 09:28:05 [2025-02-17 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494817', 'tblTempUsageDetail_20' ) start [2025-02-17 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494817', 'tblTempUsageDetail_20' ) end [2025-02-17 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494817', 'tblTempVendorCDR_20' ) start [2025-02-17 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494817', 'tblTempVendorCDR_20' ) end [2025-02-17 09:28:19] Production.INFO: ProcessCDR(1,14494817,1,1,2) [2025-02-17 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494817', 'tblTempUsageDetail_20' ) start [2025-02-17 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494817', 'tblTempUsageDetail_20' ) end [2025-02-17 09:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:28:23] Production.INFO: ==12113== Releasing lock... [2025-02-17 09:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:28:23] Production.INFO: 33 MB #Memory Used# [2025-02-17 09:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:29:04 [end_date_ymd] => 2025-02-17 09:29:04 [RateCDR] => 1 ) [2025-02-17 09: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-02-17 06:29:04' and `end` < '2025-02-17 09: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-02-17 09:29:18] Production.INFO: count ==629 [2025-02-17 09:29:18] Production.ERROR: pbx CDR StartTime 2025-02-17 06:29:04 - End Time 2025-02-17 09:29:04 [2025-02-17 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494822', 'tblTempUsageDetail_20' ) start [2025-02-17 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494822', 'tblTempUsageDetail_20' ) end [2025-02-17 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494822', 'tblTempVendorCDR_20' ) start [2025-02-17 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494822', 'tblTempVendorCDR_20' ) end [2025-02-17 09:29:18] Production.INFO: ProcessCDR(1,14494822,1,1,2) [2025-02-17 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494822', 'tblTempUsageDetail_20' ) start [2025-02-17 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494822', 'tblTempUsageDetail_20' ) end [2025-02-17 09:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:29:23] Production.INFO: ==12222== Releasing lock... [2025-02-17 09:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:29:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-17 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:30:06 [end_date_ymd] => 2025-02-17 09:30:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 06:30:06' and `end` < '2025-02-17 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-02-17 09:30:19] Production.INFO: count ==636 [2025-02-17 09:30:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:30:06 - End Time 2025-02-17 09:30:06 [2025-02-17 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494828', 'tblTempUsageDetail_20' ) start [2025-02-17 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494828', 'tblTempUsageDetail_20' ) end [2025-02-17 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494828', 'tblTempVendorCDR_20' ) start [2025-02-17 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494828', 'tblTempVendorCDR_20' ) end [2025-02-17 09:30:19] Production.INFO: ProcessCDR(1,14494828,1,1,2) [2025-02-17 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494828', 'tblTempUsageDetail_20' ) start [2025-02-17 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494828', 'tblTempUsageDetail_20' ) end [2025-02-17 09:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:30:23] Production.INFO: ==12297== Releasing lock... [2025-02-17 09:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:30:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-17 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:31:05 [end_date_ymd] => 2025-02-17 09:31:05 [RateCDR] => 1 ) [2025-02-17 09:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:31:05' and `end` < '2025-02-17 09:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:31:18] Production.INFO: count ==666 [2025-02-17 09:31:18] Production.ERROR: pbx CDR StartTime 2025-02-17 06:31:05 - End Time 2025-02-17 09:31:05 [2025-02-17 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494833', 'tblTempUsageDetail_20' ) start [2025-02-17 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494833', 'tblTempUsageDetail_20' ) end [2025-02-17 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494833', 'tblTempVendorCDR_20' ) start [2025-02-17 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494833', 'tblTempVendorCDR_20' ) end [2025-02-17 09:31:18] Production.INFO: ProcessCDR(1,14494833,1,1,2) [2025-02-17 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494833', 'tblTempUsageDetail_20' ) start [2025-02-17 09:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494833', 'tblTempUsageDetail_20' ) end [2025-02-17 09:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:31:22] Production.INFO: ==12367== Releasing lock... [2025-02-17 09:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:31:22] Production.INFO: 34 MB #Memory Used# [2025-02-17 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:32:05 [end_date_ymd] => 2025-02-17 09:32:05 [RateCDR] => 1 ) [2025-02-17 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:32:05' and `end` < '2025-02-17 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:32:19] Production.INFO: count ==673 [2025-02-17 09:32:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:32:05 - End Time 2025-02-17 09:32:05 [2025-02-17 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494838', 'tblTempUsageDetail_20' ) start [2025-02-17 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494838', 'tblTempUsageDetail_20' ) end [2025-02-17 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494838', 'tblTempVendorCDR_20' ) start [2025-02-17 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494838', 'tblTempVendorCDR_20' ) end [2025-02-17 09:32:19] Production.INFO: ProcessCDR(1,14494838,1,1,2) [2025-02-17 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494838', 'tblTempUsageDetail_20' ) start [2025-02-17 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494838', 'tblTempUsageDetail_20' ) end [2025-02-17 09:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:32:24] Production.INFO: ==12440== Releasing lock... [2025-02-17 09:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:32:24] Production.INFO: 33.75 MB #Memory Used# [2025-02-17 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:33:05 [end_date_ymd] => 2025-02-17 09:33:05 [RateCDR] => 1 ) [2025-02-17 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:33:05' and `end` < '2025-02-17 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:33:18] Production.INFO: count ==691 [2025-02-17 09:33:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:33:05 - End Time 2025-02-17 09:33:05 [2025-02-17 09:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494843', 'tblTempUsageDetail_20' ) start [2025-02-17 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494843', 'tblTempUsageDetail_20' ) end [2025-02-17 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494843', 'tblTempVendorCDR_20' ) start [2025-02-17 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494843', 'tblTempVendorCDR_20' ) end [2025-02-17 09:33:19] Production.INFO: ProcessCDR(1,14494843,1,1,2) [2025-02-17 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494843', 'tblTempUsageDetail_20' ) start [2025-02-17 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494843', 'tblTempUsageDetail_20' ) end [2025-02-17 09:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:33:23] Production.INFO: ==12511== Releasing lock... [2025-02-17 09:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:33:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-17 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:34:05 [end_date_ymd] => 2025-02-17 09:34:05 [RateCDR] => 1 ) [2025-02-17 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:34:05' and `end` < '2025-02-17 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:34:18] Production.INFO: count ==697 [2025-02-17 09:34:18] Production.ERROR: pbx CDR StartTime 2025-02-17 06:34:05 - End Time 2025-02-17 09:34:05 [2025-02-17 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494848', 'tblTempUsageDetail_20' ) start [2025-02-17 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494848', 'tblTempUsageDetail_20' ) end [2025-02-17 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494848', 'tblTempVendorCDR_20' ) start [2025-02-17 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494848', 'tblTempVendorCDR_20' ) end [2025-02-17 09:34:18] Production.INFO: ProcessCDR(1,14494848,1,1,2) [2025-02-17 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494848', 'tblTempUsageDetail_20' ) start [2025-02-17 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494848', 'tblTempUsageDetail_20' ) end [2025-02-17 09:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:34:23] Production.INFO: ==12585== Releasing lock... [2025-02-17 09:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:34:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-17 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:35:05 [end_date_ymd] => 2025-02-17 09:35:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 06:35:05' and `end` < '2025-02-17 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-02-17 09:35:18] Production.INFO: count ==697 [2025-02-17 09:35:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:35:05 - End Time 2025-02-17 09:35:05 [2025-02-17 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494853', 'tblTempUsageDetail_20' ) start [2025-02-17 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494853', 'tblTempUsageDetail_20' ) end [2025-02-17 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494853', 'tblTempVendorCDR_20' ) start [2025-02-17 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494853', 'tblTempVendorCDR_20' ) end [2025-02-17 09:35:19] Production.INFO: ProcessCDR(1,14494853,1,1,2) [2025-02-17 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494853', 'tblTempUsageDetail_20' ) start [2025-02-17 09:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494853', 'tblTempUsageDetail_20' ) end [2025-02-17 09:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:35:22] Production.INFO: ==12654== Releasing lock... [2025-02-17 09:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:35:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-17 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:36:05 [end_date_ymd] => 2025-02-17 09:36:05 [RateCDR] => 1 ) [2025-02-17 09:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:36:05' and `end` < '2025-02-17 09:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:36:19] Production.INFO: count ==698 [2025-02-17 09:36:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:36:05 - End Time 2025-02-17 09:36:05 [2025-02-17 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494858', 'tblTempUsageDetail_20' ) start [2025-02-17 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494858', 'tblTempUsageDetail_20' ) end [2025-02-17 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494858', 'tblTempVendorCDR_20' ) start [2025-02-17 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494858', 'tblTempVendorCDR_20' ) end [2025-02-17 09:36:20] Production.INFO: ProcessCDR(1,14494858,1,1,2) [2025-02-17 09:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494858', 'tblTempUsageDetail_20' ) start [2025-02-17 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494858', 'tblTempUsageDetail_20' ) end [2025-02-17 09:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:36:24] Production.INFO: ==12726== Releasing lock... [2025-02-17 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:36:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-17 09:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:37:06 [end_date_ymd] => 2025-02-17 09:37:06 [RateCDR] => 1 ) [2025-02-17 09:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:37:06' and `end` < '2025-02-17 09:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:37:19] Production.INFO: count ==704 [2025-02-17 09:37:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:37:06 - End Time 2025-02-17 09:37:06 [2025-02-17 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494863', 'tblTempUsageDetail_20' ) start [2025-02-17 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494863', 'tblTempUsageDetail_20' ) end [2025-02-17 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494863', 'tblTempVendorCDR_20' ) start [2025-02-17 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494863', 'tblTempVendorCDR_20' ) end [2025-02-17 09:37:19] Production.INFO: ProcessCDR(1,14494863,1,1,2) [2025-02-17 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494863', 'tblTempUsageDetail_20' ) start [2025-02-17 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494863', 'tblTempUsageDetail_20' ) end [2025-02-17 09:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:37:23] Production.INFO: ==12799== Releasing lock... [2025-02-17 09:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:37:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-17 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:38:05 [end_date_ymd] => 2025-02-17 09:38:05 [RateCDR] => 1 ) [2025-02-17 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:38:05' and `end` < '2025-02-17 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:38:18] Production.INFO: count ==710 [2025-02-17 09:38:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:38:05 - End Time 2025-02-17 09:38:05 [2025-02-17 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494868', 'tblTempUsageDetail_20' ) start [2025-02-17 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494868', 'tblTempUsageDetail_20' ) end [2025-02-17 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494868', 'tblTempVendorCDR_20' ) start [2025-02-17 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494868', 'tblTempVendorCDR_20' ) end [2025-02-17 09:38:19] Production.INFO: ProcessCDR(1,14494868,1,1,2) [2025-02-17 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494868', 'tblTempUsageDetail_20' ) start [2025-02-17 09:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494868', 'tblTempUsageDetail_20' ) end [2025-02-17 09:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:38:22] Production.INFO: ==12873== Releasing lock... [2025-02-17 09:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:38:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-17 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:39:05 [end_date_ymd] => 2025-02-17 09:39:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 06:39:05' and `end` < '2025-02-17 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-02-17 09:39:19] Production.INFO: count ==713 [2025-02-17 09:39:20] Production.ERROR: pbx CDR StartTime 2025-02-17 06:39:05 - End Time 2025-02-17 09:39:05 [2025-02-17 09:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494873', 'tblTempUsageDetail_20' ) start [2025-02-17 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494873', 'tblTempUsageDetail_20' ) end [2025-02-17 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494873', 'tblTempVendorCDR_20' ) start [2025-02-17 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494873', 'tblTempVendorCDR_20' ) end [2025-02-17 09:39:20] Production.INFO: ProcessCDR(1,14494873,1,1,2) [2025-02-17 09:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494873', 'tblTempUsageDetail_20' ) start [2025-02-17 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494873', 'tblTempUsageDetail_20' ) end [2025-02-17 09:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:39:23] Production.INFO: ==12945== Releasing lock... [2025-02-17 09:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:39:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-17 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:40:06 [end_date_ymd] => 2025-02-17 09:40:06 [RateCDR] => 1 ) [2025-02-17 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:40:06' and `end` < '2025-02-17 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:40:19] Production.INFO: count ==723 [2025-02-17 09:40:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:40:06 - End Time 2025-02-17 09:40:06 [2025-02-17 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494878', 'tblTempUsageDetail_20' ) start [2025-02-17 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494878', 'tblTempUsageDetail_20' ) end [2025-02-17 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494878', 'tblTempVendorCDR_20' ) start [2025-02-17 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494878', 'tblTempVendorCDR_20' ) end [2025-02-17 09:40:19] Production.INFO: ProcessCDR(1,14494878,1,1,2) [2025-02-17 09:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494878', 'tblTempUsageDetail_20' ) start [2025-02-17 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494878', 'tblTempUsageDetail_20' ) end [2025-02-17 09:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:40:23] Production.INFO: ==13019== Releasing lock... [2025-02-17 09:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:40:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-17 09:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:41:06 [end_date_ymd] => 2025-02-17 09:41:06 [RateCDR] => 1 ) [2025-02-17 09:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:41:06' and `end` < '2025-02-17 09:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:41:19] Production.INFO: count ==746 [2025-02-17 09:41:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:41:06 - End Time 2025-02-17 09:41:06 [2025-02-17 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494884', 'tblTempUsageDetail_20' ) start [2025-02-17 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494884', 'tblTempUsageDetail_20' ) end [2025-02-17 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494884', 'tblTempVendorCDR_20' ) start [2025-02-17 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494884', 'tblTempVendorCDR_20' ) end [2025-02-17 09:41:19] Production.INFO: ProcessCDR(1,14494884,1,1,2) [2025-02-17 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494884', 'tblTempUsageDetail_20' ) start [2025-02-17 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494884', 'tblTempUsageDetail_20' ) end [2025-02-17 09:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:41:23] Production.INFO: ==13094== Releasing lock... [2025-02-17 09:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:41:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-17 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:42:05 [end_date_ymd] => 2025-02-17 09:42:05 [RateCDR] => 1 ) [2025-02-17 09:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:42:05' and `end` < '2025-02-17 09:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:42:20] Production.INFO: count ==750 [2025-02-17 09:42:20] Production.ERROR: pbx CDR StartTime 2025-02-17 06:42:05 - End Time 2025-02-17 09:42:05 [2025-02-17 09:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494889', 'tblTempUsageDetail_20' ) start [2025-02-17 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494889', 'tblTempUsageDetail_20' ) end [2025-02-17 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494889', 'tblTempVendorCDR_20' ) start [2025-02-17 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494889', 'tblTempVendorCDR_20' ) end [2025-02-17 09:42:20] Production.INFO: ProcessCDR(1,14494889,1,1,2) [2025-02-17 09:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494889', 'tblTempUsageDetail_20' ) start [2025-02-17 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494889', 'tblTempUsageDetail_20' ) end [2025-02-17 09:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:42:23] Production.INFO: ==13164== Releasing lock... [2025-02-17 09:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:42:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-17 09:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:43:06 [end_date_ymd] => 2025-02-17 09:43:06 [RateCDR] => 1 ) [2025-02-17 09:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:43:06' and `end` < '2025-02-17 09:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:43:19] Production.INFO: count ==780 [2025-02-17 09:43:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:43:06 - End Time 2025-02-17 09:43:06 [2025-02-17 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494894', 'tblTempUsageDetail_20' ) start [2025-02-17 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494894', 'tblTempUsageDetail_20' ) end [2025-02-17 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494894', 'tblTempVendorCDR_20' ) start [2025-02-17 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494894', 'tblTempVendorCDR_20' ) end [2025-02-17 09:43:19] Production.INFO: ProcessCDR(1,14494894,1,1,2) [2025-02-17 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494894', 'tblTempUsageDetail_20' ) start [2025-02-17 09:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494894', 'tblTempUsageDetail_20' ) end [2025-02-17 09:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:43:22] Production.INFO: ==13239== Releasing lock... [2025-02-17 09:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:43:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-17 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:44:05 [end_date_ymd] => 2025-02-17 09:44:05 [RateCDR] => 1 ) [2025-02-17 09:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:44:05' and `end` < '2025-02-17 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:44:18] Production.INFO: count ==780 [2025-02-17 09:44:18] Production.ERROR: pbx CDR StartTime 2025-02-17 06:44:05 - End Time 2025-02-17 09:44:05 [2025-02-17 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494899', 'tblTempUsageDetail_20' ) start [2025-02-17 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494899', 'tblTempUsageDetail_20' ) end [2025-02-17 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494899', 'tblTempVendorCDR_20' ) start [2025-02-17 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494899', 'tblTempVendorCDR_20' ) end [2025-02-17 09:44:18] Production.INFO: ProcessCDR(1,14494899,1,1,2) [2025-02-17 09:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494899', 'tblTempUsageDetail_20' ) start [2025-02-17 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494899', 'tblTempUsageDetail_20' ) end [2025-02-17 09:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:44:21] Production.INFO: ==13310== Releasing lock... [2025-02-17 09:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:44:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-17 09:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:45:06 [end_date_ymd] => 2025-02-17 09:45:06 [RateCDR] => 1 ) [2025-02-17 09:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:45:06' and `end` < '2025-02-17 09:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:45:19] Production.INFO: count ==782 [2025-02-17 09:45:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:45:06 - End Time 2025-02-17 09:45:06 [2025-02-17 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494904', 'tblTempUsageDetail_20' ) start [2025-02-17 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494904', 'tblTempUsageDetail_20' ) end [2025-02-17 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494904', 'tblTempVendorCDR_20' ) start [2025-02-17 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494904', 'tblTempVendorCDR_20' ) end [2025-02-17 09:45:19] Production.INFO: ProcessCDR(1,14494904,1,1,2) [2025-02-17 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494904', 'tblTempUsageDetail_20' ) start [2025-02-17 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494904', 'tblTempUsageDetail_20' ) end [2025-02-17 09:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:45:23] Production.INFO: ==13425== Releasing lock... [2025-02-17 09:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:45:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-17 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:46:05 [end_date_ymd] => 2025-02-17 09:46:05 [RateCDR] => 1 ) [2025-02-17 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:46:05' and `end` < '2025-02-17 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:46:18] Production.INFO: count ==798 [2025-02-17 09:46:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:46:05 - End Time 2025-02-17 09:46:05 [2025-02-17 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494909', 'tblTempUsageDetail_20' ) start [2025-02-17 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494909', 'tblTempUsageDetail_20' ) end [2025-02-17 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494909', 'tblTempVendorCDR_20' ) start [2025-02-17 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494909', 'tblTempVendorCDR_20' ) end [2025-02-17 09:46:19] Production.INFO: ProcessCDR(1,14494909,1,1,2) [2025-02-17 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494909', 'tblTempUsageDetail_20' ) start [2025-02-17 09:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494909', 'tblTempUsageDetail_20' ) end [2025-02-17 09:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:46:22] Production.INFO: ==13495== Releasing lock... [2025-02-17 09:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:46:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-17 09:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:47:06 [end_date_ymd] => 2025-02-17 09:47:06 [RateCDR] => 1 ) [2025-02-17 09:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:47:06' and `end` < '2025-02-17 09:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:47:19] Production.INFO: count ==813 [2025-02-17 09:47:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:47:06 - End Time 2025-02-17 09:47:06 [2025-02-17 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494914', 'tblTempUsageDetail_20' ) start [2025-02-17 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494914', 'tblTempUsageDetail_20' ) end [2025-02-17 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494914', 'tblTempVendorCDR_20' ) start [2025-02-17 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494914', 'tblTempVendorCDR_20' ) end [2025-02-17 09:47:19] Production.INFO: ProcessCDR(1,14494914,1,1,2) [2025-02-17 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494914', 'tblTempUsageDetail_20' ) start [2025-02-17 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494914', 'tblTempUsageDetail_20' ) end [2025-02-17 09:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:47:23] Production.INFO: ==13565== Releasing lock... [2025-02-17 09:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:47:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-17 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:48:05 [end_date_ymd] => 2025-02-17 09:48:05 [RateCDR] => 1 ) [2025-02-17 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:48:05' and `end` < '2025-02-17 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:48:18] Production.INFO: count ==814 [2025-02-17 09:48:18] Production.ERROR: pbx CDR StartTime 2025-02-17 06:48:05 - End Time 2025-02-17 09:48:05 [2025-02-17 09:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494919', 'tblTempUsageDetail_20' ) start [2025-02-17 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494919', 'tblTempUsageDetail_20' ) end [2025-02-17 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494919', 'tblTempVendorCDR_20' ) start [2025-02-17 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494919', 'tblTempVendorCDR_20' ) end [2025-02-17 09:48:18] Production.INFO: ProcessCDR(1,14494919,1,1,2) [2025-02-17 09:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494919', 'tblTempUsageDetail_20' ) start [2025-02-17 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494919', 'tblTempUsageDetail_20' ) end [2025-02-17 09:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:48:22] Production.INFO: ==13638== Releasing lock... [2025-02-17 09:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:48:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-17 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:49:05 [end_date_ymd] => 2025-02-17 09:49:05 [RateCDR] => 1 ) [2025-02-17 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:49:05' and `end` < '2025-02-17 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:49:18] Production.INFO: count ==815 [2025-02-17 09:49:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:49:05 - End Time 2025-02-17 09:49:05 [2025-02-17 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494924', 'tblTempUsageDetail_20' ) start [2025-02-17 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494924', 'tblTempUsageDetail_20' ) end [2025-02-17 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494924', 'tblTempVendorCDR_20' ) start [2025-02-17 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494924', 'tblTempVendorCDR_20' ) end [2025-02-17 09:49:19] Production.INFO: ProcessCDR(1,14494924,1,1,2) [2025-02-17 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494924', 'tblTempUsageDetail_20' ) start [2025-02-17 09:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494924', 'tblTempUsageDetail_20' ) end [2025-02-17 09:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:49:22] Production.INFO: ==13711== Releasing lock... [2025-02-17 09:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:49:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-17 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:50:06 [end_date_ymd] => 2025-02-17 09:50:06 [RateCDR] => 1 ) [2025-02-17 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:50:06' and `end` < '2025-02-17 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:50:19] Production.INFO: count ==838 [2025-02-17 09:50:20] Production.ERROR: pbx CDR StartTime 2025-02-17 06:50:06 - End Time 2025-02-17 09:50:06 [2025-02-17 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494929', 'tblTempUsageDetail_20' ) start [2025-02-17 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494929', 'tblTempUsageDetail_20' ) end [2025-02-17 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494929', 'tblTempVendorCDR_20' ) start [2025-02-17 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494929', 'tblTempVendorCDR_20' ) end [2025-02-17 09:50:20] Production.INFO: ProcessCDR(1,14494929,1,1,2) [2025-02-17 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494929', 'tblTempUsageDetail_20' ) start [2025-02-17 09:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494929', 'tblTempUsageDetail_20' ) end [2025-02-17 09:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:50:23] Production.INFO: ==13786== Releasing lock... [2025-02-17 09:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:50:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-17 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:51:05 [end_date_ymd] => 2025-02-17 09:51:05 [RateCDR] => 1 ) [2025-02-17 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:51:05' and `end` < '2025-02-17 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:51:19] Production.INFO: count ==841 [2025-02-17 09:51:20] Production.ERROR: pbx CDR StartTime 2025-02-17 06:51:05 - End Time 2025-02-17 09:51:05 [2025-02-17 09:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494935', 'tblTempUsageDetail_20' ) start [2025-02-17 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494935', 'tblTempUsageDetail_20' ) end [2025-02-17 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494935', 'tblTempVendorCDR_20' ) start [2025-02-17 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494935', 'tblTempVendorCDR_20' ) end [2025-02-17 09:51:20] Production.INFO: ProcessCDR(1,14494935,1,1,2) [2025-02-17 09:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494935', 'tblTempUsageDetail_20' ) start [2025-02-17 09:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494935', 'tblTempUsageDetail_20' ) end [2025-02-17 09:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:51:25] Production.INFO: ==13858== Releasing lock... [2025-02-17 09:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:51:25] Production.INFO: 34.5 MB #Memory Used# [2025-02-17 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:52:05 [end_date_ymd] => 2025-02-17 09:52:05 [RateCDR] => 1 ) [2025-02-17 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:52:05' and `end` < '2025-02-17 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:52:18] Production.INFO: count ==841 [2025-02-17 09:52:18] Production.ERROR: pbx CDR StartTime 2025-02-17 06:52:05 - End Time 2025-02-17 09:52:05 [2025-02-17 09:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494940', 'tblTempUsageDetail_20' ) start [2025-02-17 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494940', 'tblTempUsageDetail_20' ) end [2025-02-17 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494940', 'tblTempVendorCDR_20' ) start [2025-02-17 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494940', 'tblTempVendorCDR_20' ) end [2025-02-17 09:52:18] Production.INFO: ProcessCDR(1,14494940,1,1,2) [2025-02-17 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494940', 'tblTempUsageDetail_20' ) start [2025-02-17 09:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494940', 'tblTempUsageDetail_20' ) end [2025-02-17 09:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:52:22] Production.INFO: ==13930== Releasing lock... [2025-02-17 09:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:52:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-17 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:53:05 [end_date_ymd] => 2025-02-17 09:53:05 [RateCDR] => 1 ) [2025-02-17 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:53:05' and `end` < '2025-02-17 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:53:20] Production.INFO: count ==842 [2025-02-17 09:53:21] Production.ERROR: pbx CDR StartTime 2025-02-17 06:53:05 - End Time 2025-02-17 09:53:05 [2025-02-17 09:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494945', 'tblTempUsageDetail_20' ) start [2025-02-17 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494945', 'tblTempUsageDetail_20' ) end [2025-02-17 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494945', 'tblTempVendorCDR_20' ) start [2025-02-17 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494945', 'tblTempVendorCDR_20' ) end [2025-02-17 09:53:21] Production.INFO: ProcessCDR(1,14494945,1,1,2) [2025-02-17 09:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494945', 'tblTempUsageDetail_20' ) start [2025-02-17 09:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494945', 'tblTempUsageDetail_20' ) end [2025-02-17 09:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:53:26] Production.INFO: ==14006== Releasing lock... [2025-02-17 09:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:53:26] Production.INFO: 34.5 MB #Memory Used# [2025-02-17 09:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:54:06 [end_date_ymd] => 2025-02-17 09:54:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 06:54:06' and `end` < '2025-02-17 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-02-17 09:54:21] Production.INFO: count ==844 [2025-02-17 09:54:21] Production.ERROR: pbx CDR StartTime 2025-02-17 06:54:06 - End Time 2025-02-17 09:54:06 [2025-02-17 09:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494950', 'tblTempUsageDetail_20' ) start [2025-02-17 09:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494950', 'tblTempUsageDetail_20' ) end [2025-02-17 09:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494950', 'tblTempVendorCDR_20' ) start [2025-02-17 09:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494950', 'tblTempVendorCDR_20' ) end [2025-02-17 09:54:21] Production.INFO: ProcessCDR(1,14494950,1,1,2) [2025-02-17 09:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494950', 'tblTempUsageDetail_20' ) start [2025-02-17 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494950', 'tblTempUsageDetail_20' ) end [2025-02-17 09:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:54:25] Production.INFO: ==14076== Releasing lock... [2025-02-17 09:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:54:25] Production.INFO: 35 MB #Memory Used# [2025-02-17 09:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:55:06 [end_date_ymd] => 2025-02-17 09:55:06 [RateCDR] => 1 ) [2025-02-17 09:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:55:06' and `end` < '2025-02-17 09:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:55:19] Production.INFO: count ==843 [2025-02-17 09:55:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:55:06 - End Time 2025-02-17 09:55:06 [2025-02-17 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494955', 'tblTempUsageDetail_20' ) start [2025-02-17 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494955', 'tblTempUsageDetail_20' ) end [2025-02-17 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494955', 'tblTempVendorCDR_20' ) start [2025-02-17 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494955', 'tblTempVendorCDR_20' ) end [2025-02-17 09:55:19] Production.INFO: ProcessCDR(1,14494955,1,1,2) [2025-02-17 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494955', 'tblTempUsageDetail_20' ) start [2025-02-17 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494955', 'tblTempUsageDetail_20' ) end [2025-02-17 09:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:55:24] Production.INFO: ==14147== Releasing lock... [2025-02-17 09:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:55:24] Production.INFO: 34.5 MB #Memory Used# [2025-02-17 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:56:05 [end_date_ymd] => 2025-02-17 09:56:05 [RateCDR] => 1 ) [2025-02-17 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:56:05' and `end` < '2025-02-17 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:56:20] Production.INFO: count ==845 [2025-02-17 09:56:20] Production.ERROR: pbx CDR StartTime 2025-02-17 06:56:05 - End Time 2025-02-17 09:56:05 [2025-02-17 09:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494960', 'tblTempUsageDetail_20' ) start [2025-02-17 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494960', 'tblTempUsageDetail_20' ) end [2025-02-17 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494960', 'tblTempVendorCDR_20' ) start [2025-02-17 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494960', 'tblTempVendorCDR_20' ) end [2025-02-17 09:56:20] Production.INFO: ProcessCDR(1,14494960,1,1,2) [2025-02-17 09:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494960', 'tblTempUsageDetail_20' ) start [2025-02-17 09:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494960', 'tblTempUsageDetail_20' ) end [2025-02-17 09:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:56:23] Production.INFO: ==14218== Releasing lock... [2025-02-17 09:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:56:23] Production.INFO: 35 MB #Memory Used# [2025-02-17 09:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:57:06 [end_date_ymd] => 2025-02-17 09:57:06 [RateCDR] => 1 ) [2025-02-17 09:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:57:06' and `end` < '2025-02-17 09:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:57:19] Production.INFO: count ==853 [2025-02-17 09:57:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:57:06 - End Time 2025-02-17 09:57:06 [2025-02-17 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494965', 'tblTempUsageDetail_20' ) start [2025-02-17 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494965', 'tblTempUsageDetail_20' ) end [2025-02-17 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494965', 'tblTempVendorCDR_20' ) start [2025-02-17 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494965', 'tblTempVendorCDR_20' ) end [2025-02-17 09:57:19] Production.INFO: ProcessCDR(1,14494965,1,1,2) [2025-02-17 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494965', 'tblTempUsageDetail_20' ) start [2025-02-17 09:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494965', 'tblTempUsageDetail_20' ) end [2025-02-17 09:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:57:22] Production.INFO: ==14290== Releasing lock... [2025-02-17 09:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:57:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-17 09:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:58:06 [end_date_ymd] => 2025-02-17 09:58:06 [RateCDR] => 1 ) [2025-02-17 09:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:58:06' and `end` < '2025-02-17 09:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:58:19] Production.INFO: count ==853 [2025-02-17 09:58:19] Production.ERROR: pbx CDR StartTime 2025-02-17 06:58:06 - End Time 2025-02-17 09:58:06 [2025-02-17 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494970', 'tblTempUsageDetail_20' ) start [2025-02-17 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494970', 'tblTempUsageDetail_20' ) end [2025-02-17 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494970', 'tblTempVendorCDR_20' ) start [2025-02-17 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494970', 'tblTempVendorCDR_20' ) end [2025-02-17 09:58:19] Production.INFO: ProcessCDR(1,14494970,1,1,2) [2025-02-17 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494970', 'tblTempUsageDetail_20' ) start [2025-02-17 09:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494970', 'tblTempUsageDetail_20' ) end [2025-02-17 09:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:58:22] Production.INFO: ==14363== Releasing lock... [2025-02-17 09:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:58:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-17 09:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 06:59:06 [end_date_ymd] => 2025-02-17 09:59:06 [RateCDR] => 1 ) [2025-02-17 09:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 06:59:06' and `end` < '2025-02-17 09:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 09:59:20] Production.INFO: count ==855 [2025-02-17 09:59:20] Production.ERROR: pbx CDR StartTime 2025-02-17 06:59:06 - End Time 2025-02-17 09:59:06 [2025-02-17 09:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494975', 'tblTempUsageDetail_20' ) start [2025-02-17 09:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494975', 'tblTempUsageDetail_20' ) end [2025-02-17 09:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494975', 'tblTempVendorCDR_20' ) start [2025-02-17 09:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494975', 'tblTempVendorCDR_20' ) end [2025-02-17 09:59:21] Production.INFO: ProcessCDR(1,14494975,1,1,2) [2025-02-17 09:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 09:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494975', 'tblTempUsageDetail_20' ) start [2025-02-17 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494975', 'tblTempUsageDetail_20' ) end [2025-02-17 09:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 09:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 09:59:25] Production.INFO: ==14433== Releasing lock... [2025-02-17 09:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 09:59:25] Production.INFO: 35 MB #Memory Used# [2025-02-17 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:00:06 [end_date_ymd] => 2025-02-17 10:00:06 [RateCDR] => 1 ) [2025-02-17 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:00:06' and `end` < '2025-02-17 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:00:21] Production.INFO: count ==862 [2025-02-17 10:00:21] Production.ERROR: pbx CDR StartTime 2025-02-17 07:00:06 - End Time 2025-02-17 10:00:06 [2025-02-17 10:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494980', 'tblTempUsageDetail_20' ) start [2025-02-17 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494980', 'tblTempUsageDetail_20' ) end [2025-02-17 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494980', 'tblTempVendorCDR_20' ) start [2025-02-17 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494980', 'tblTempVendorCDR_20' ) end [2025-02-17 10:00:21] Production.INFO: ProcessCDR(1,14494980,1,1,2) [2025-02-17 10:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494980', 'tblTempUsageDetail_20' ) start [2025-02-17 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494980', 'tblTempUsageDetail_20' ) end [2025-02-17 10:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:00:25] Production.INFO: ==14550== Releasing lock... [2025-02-17 10:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:00:25] Production.INFO: 35.5 MB #Memory Used# [2025-02-17 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:01:05 [end_date_ymd] => 2025-02-17 10:01:05 [RateCDR] => 1 ) [2025-02-17 10:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:01:05' and `end` < '2025-02-17 10:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:01:18] Production.INFO: count ==868 [2025-02-17 10:01:19] Production.ERROR: pbx CDR StartTime 2025-02-17 07:01:05 - End Time 2025-02-17 10:01:05 [2025-02-17 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494985', 'tblTempUsageDetail_20' ) start [2025-02-17 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494985', 'tblTempUsageDetail_20' ) end [2025-02-17 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494985', 'tblTempVendorCDR_20' ) start [2025-02-17 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494985', 'tblTempVendorCDR_20' ) end [2025-02-17 10:01:19] Production.INFO: ProcessCDR(1,14494985,1,1,2) [2025-02-17 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494985', 'tblTempUsageDetail_20' ) start [2025-02-17 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494985', 'tblTempUsageDetail_20' ) end [2025-02-17 10:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:01:24] Production.INFO: ==14641== Releasing lock... [2025-02-17 10:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:01:24] Production.INFO: 34.75 MB #Memory Used# [2025-02-17 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:02:06 [end_date_ymd] => 2025-02-17 10:02:06 [RateCDR] => 1 ) [2025-02-17 10:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:02:06' and `end` < '2025-02-17 10:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:02:20] Production.INFO: count ==868 [2025-02-17 10:02:20] Production.ERROR: pbx CDR StartTime 2025-02-17 07:02:06 - End Time 2025-02-17 10:02:06 [2025-02-17 10:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494991', 'tblTempUsageDetail_20' ) start [2025-02-17 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494991', 'tblTempUsageDetail_20' ) end [2025-02-17 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494991', 'tblTempVendorCDR_20' ) start [2025-02-17 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494991', 'tblTempVendorCDR_20' ) end [2025-02-17 10:02:20] Production.INFO: ProcessCDR(1,14494991,1,1,2) [2025-02-17 10:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494991', 'tblTempUsageDetail_20' ) start [2025-02-17 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494991', 'tblTempUsageDetail_20' ) end [2025-02-17 10:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:02:24] Production.INFO: ==14714== Releasing lock... [2025-02-17 10:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:02:24] Production.INFO: 34.75 MB #Memory Used# [2025-02-17 10:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:03:06 [end_date_ymd] => 2025-02-17 10:03:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 07:03:06' and `end` < '2025-02-17 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-02-17 10:03:21] Production.INFO: count ==890 [2025-02-17 10:03:22] Production.ERROR: pbx CDR StartTime 2025-02-17 07:03:06 - End Time 2025-02-17 10:03:06 [2025-02-17 10:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494996', 'tblTempUsageDetail_20' ) start [2025-02-17 10:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14494996', 'tblTempUsageDetail_20' ) end [2025-02-17 10:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494996', 'tblTempVendorCDR_20' ) start [2025-02-17 10:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14494996', 'tblTempVendorCDR_20' ) end [2025-02-17 10:03:22] Production.INFO: ProcessCDR(1,14494996,1,1,2) [2025-02-17 10:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14494996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14494996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14494996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14494996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494996', 'tblTempUsageDetail_20' ) start [2025-02-17 10:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14494996', 'tblTempUsageDetail_20' ) end [2025-02-17 10:03:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:03:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:03:27] Production.INFO: ==14787== Releasing lock... [2025-02-17 10:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:03:27] Production.INFO: 35.5 MB #Memory Used# [2025-02-17 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:04:05 [end_date_ymd] => 2025-02-17 10:04:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 07:04:05' and `end` < '2025-02-17 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-02-17 10:04:18] Production.INFO: count ==890 [2025-02-17 10:04:18] Production.ERROR: pbx CDR StartTime 2025-02-17 07:04:05 - End Time 2025-02-17 10:04:05 [2025-02-17 10:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495001', 'tblTempUsageDetail_20' ) start [2025-02-17 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495001', 'tblTempUsageDetail_20' ) end [2025-02-17 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495001', 'tblTempVendorCDR_20' ) start [2025-02-17 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495001', 'tblTempVendorCDR_20' ) end [2025-02-17 10:04:18] Production.INFO: ProcessCDR(1,14495001,1,1,2) [2025-02-17 10:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495001', 'tblTempUsageDetail_20' ) start [2025-02-17 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495001', 'tblTempUsageDetail_20' ) end [2025-02-17 10:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:04:23] Production.INFO: ==14865== Releasing lock... [2025-02-17 10:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:04:23] Production.INFO: 35 MB #Memory Used# [2025-02-17 10:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:05:06 [end_date_ymd] => 2025-02-17 10:05:06 [RateCDR] => 1 ) [2025-02-17 10:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:05:06' and `end` < '2025-02-17 10:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:05:19] Production.INFO: count ==891 [2025-02-17 10:05:19] Production.ERROR: pbx CDR StartTime 2025-02-17 07:05:06 - End Time 2025-02-17 10:05:06 [2025-02-17 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495006', 'tblTempUsageDetail_20' ) start [2025-02-17 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495006', 'tblTempUsageDetail_20' ) end [2025-02-17 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495006', 'tblTempVendorCDR_20' ) start [2025-02-17 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495006', 'tblTempVendorCDR_20' ) end [2025-02-17 10:05:19] Production.INFO: ProcessCDR(1,14495006,1,1,2) [2025-02-17 10:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495006', 'tblTempUsageDetail_20' ) start [2025-02-17 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495006', 'tblTempUsageDetail_20' ) end [2025-02-17 10:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:05:24] Production.INFO: ==14938== Releasing lock... [2025-02-17 10:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:05:24] Production.INFO: 35 MB #Memory Used# [2025-02-17 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:06:05 [end_date_ymd] => 2025-02-17 10:06:05 [RateCDR] => 1 ) [2025-02-17 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:06:05' and `end` < '2025-02-17 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:06:18] Production.INFO: count ==901 [2025-02-17 10:06:19] Production.ERROR: pbx CDR StartTime 2025-02-17 07:06:05 - End Time 2025-02-17 10:06:05 [2025-02-17 10:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495011', 'tblTempUsageDetail_20' ) start [2025-02-17 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495011', 'tblTempUsageDetail_20' ) end [2025-02-17 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495011', 'tblTempVendorCDR_20' ) start [2025-02-17 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495011', 'tblTempVendorCDR_20' ) end [2025-02-17 10:06:19] Production.INFO: ProcessCDR(1,14495011,1,1,2) [2025-02-17 10:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495011', 'tblTempUsageDetail_20' ) start [2025-02-17 10:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495011', 'tblTempUsageDetail_20' ) end [2025-02-17 10:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:06:22] Production.INFO: ==15016== Releasing lock... [2025-02-17 10:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:06:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-17 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:07:05 [end_date_ymd] => 2025-02-17 10:07:05 [RateCDR] => 1 ) [2025-02-17 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:07:05' and `end` < '2025-02-17 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:07:18] Production.INFO: count ==910 [2025-02-17 10:07:19] Production.ERROR: pbx CDR StartTime 2025-02-17 07:07:05 - End Time 2025-02-17 10:07:05 [2025-02-17 10:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495016', 'tblTempUsageDetail_20' ) start [2025-02-17 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495016', 'tblTempUsageDetail_20' ) end [2025-02-17 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495016', 'tblTempVendorCDR_20' ) start [2025-02-17 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495016', 'tblTempVendorCDR_20' ) end [2025-02-17 10:07:19] Production.INFO: ProcessCDR(1,14495016,1,1,2) [2025-02-17 10:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495016', 'tblTempUsageDetail_20' ) start [2025-02-17 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495016', 'tblTempUsageDetail_20' ) end [2025-02-17 10:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:07:24] Production.INFO: ==15095== Releasing lock... [2025-02-17 10:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:07:24] Production.INFO: 35.5 MB #Memory Used# [2025-02-17 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:08:05 [end_date_ymd] => 2025-02-17 10:08:05 [RateCDR] => 1 ) [2025-02-17 10:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:08:05' and `end` < '2025-02-17 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:08:21] Production.INFO: count ==920 [2025-02-17 10:08:22] Production.ERROR: pbx CDR StartTime 2025-02-17 07:08:05 - End Time 2025-02-17 10:08:05 [2025-02-17 10:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495021', 'tblTempUsageDetail_20' ) start [2025-02-17 10:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495021', 'tblTempUsageDetail_20' ) end [2025-02-17 10:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495021', 'tblTempVendorCDR_20' ) start [2025-02-17 10:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495021', 'tblTempVendorCDR_20' ) end [2025-02-17 10:08:22] Production.INFO: ProcessCDR(1,14495021,1,1,2) [2025-02-17 10:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495021', 'tblTempUsageDetail_20' ) start [2025-02-17 10:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495021', 'tblTempUsageDetail_20' ) end [2025-02-17 10:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:08:26] Production.INFO: ==15169== Releasing lock... [2025-02-17 10:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:08:26] Production.INFO: 35.25 MB #Memory Used# [2025-02-17 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:09:05 [end_date_ymd] => 2025-02-17 10:09:05 [RateCDR] => 1 ) [2025-02-17 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:09:05' and `end` < '2025-02-17 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:09:20] Production.INFO: count ==920 [2025-02-17 10:09:20] Production.ERROR: pbx CDR StartTime 2025-02-17 07:09:05 - End Time 2025-02-17 10:09:05 [2025-02-17 10:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495026', 'tblTempUsageDetail_20' ) start [2025-02-17 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495026', 'tblTempUsageDetail_20' ) end [2025-02-17 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495026', 'tblTempVendorCDR_20' ) start [2025-02-17 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495026', 'tblTempVendorCDR_20' ) end [2025-02-17 10:09:20] Production.INFO: ProcessCDR(1,14495026,1,1,2) [2025-02-17 10:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495026', 'tblTempUsageDetail_20' ) start [2025-02-17 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495026', 'tblTempUsageDetail_20' ) end [2025-02-17 10:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:09:23] Production.INFO: ==15240== Releasing lock... [2025-02-17 10:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:09:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-17 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:10:06 [end_date_ymd] => 2025-02-17 10:10:06 [RateCDR] => 1 ) [2025-02-17 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:10:06' and `end` < '2025-02-17 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:10:19] Production.INFO: count ==956 [2025-02-17 10:10:20] Production.ERROR: pbx CDR StartTime 2025-02-17 07:10:06 - End Time 2025-02-17 10:10:06 [2025-02-17 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495031', 'tblTempUsageDetail_20' ) start [2025-02-17 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495031', 'tblTempUsageDetail_20' ) end [2025-02-17 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495031', 'tblTempVendorCDR_20' ) start [2025-02-17 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495031', 'tblTempVendorCDR_20' ) end [2025-02-17 10:10:20] Production.INFO: ProcessCDR(1,14495031,1,1,2) [2025-02-17 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495031', 'tblTempUsageDetail_20' ) start [2025-02-17 10:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495031', 'tblTempUsageDetail_20' ) end [2025-02-17 10:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:10:23] Production.INFO: ==15314== Releasing lock... [2025-02-17 10:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:10:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-17 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:11:05 [end_date_ymd] => 2025-02-17 10:11:05 [RateCDR] => 1 ) [2025-02-17 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:11:05' and `end` < '2025-02-17 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:11:19] Production.INFO: count ==972 [2025-02-17 10:11:20] Production.ERROR: pbx CDR StartTime 2025-02-17 07:11:05 - End Time 2025-02-17 10:11:05 [2025-02-17 10:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495037', 'tblTempUsageDetail_20' ) start [2025-02-17 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495037', 'tblTempUsageDetail_20' ) end [2025-02-17 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495037', 'tblTempVendorCDR_20' ) start [2025-02-17 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495037', 'tblTempVendorCDR_20' ) end [2025-02-17 10:11:20] Production.INFO: ProcessCDR(1,14495037,1,1,2) [2025-02-17 10:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495037', 'tblTempUsageDetail_20' ) start [2025-02-17 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495037', 'tblTempUsageDetail_20' ) end [2025-02-17 10:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:11:23] Production.INFO: ==15392== Releasing lock... [2025-02-17 10:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:11:23] Production.INFO: 36 MB #Memory Used# [2025-02-17 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:12:05 [end_date_ymd] => 2025-02-17 10:12:05 [RateCDR] => 1 ) [2025-02-17 10:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:12:05' and `end` < '2025-02-17 10:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:12:18] Production.INFO: count ==983 [2025-02-17 10:12:18] Production.ERROR: pbx CDR StartTime 2025-02-17 07:12:05 - End Time 2025-02-17 10:12:05 [2025-02-17 10:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495042', 'tblTempUsageDetail_20' ) start [2025-02-17 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495042', 'tblTempUsageDetail_20' ) end [2025-02-17 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495042', 'tblTempVendorCDR_20' ) start [2025-02-17 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495042', 'tblTempVendorCDR_20' ) end [2025-02-17 10:12:18] Production.INFO: ProcessCDR(1,14495042,1,1,2) [2025-02-17 10:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495042', 'tblTempUsageDetail_20' ) start [2025-02-17 10:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495042', 'tblTempUsageDetail_20' ) end [2025-02-17 10:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:12:22] Production.INFO: ==15468== Releasing lock... [2025-02-17 10:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:12:22] Production.INFO: 36 MB #Memory Used# [2025-02-17 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:13:05 [end_date_ymd] => 2025-02-17 10:13:05 [RateCDR] => 1 ) [2025-02-17 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:13:05' and `end` < '2025-02-17 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:13:18] Production.INFO: count ==1005 [2025-02-17 10:13:19] Production.ERROR: pbx CDR StartTime 2025-02-17 07:13:05 - End Time 2025-02-17 10:13:05 [2025-02-17 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495047', 'tblTempUsageDetail_20' ) start [2025-02-17 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495047', 'tblTempUsageDetail_20' ) end [2025-02-17 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495047', 'tblTempVendorCDR_20' ) start [2025-02-17 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495047', 'tblTempVendorCDR_20' ) end [2025-02-17 10:13:19] Production.INFO: ProcessCDR(1,14495047,1,1,2) [2025-02-17 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495047', 'tblTempUsageDetail_20' ) start [2025-02-17 10:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495047', 'tblTempUsageDetail_20' ) end [2025-02-17 10:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:13:22] Production.INFO: ==15540== Releasing lock... [2025-02-17 10:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:13:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-17 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:14:05 [end_date_ymd] => 2025-02-17 10:14:05 [RateCDR] => 1 ) [2025-02-17 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:14:05' and `end` < '2025-02-17 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:14:19] Production.INFO: count ==1022 [2025-02-17 10:14:19] Production.ERROR: pbx CDR StartTime 2025-02-17 07:14:05 - End Time 2025-02-17 10:14:05 [2025-02-17 10:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495052', 'tblTempUsageDetail_20' ) start [2025-02-17 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495052', 'tblTempUsageDetail_20' ) end [2025-02-17 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495052', 'tblTempVendorCDR_20' ) start [2025-02-17 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495052', 'tblTempVendorCDR_20' ) end [2025-02-17 10:14:19] Production.INFO: ProcessCDR(1,14495052,1,1,2) [2025-02-17 10:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495052', 'tblTempUsageDetail_20' ) start [2025-02-17 10:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495052', 'tblTempUsageDetail_20' ) end [2025-02-17 10:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:14:23] Production.INFO: ==15611== Releasing lock... [2025-02-17 10:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:14:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-17 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:15:05 [end_date_ymd] => 2025-02-17 10:15:05 [RateCDR] => 1 ) [2025-02-17 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:15:05' and `end` < '2025-02-17 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:15:18] Production.INFO: count ==1022 [2025-02-17 10:15:19] Production.ERROR: pbx CDR StartTime 2025-02-17 07:15:05 - End Time 2025-02-17 10:15:05 [2025-02-17 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495057', 'tblTempUsageDetail_20' ) start [2025-02-17 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495057', 'tblTempUsageDetail_20' ) end [2025-02-17 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495057', 'tblTempVendorCDR_20' ) start [2025-02-17 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495057', 'tblTempVendorCDR_20' ) end [2025-02-17 10:15:19] Production.INFO: ProcessCDR(1,14495057,1,1,2) [2025-02-17 10:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495057', 'tblTempUsageDetail_20' ) start [2025-02-17 10:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495057', 'tblTempUsageDetail_20' ) end [2025-02-17 10:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:15:22] Production.INFO: ==15684== Releasing lock... [2025-02-17 10:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:15:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-17 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:16:05 [end_date_ymd] => 2025-02-17 10:16:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 07:16:05' and `end` < '2025-02-17 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-02-17 10:16:18] Production.INFO: count ==1047 [2025-02-17 10:16:18] Production.ERROR: pbx CDR StartTime 2025-02-17 07:16:05 - End Time 2025-02-17 10:16:05 [2025-02-17 10:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495062', 'tblTempUsageDetail_20' ) start [2025-02-17 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495062', 'tblTempUsageDetail_20' ) end [2025-02-17 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495062', 'tblTempVendorCDR_20' ) start [2025-02-17 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495062', 'tblTempVendorCDR_20' ) end [2025-02-17 10:16:18] Production.INFO: ProcessCDR(1,14495062,1,1,2) [2025-02-17 10:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495062', 'tblTempUsageDetail_20' ) start [2025-02-17 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495062', 'tblTempUsageDetail_20' ) end [2025-02-17 10:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:16:23] Production.INFO: ==15807== Releasing lock... [2025-02-17 10:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:16:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-17 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:17:05 [end_date_ymd] => 2025-02-17 10:17:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 07:17:05' and `end` < '2025-02-17 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-02-17 10:17:19] Production.INFO: count ==1077 [2025-02-17 10:17:20] Production.ERROR: pbx CDR StartTime 2025-02-17 07:17:05 - End Time 2025-02-17 10:17:05 [2025-02-17 10:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495067', 'tblTempUsageDetail_20' ) start [2025-02-17 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495067', 'tblTempUsageDetail_20' ) end [2025-02-17 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495067', 'tblTempVendorCDR_20' ) start [2025-02-17 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495067', 'tblTempVendorCDR_20' ) end [2025-02-17 10:17:20] Production.INFO: ProcessCDR(1,14495067,1,1,2) [2025-02-17 10:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495067', 'tblTempUsageDetail_20' ) start [2025-02-17 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495067', 'tblTempUsageDetail_20' ) end [2025-02-17 10:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:17:24] Production.INFO: ==15892== Releasing lock... [2025-02-17 10:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:17:24] Production.INFO: 36.75 MB #Memory Used# [2025-02-17 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:18:05 [end_date_ymd] => 2025-02-17 10:18:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 07:18:05' and `end` < '2025-02-17 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-02-17 10:18:19] Production.INFO: count ==1078 [2025-02-17 10:18:20] Production.ERROR: pbx CDR StartTime 2025-02-17 07:18:05 - End Time 2025-02-17 10:18:05 [2025-02-17 10:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495072', 'tblTempUsageDetail_20' ) start [2025-02-17 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495072', 'tblTempUsageDetail_20' ) end [2025-02-17 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495072', 'tblTempVendorCDR_20' ) start [2025-02-17 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495072', 'tblTempVendorCDR_20' ) end [2025-02-17 10:18:20] Production.INFO: ProcessCDR(1,14495072,1,1,2) [2025-02-17 10:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495072', 'tblTempUsageDetail_20' ) start [2025-02-17 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495072', 'tblTempUsageDetail_20' ) end [2025-02-17 10:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:18:24] Production.INFO: ==15978== Releasing lock... [2025-02-17 10:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:18:24] Production.INFO: 37 MB #Memory Used# [2025-02-17 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:19:05 [end_date_ymd] => 2025-02-17 10:19:05 [RateCDR] => 1 ) [2025-02-17 10:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:19:05' and `end` < '2025-02-17 10:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:19:18] Production.INFO: count ==1085 [2025-02-17 10:19:18] Production.ERROR: pbx CDR StartTime 2025-02-17 07:19:05 - End Time 2025-02-17 10:19:05 [2025-02-17 10:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495077', 'tblTempUsageDetail_20' ) start [2025-02-17 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495077', 'tblTempUsageDetail_20' ) end [2025-02-17 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495077', 'tblTempVendorCDR_20' ) start [2025-02-17 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495077', 'tblTempVendorCDR_20' ) end [2025-02-17 10:19:18] Production.INFO: ProcessCDR(1,14495077,1,1,2) [2025-02-17 10:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495077', 'tblTempUsageDetail_20' ) start [2025-02-17 10:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495077', 'tblTempUsageDetail_20' ) end [2025-02-17 10:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:19:23] Production.INFO: ==16069== Releasing lock... [2025-02-17 10:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:19:23] Production.INFO: 37 MB #Memory Used# [2025-02-17 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:20:06 [end_date_ymd] => 2025-02-17 10:20:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 07:20:06' and `end` < '2025-02-17 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-02-17 10:20:19] Production.INFO: count ==1095 [2025-02-17 10:20:19] Production.ERROR: pbx CDR StartTime 2025-02-17 07:20:06 - End Time 2025-02-17 10:20:06 [2025-02-17 10:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495083', 'tblTempUsageDetail_20' ) start [2025-02-17 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495083', 'tblTempUsageDetail_20' ) end [2025-02-17 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495083', 'tblTempVendorCDR_20' ) start [2025-02-17 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495083', 'tblTempVendorCDR_20' ) end [2025-02-17 10:20:19] Production.INFO: ProcessCDR(1,14495083,1,1,2) [2025-02-17 10:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495083', 'tblTempUsageDetail_20' ) start [2025-02-17 10:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495083', 'tblTempUsageDetail_20' ) end [2025-02-17 10:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:20:24] Production.INFO: ==16166== Releasing lock... [2025-02-17 10:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:20:24] Production.INFO: 36.75 MB #Memory Used# [2025-02-17 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:21:05 [end_date_ymd] => 2025-02-17 10:21:05 [RateCDR] => 1 ) [2025-02-17 10:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:21:05' and `end` < '2025-02-17 10:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:21:19] Production.INFO: count ==1115 [2025-02-17 10:21:20] Production.ERROR: pbx CDR StartTime 2025-02-17 07:21:05 - End Time 2025-02-17 10:21:05 [2025-02-17 10:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495088', 'tblTempUsageDetail_20' ) start [2025-02-17 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495088', 'tblTempUsageDetail_20' ) end [2025-02-17 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495088', 'tblTempVendorCDR_20' ) start [2025-02-17 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495088', 'tblTempVendorCDR_20' ) end [2025-02-17 10:21:20] Production.INFO: ProcessCDR(1,14495088,1,1,2) [2025-02-17 10:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495088', 'tblTempUsageDetail_20' ) start [2025-02-17 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495088', 'tblTempUsageDetail_20' ) end [2025-02-17 10:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:21:23] Production.INFO: ==16255== Releasing lock... [2025-02-17 10:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:21:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-17 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:22:05 [end_date_ymd] => 2025-02-17 10:22:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 07:22:05' and `end` < '2025-02-17 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-02-17 10:22:18] Production.INFO: count ==1116 [2025-02-17 10:22:19] Production.ERROR: pbx CDR StartTime 2025-02-17 07:22:05 - End Time 2025-02-17 10:22:05 [2025-02-17 10:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495093', 'tblTempUsageDetail_20' ) start [2025-02-17 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495093', 'tblTempUsageDetail_20' ) end [2025-02-17 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495093', 'tblTempVendorCDR_20' ) start [2025-02-17 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495093', 'tblTempVendorCDR_20' ) end [2025-02-17 10:22:19] Production.INFO: ProcessCDR(1,14495093,1,1,2) [2025-02-17 10:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495093', 'tblTempUsageDetail_20' ) start [2025-02-17 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495093', 'tblTempUsageDetail_20' ) end [2025-02-17 10:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:22:24] Production.INFO: ==16339== Releasing lock... [2025-02-17 10:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:22:24] Production.INFO: 37 MB #Memory Used# [2025-02-17 10:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:23:04 [end_date_ymd] => 2025-02-17 10:23:04 [RateCDR] => 1 ) [2025-02-17 10:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:23:04' and `end` < '2025-02-17 10:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:23:18] Production.INFO: count ==1118 [2025-02-17 10:23:19] Production.ERROR: pbx CDR StartTime 2025-02-17 07:23:04 - End Time 2025-02-17 10:23:04 [2025-02-17 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495098', 'tblTempUsageDetail_20' ) start [2025-02-17 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495098', 'tblTempUsageDetail_20' ) end [2025-02-17 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495098', 'tblTempVendorCDR_20' ) start [2025-02-17 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495098', 'tblTempVendorCDR_20' ) end [2025-02-17 10:23:19] Production.INFO: ProcessCDR(1,14495098,1,1,2) [2025-02-17 10:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495098', 'tblTempUsageDetail_20' ) start [2025-02-17 10:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495098', 'tblTempUsageDetail_20' ) end [2025-02-17 10:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:23:22] Production.INFO: ==16426== Releasing lock... [2025-02-17 10:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:23:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-17 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:24:05 [end_date_ymd] => 2025-02-17 10:24:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 07:24:05' and `end` < '2025-02-17 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-02-17 10:24:18] Production.INFO: count ==1126 [2025-02-17 10:24:19] Production.ERROR: pbx CDR StartTime 2025-02-17 07:24:05 - End Time 2025-02-17 10:24:05 [2025-02-17 10:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495103', 'tblTempUsageDetail_20' ) start [2025-02-17 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495103', 'tblTempUsageDetail_20' ) end [2025-02-17 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495103', 'tblTempVendorCDR_20' ) start [2025-02-17 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495103', 'tblTempVendorCDR_20' ) end [2025-02-17 10:24:19] Production.INFO: ProcessCDR(1,14495103,1,1,2) [2025-02-17 10:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495103', 'tblTempUsageDetail_20' ) start [2025-02-17 10:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495103', 'tblTempUsageDetail_20' ) end [2025-02-17 10:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:24:22] Production.INFO: ==16517== Releasing lock... [2025-02-17 10:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:24:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-17 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:25:05 [end_date_ymd] => 2025-02-17 10:25:05 [RateCDR] => 1 ) [2025-02-17 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:25:05' and `end` < '2025-02-17 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:25:18] Production.INFO: count ==1136 [2025-02-17 10:25:18] Production.ERROR: pbx CDR StartTime 2025-02-17 07:25:05 - End Time 2025-02-17 10:25:05 [2025-02-17 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495108', 'tblTempUsageDetail_20' ) start [2025-02-17 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495108', 'tblTempUsageDetail_20' ) end [2025-02-17 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495108', 'tblTempVendorCDR_20' ) start [2025-02-17 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495108', 'tblTempVendorCDR_20' ) end [2025-02-17 10:25:18] Production.INFO: ProcessCDR(1,14495108,1,1,2) [2025-02-17 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495108', 'tblTempUsageDetail_20' ) start [2025-02-17 10:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495108', 'tblTempUsageDetail_20' ) end [2025-02-17 10:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:25:22] Production.INFO: ==16603== Releasing lock... [2025-02-17 10:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:25:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-17 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:26:05 [end_date_ymd] => 2025-02-17 10:26:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 07:26:05' and `end` < '2025-02-17 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-02-17 10:26:20] Production.INFO: count ==1146 [2025-02-17 10:26:21] Production.ERROR: pbx CDR StartTime 2025-02-17 07:26:05 - End Time 2025-02-17 10:26:05 [2025-02-17 10:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495113', 'tblTempUsageDetail_20' ) start [2025-02-17 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495113', 'tblTempUsageDetail_20' ) end [2025-02-17 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495113', 'tblTempVendorCDR_20' ) start [2025-02-17 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495113', 'tblTempVendorCDR_20' ) end [2025-02-17 10:26:21] Production.INFO: ProcessCDR(1,14495113,1,1,2) [2025-02-17 10:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495113', 'tblTempUsageDetail_20' ) start [2025-02-17 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495113', 'tblTempUsageDetail_20' ) end [2025-02-17 10:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:26:24] Production.INFO: ==16691== Releasing lock... [2025-02-17 10:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:26:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-17 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:27:05 [end_date_ymd] => 2025-02-17 10:27:05 [RateCDR] => 1 ) [2025-02-17 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:27:05' and `end` < '2025-02-17 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:27:19] Production.INFO: count ==1148 [2025-02-17 10:27:20] Production.ERROR: pbx CDR StartTime 2025-02-17 07:27:05 - End Time 2025-02-17 10:27:05 [2025-02-17 10:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495118', 'tblTempUsageDetail_20' ) start [2025-02-17 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495118', 'tblTempUsageDetail_20' ) end [2025-02-17 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495118', 'tblTempVendorCDR_20' ) start [2025-02-17 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495118', 'tblTempVendorCDR_20' ) end [2025-02-17 10:27:20] Production.INFO: ProcessCDR(1,14495118,1,1,2) [2025-02-17 10:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495118', 'tblTempUsageDetail_20' ) start [2025-02-17 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495118', 'tblTempUsageDetail_20' ) end [2025-02-17 10:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:27:24] Production.INFO: ==16785== Releasing lock... [2025-02-17 10:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:27:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-17 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:28:05 [end_date_ymd] => 2025-02-17 10:28:05 [RateCDR] => 1 ) [2025-02-17 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:28:05' and `end` < '2025-02-17 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:28:18] Production.INFO: count ==1158 [2025-02-17 10:28:19] Production.ERROR: pbx CDR StartTime 2025-02-17 07:28:05 - End Time 2025-02-17 10:28:05 [2025-02-17 10:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495122', 'tblTempUsageDetail_20' ) start [2025-02-17 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495122', 'tblTempUsageDetail_20' ) end [2025-02-17 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495122', 'tblTempVendorCDR_20' ) start [2025-02-17 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495122', 'tblTempVendorCDR_20' ) end [2025-02-17 10:28:19] Production.INFO: ProcessCDR(1,14495122,1,1,2) [2025-02-17 10:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495122', 'tblTempUsageDetail_20' ) start [2025-02-17 10:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495122', 'tblTempUsageDetail_20' ) end [2025-02-17 10:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:28:22] Production.INFO: ==16868== Releasing lock... [2025-02-17 10:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:28:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-17 10:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:29:06 [end_date_ymd] => 2025-02-17 10:29:06 [RateCDR] => 1 ) [2025-02-17 10:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:29:06' and `end` < '2025-02-17 10:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:29:19] Production.INFO: count ==1204 [2025-02-17 10:29:19] Production.ERROR: pbx CDR StartTime 2025-02-17 07:29:06 - End Time 2025-02-17 10:29:06 [2025-02-17 10:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495128', 'tblTempUsageDetail_20' ) start [2025-02-17 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495128', 'tblTempUsageDetail_20' ) end [2025-02-17 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495128', 'tblTempVendorCDR_20' ) start [2025-02-17 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495128', 'tblTempVendorCDR_20' ) end [2025-02-17 10:29:19] Production.INFO: ProcessCDR(1,14495128,1,1,2) [2025-02-17 10:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495128', 'tblTempUsageDetail_20' ) start [2025-02-17 10:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495128', 'tblTempUsageDetail_20' ) end [2025-02-17 10:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:29:23] Production.INFO: ==16956== Releasing lock... [2025-02-17 10:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:29:23] Production.INFO: 37 MB #Memory Used# [2025-02-17 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:30:06 [end_date_ymd] => 2025-02-17 10:30:06 [RateCDR] => 1 ) [2025-02-17 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:30:06' and `end` < '2025-02-17 10:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:30:19] Production.INFO: count ==1221 [2025-02-17 10:30:19] Production.ERROR: pbx CDR StartTime 2025-02-17 07:30:06 - End Time 2025-02-17 10:30:06 [2025-02-17 10:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495133', 'tblTempUsageDetail_20' ) start [2025-02-17 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495133', 'tblTempUsageDetail_20' ) end [2025-02-17 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495133', 'tblTempVendorCDR_20' ) start [2025-02-17 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495133', 'tblTempVendorCDR_20' ) end [2025-02-17 10:30:19] Production.INFO: ProcessCDR(1,14495133,1,1,2) [2025-02-17 10:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495133', 'tblTempUsageDetail_20' ) start [2025-02-17 10:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495133', 'tblTempUsageDetail_20' ) end [2025-02-17 10:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:30:23] Production.INFO: ==17046== Releasing lock... [2025-02-17 10:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:30:23] Production.INFO: 37 MB #Memory Used# [2025-02-17 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:31:05 [end_date_ymd] => 2025-02-17 10:31:05 [RateCDR] => 1 ) [2025-02-17 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:31:05' and `end` < '2025-02-17 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:31:19] Production.INFO: count ==1249 [2025-02-17 10:31:20] Production.ERROR: pbx CDR StartTime 2025-02-17 07:31:05 - End Time 2025-02-17 10:31:05 [2025-02-17 10:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495139', 'tblTempUsageDetail_20' ) start [2025-02-17 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495139', 'tblTempUsageDetail_20' ) end [2025-02-17 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495139', 'tblTempVendorCDR_20' ) start [2025-02-17 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495139', 'tblTempVendorCDR_20' ) end [2025-02-17 10:31:20] Production.INFO: ProcessCDR(1,14495139,1,1,2) [2025-02-17 10:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495139', 'tblTempUsageDetail_20' ) start [2025-02-17 10:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495139', 'tblTempUsageDetail_20' ) end [2025-02-17 10:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:31:23] Production.INFO: ==17175== Releasing lock... [2025-02-17 10:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:31:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-17 10:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:32:06 [end_date_ymd] => 2025-02-17 10:32:06 [RateCDR] => 1 ) [2025-02-17 10:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:32:06' and `end` < '2025-02-17 10:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:32:21] Production.INFO: count ==1255 [2025-02-17 10:32:22] Production.ERROR: pbx CDR StartTime 2025-02-17 07:32:06 - End Time 2025-02-17 10:32:06 [2025-02-17 10:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495144', 'tblTempUsageDetail_20' ) start [2025-02-17 10:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495144', 'tblTempUsageDetail_20' ) end [2025-02-17 10:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495144', 'tblTempVendorCDR_20' ) start [2025-02-17 10:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495144', 'tblTempVendorCDR_20' ) end [2025-02-17 10:32:22] Production.INFO: ProcessCDR(1,14495144,1,1,2) [2025-02-17 10:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495144', 'tblTempUsageDetail_20' ) start [2025-02-17 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495144', 'tblTempUsageDetail_20' ) end [2025-02-17 10:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:32:25] Production.INFO: ==17257== Releasing lock... [2025-02-17 10:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:32:25] Production.INFO: 37.5 MB #Memory Used# [2025-02-17 10:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:33:06 [end_date_ymd] => 2025-02-17 10:33:06 [RateCDR] => 1 ) [2025-02-17 10:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:33:06' and `end` < '2025-02-17 10:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:33:20] Production.INFO: count ==1264 [2025-02-17 10:33:21] Production.ERROR: pbx CDR StartTime 2025-02-17 07:33:06 - End Time 2025-02-17 10:33:06 [2025-02-17 10:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495149', 'tblTempUsageDetail_20' ) start [2025-02-17 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495149', 'tblTempUsageDetail_20' ) end [2025-02-17 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495149', 'tblTempVendorCDR_20' ) start [2025-02-17 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495149', 'tblTempVendorCDR_20' ) end [2025-02-17 10:33:21] Production.INFO: ProcessCDR(1,14495149,1,1,2) [2025-02-17 10:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495149', 'tblTempUsageDetail_20' ) start [2025-02-17 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495149', 'tblTempUsageDetail_20' ) end [2025-02-17 10:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:33:24] Production.INFO: ==17335== Releasing lock... [2025-02-17 10:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:33:24] Production.INFO: 37.75 MB #Memory Used# [2025-02-17 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:34:05 [end_date_ymd] => 2025-02-17 10:34:05 [RateCDR] => 1 ) [2025-02-17 10:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:34:05' and `end` < '2025-02-17 10:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:34:19] Production.INFO: count ==1266 [2025-02-17 10:34:19] Production.ERROR: pbx CDR StartTime 2025-02-17 07:34:05 - End Time 2025-02-17 10:34:05 [2025-02-17 10:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495154', 'tblTempUsageDetail_20' ) start [2025-02-17 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495154', 'tblTempUsageDetail_20' ) end [2025-02-17 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495154', 'tblTempVendorCDR_20' ) start [2025-02-17 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495154', 'tblTempVendorCDR_20' ) end [2025-02-17 10:34:19] Production.INFO: ProcessCDR(1,14495154,1,1,2) [2025-02-17 10:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495154', 'tblTempUsageDetail_20' ) start [2025-02-17 10:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495154', 'tblTempUsageDetail_20' ) end [2025-02-17 10:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:34:22] Production.INFO: ==17413== Releasing lock... [2025-02-17 10:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:34:22] Production.INFO: 38 MB #Memory Used# [2025-02-17 10:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:35:06 [end_date_ymd] => 2025-02-17 10:35:06 [RateCDR] => 1 ) [2025-02-17 10:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:35:06' and `end` < '2025-02-17 10:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:35:19] Production.INFO: count ==1324 [2025-02-17 10:35:19] Production.ERROR: pbx CDR StartTime 2025-02-17 07:35:06 - End Time 2025-02-17 10:35:06 [2025-02-17 10:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495159', 'tblTempUsageDetail_20' ) start [2025-02-17 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495159', 'tblTempUsageDetail_20' ) end [2025-02-17 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495159', 'tblTempVendorCDR_20' ) start [2025-02-17 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495159', 'tblTempVendorCDR_20' ) end [2025-02-17 10:35:19] Production.INFO: ProcessCDR(1,14495159,1,1,2) [2025-02-17 10:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495159', 'tblTempUsageDetail_20' ) start [2025-02-17 10:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495159', 'tblTempUsageDetail_20' ) end [2025-02-17 10:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:35:24] Production.INFO: ==17487== Releasing lock... [2025-02-17 10:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:35:24] Production.INFO: 38 MB #Memory Used# [2025-02-17 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:36:05 [end_date_ymd] => 2025-02-17 10:36:05 [RateCDR] => 1 ) [2025-02-17 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:36:05' and `end` < '2025-02-17 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-02-17 10:36:18] Production.INFO: count ==1345 [2025-02-17 10:36:19] Production.ERROR: pbx CDR StartTime 2025-02-17 07:36:05 - End Time 2025-02-17 10:36:05 [2025-02-17 10:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495164', 'tblTempUsageDetail_20' ) start [2025-02-17 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495164', 'tblTempUsageDetail_20' ) end [2025-02-17 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495164', 'tblTempVendorCDR_20' ) start [2025-02-17 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495164', 'tblTempVendorCDR_20' ) end [2025-02-17 10:36:19] Production.INFO: ProcessCDR(1,14495164,1,1,2) [2025-02-17 10:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495164', 'tblTempUsageDetail_20' ) start [2025-02-17 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495164', 'tblTempUsageDetail_20' ) end [2025-02-17 10:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:36:24] Production.INFO: ==17558== Releasing lock... [2025-02-17 10:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:36:24] Production.INFO: 38.25 MB #Memory Used# [2025-02-17 10:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:37:06 [end_date_ymd] => 2025-02-17 10:37:06 [RateCDR] => 1 ) [2025-02-17 10:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:37:06' and `end` < '2025-02-17 10:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:37:21] Production.INFO: count ==1347 [2025-02-17 10:37:22] Production.ERROR: pbx CDR StartTime 2025-02-17 07:37:06 - End Time 2025-02-17 10:37:06 [2025-02-17 10:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495169', 'tblTempUsageDetail_20' ) start [2025-02-17 10:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495169', 'tblTempUsageDetail_20' ) end [2025-02-17 10:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495169', 'tblTempVendorCDR_20' ) start [2025-02-17 10:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495169', 'tblTempVendorCDR_20' ) end [2025-02-17 10:37:22] Production.INFO: ProcessCDR(1,14495169,1,1,2) [2025-02-17 10:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495169', 'tblTempUsageDetail_20' ) start [2025-02-17 10:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495169', 'tblTempUsageDetail_20' ) end [2025-02-17 10:37:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:37:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:37:27] Production.INFO: ==17632== Releasing lock... [2025-02-17 10:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:37:27] Production.INFO: 38.25 MB #Memory Used# [2025-02-17 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:38:05 [end_date_ymd] => 2025-02-17 10:38:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 07:38:05' and `end` < '2025-02-17 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-02-17 10:38:19] Production.INFO: count ==1351 [2025-02-17 10:38:19] Production.ERROR: pbx CDR StartTime 2025-02-17 07:38:05 - End Time 2025-02-17 10:38:05 [2025-02-17 10:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495174', 'tblTempUsageDetail_20' ) start [2025-02-17 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495174', 'tblTempUsageDetail_20' ) end [2025-02-17 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495174', 'tblTempVendorCDR_20' ) start [2025-02-17 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495174', 'tblTempVendorCDR_20' ) end [2025-02-17 10:38:19] Production.INFO: ProcessCDR(1,14495174,1,1,2) [2025-02-17 10:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495174', 'tblTempUsageDetail_20' ) start [2025-02-17 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495174', 'tblTempUsageDetail_20' ) end [2025-02-17 10:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:38:25] Production.INFO: ==17710== Releasing lock... [2025-02-17 10:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:38:25] Production.INFO: 38.5 MB #Memory Used# [2025-02-17 10:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:39:06 [end_date_ymd] => 2025-02-17 10:39:06 [RateCDR] => 1 ) [2025-02-17 10:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:39:06' and `end` < '2025-02-17 10:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:39:19] Production.INFO: count ==1351 [2025-02-17 10:39:19] Production.ERROR: pbx CDR StartTime 2025-02-17 07:39:06 - End Time 2025-02-17 10:39:06 [2025-02-17 10:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495179', 'tblTempUsageDetail_20' ) start [2025-02-17 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495179', 'tblTempUsageDetail_20' ) end [2025-02-17 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495179', 'tblTempVendorCDR_20' ) start [2025-02-17 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495179', 'tblTempVendorCDR_20' ) end [2025-02-17 10:39:19] Production.INFO: ProcessCDR(1,14495179,1,1,2) [2025-02-17 10:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495179', 'tblTempUsageDetail_20' ) start [2025-02-17 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495179', 'tblTempUsageDetail_20' ) end [2025-02-17 10:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:39:23] Production.INFO: ==17783== Releasing lock... [2025-02-17 10:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:39:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-17 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:40:06 [end_date_ymd] => 2025-02-17 10:40:06 [RateCDR] => 1 ) [2025-02-17 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:40:06' and `end` < '2025-02-17 10:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:40:19] Production.INFO: count ==1356 [2025-02-17 10:40:20] Production.ERROR: pbx CDR StartTime 2025-02-17 07:40:06 - End Time 2025-02-17 10:40:06 [2025-02-17 10:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495184', 'tblTempUsageDetail_20' ) start [2025-02-17 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495184', 'tblTempUsageDetail_20' ) end [2025-02-17 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495184', 'tblTempVendorCDR_20' ) start [2025-02-17 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495184', 'tblTempVendorCDR_20' ) end [2025-02-17 10:40:20] Production.INFO: ProcessCDR(1,14495184,1,1,2) [2025-02-17 10:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495184', 'tblTempUsageDetail_20' ) start [2025-02-17 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495184', 'tblTempUsageDetail_20' ) end [2025-02-17 10:40:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:40:25] Production.INFO: ==17864== Releasing lock... [2025-02-17 10:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:40:25] Production.INFO: 38.25 MB #Memory Used# [2025-02-17 10:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:41:06 [end_date_ymd] => 2025-02-17 10:41:06 [RateCDR] => 1 ) [2025-02-17 10:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:41:06' and `end` < '2025-02-17 10:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:41:19] Production.INFO: count ==1394 [2025-02-17 10:41:20] Production.ERROR: pbx CDR StartTime 2025-02-17 07:41:06 - End Time 2025-02-17 10:41:06 [2025-02-17 10:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495190', 'tblTempUsageDetail_20' ) start [2025-02-17 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495190', 'tblTempUsageDetail_20' ) end [2025-02-17 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495190', 'tblTempVendorCDR_20' ) start [2025-02-17 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495190', 'tblTempVendorCDR_20' ) end [2025-02-17 10:41:20] Production.INFO: ProcessCDR(1,14495190,1,1,2) [2025-02-17 10:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495190', 'tblTempUsageDetail_20' ) start [2025-02-17 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495190', 'tblTempUsageDetail_20' ) end [2025-02-17 10:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:41:25] Production.INFO: ==17944== Releasing lock... [2025-02-17 10:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:41:25] Production.INFO: 39 MB #Memory Used# [2025-02-17 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:42:05 [end_date_ymd] => 2025-02-17 10:42:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 07:42:05' and `end` < '2025-02-17 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-02-17 10:42:18] Production.INFO: count ==1396 [2025-02-17 10:42:19] Production.ERROR: pbx CDR StartTime 2025-02-17 07:42:05 - End Time 2025-02-17 10:42:05 [2025-02-17 10:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495195', 'tblTempUsageDetail_20' ) start [2025-02-17 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495195', 'tblTempUsageDetail_20' ) end [2025-02-17 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495195', 'tblTempVendorCDR_20' ) start [2025-02-17 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495195', 'tblTempVendorCDR_20' ) end [2025-02-17 10:42:19] Production.INFO: ProcessCDR(1,14495195,1,1,2) [2025-02-17 10:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495195', 'tblTempUsageDetail_20' ) start [2025-02-17 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495195', 'tblTempUsageDetail_20' ) end [2025-02-17 10:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:42:22] Production.INFO: ==18016== Releasing lock... [2025-02-17 10:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:42:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-17 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:43:05 [end_date_ymd] => 2025-02-17 10:43:05 [RateCDR] => 1 ) [2025-02-17 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:43:05' and `end` < '2025-02-17 10:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:43:18] Production.INFO: count ==1396 [2025-02-17 10:43:19] Production.ERROR: pbx CDR StartTime 2025-02-17 07:43:05 - End Time 2025-02-17 10:43:05 [2025-02-17 10:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495200', 'tblTempUsageDetail_20' ) start [2025-02-17 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495200', 'tblTempUsageDetail_20' ) end [2025-02-17 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495200', 'tblTempVendorCDR_20' ) start [2025-02-17 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495200', 'tblTempVendorCDR_20' ) end [2025-02-17 10:43:19] Production.INFO: ProcessCDR(1,14495200,1,1,2) [2025-02-17 10:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495200', 'tblTempUsageDetail_20' ) start [2025-02-17 10:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495200', 'tblTempUsageDetail_20' ) end [2025-02-17 10:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:43:22] Production.INFO: ==18094== Releasing lock... [2025-02-17 10:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:43:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-17 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:44:05 [end_date_ymd] => 2025-02-17 10:44:05 [RateCDR] => 1 ) [2025-02-17 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:44:05' and `end` < '2025-02-17 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:44:19] Production.INFO: count ==1402 [2025-02-17 10:44:20] Production.ERROR: pbx CDR StartTime 2025-02-17 07:44:05 - End Time 2025-02-17 10:44:05 [2025-02-17 10:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495205', 'tblTempUsageDetail_20' ) start [2025-02-17 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495205', 'tblTempUsageDetail_20' ) end [2025-02-17 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495205', 'tblTempVendorCDR_20' ) start [2025-02-17 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495205', 'tblTempVendorCDR_20' ) end [2025-02-17 10:44:20] Production.INFO: ProcessCDR(1,14495205,1,1,2) [2025-02-17 10:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495205', 'tblTempUsageDetail_20' ) start [2025-02-17 10:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495205', 'tblTempUsageDetail_20' ) end [2025-02-17 10:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:44:23] Production.INFO: ==18168== Releasing lock... [2025-02-17 10:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:44:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-17 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:45:05 [end_date_ymd] => 2025-02-17 10:45:05 [RateCDR] => 1 ) [2025-02-17 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:45:05' and `end` < '2025-02-17 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:45:19] Production.INFO: count ==1407 [2025-02-17 10:45:19] Production.ERROR: pbx CDR StartTime 2025-02-17 07:45:05 - End Time 2025-02-17 10:45:05 [2025-02-17 10:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495210', 'tblTempUsageDetail_20' ) start [2025-02-17 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495210', 'tblTempUsageDetail_20' ) end [2025-02-17 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495210', 'tblTempVendorCDR_20' ) start [2025-02-17 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495210', 'tblTempVendorCDR_20' ) end [2025-02-17 10:45:19] Production.INFO: ProcessCDR(1,14495210,1,1,2) [2025-02-17 10:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495210', 'tblTempUsageDetail_20' ) start [2025-02-17 10:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495210', 'tblTempUsageDetail_20' ) end [2025-02-17 10:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:45:24] Production.INFO: ==18241== Releasing lock... [2025-02-17 10:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:45:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-17 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:46:05 [end_date_ymd] => 2025-02-17 10:46:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 07:46:05' and `end` < '2025-02-17 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-02-17 10:46:18] Production.INFO: count ==1416 [2025-02-17 10:46:19] Production.ERROR: pbx CDR StartTime 2025-02-17 07:46:05 - End Time 2025-02-17 10:46:05 [2025-02-17 10:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495215', 'tblTempUsageDetail_20' ) start [2025-02-17 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495215', 'tblTempUsageDetail_20' ) end [2025-02-17 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495215', 'tblTempVendorCDR_20' ) start [2025-02-17 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495215', 'tblTempVendorCDR_20' ) end [2025-02-17 10:46:19] Production.INFO: ProcessCDR(1,14495215,1,1,2) [2025-02-17 10:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495215', 'tblTempUsageDetail_20' ) start [2025-02-17 10:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495215', 'tblTempUsageDetail_20' ) end [2025-02-17 10:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:46:24] Production.INFO: ==18322== Releasing lock... [2025-02-17 10:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:46:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-17 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:47:05 [end_date_ymd] => 2025-02-17 10:47:05 [RateCDR] => 1 ) [2025-02-17 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:47:05' and `end` < '2025-02-17 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:47:22] Production.INFO: count ==1421 [2025-02-17 10:47:23] Production.ERROR: pbx CDR StartTime 2025-02-17 07:47:05 - End Time 2025-02-17 10:47:05 [2025-02-17 10:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495220', 'tblTempUsageDetail_20' ) start [2025-02-17 10:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495220', 'tblTempUsageDetail_20' ) end [2025-02-17 10:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495220', 'tblTempVendorCDR_20' ) start [2025-02-17 10:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495220', 'tblTempVendorCDR_20' ) end [2025-02-17 10:47:23] Production.INFO: ProcessCDR(1,14495220,1,1,2) [2025-02-17 10:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495220', 'tblTempUsageDetail_20' ) start [2025-02-17 10:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495220', 'tblTempUsageDetail_20' ) end [2025-02-17 10:47:28] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:47:28] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:47:28] Production.INFO: ==18444== Releasing lock... [2025-02-17 10:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:47:28] Production.INFO: 38.75 MB #Memory Used# [2025-02-17 10:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:48:06 [end_date_ymd] => 2025-02-17 10:48:06 [RateCDR] => 1 ) [2025-02-17 10:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:48:06' and `end` < '2025-02-17 10:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:48:19] Production.INFO: count ==1426 [2025-02-17 10:48:20] Production.ERROR: pbx CDR StartTime 2025-02-17 07:48:06 - End Time 2025-02-17 10:48:06 [2025-02-17 10:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495222', 'tblTempUsageDetail_20' ) start [2025-02-17 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495222', 'tblTempUsageDetail_20' ) end [2025-02-17 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495222', 'tblTempVendorCDR_20' ) start [2025-02-17 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495222', 'tblTempVendorCDR_20' ) end [2025-02-17 10:48:20] Production.INFO: ProcessCDR(1,14495222,1,1,2) [2025-02-17 10:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495222', 'tblTempUsageDetail_20' ) start [2025-02-17 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495222', 'tblTempUsageDetail_20' ) end [2025-02-17 10:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:48:24] Production.INFO: ==18523== Releasing lock... [2025-02-17 10:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:48:24] Production.INFO: 39 MB #Memory Used# [2025-02-17 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:49:05 [end_date_ymd] => 2025-02-17 10:49:05 [RateCDR] => 1 ) [2025-02-17 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:49:05' and `end` < '2025-02-17 10:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:49:18] Production.INFO: count ==1438 [2025-02-17 10:49:19] Production.ERROR: pbx CDR StartTime 2025-02-17 07:49:05 - End Time 2025-02-17 10:49:05 [2025-02-17 10:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495230', 'tblTempUsageDetail_20' ) start [2025-02-17 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495230', 'tblTempUsageDetail_20' ) end [2025-02-17 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495230', 'tblTempVendorCDR_20' ) start [2025-02-17 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495230', 'tblTempVendorCDR_20' ) end [2025-02-17 10:49:19] Production.INFO: ProcessCDR(1,14495230,1,1,2) [2025-02-17 10:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495230', 'tblTempUsageDetail_20' ) start [2025-02-17 10:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495230', 'tblTempUsageDetail_20' ) end [2025-02-17 10:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:49:22] Production.INFO: ==18602== Releasing lock... [2025-02-17 10:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:49:22] Production.INFO: 39 MB #Memory Used# [2025-02-17 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:50:06 [end_date_ymd] => 2025-02-17 10:50:06 [RateCDR] => 1 ) [2025-02-17 10:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:50:06' and `end` < '2025-02-17 10:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:50:19] Production.INFO: count ==1475 [2025-02-17 10:50:20] Production.ERROR: pbx CDR StartTime 2025-02-17 07:50:06 - End Time 2025-02-17 10:50:06 [2025-02-17 10:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495236', 'tblTempUsageDetail_20' ) start [2025-02-17 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495236', 'tblTempUsageDetail_20' ) end [2025-02-17 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495236', 'tblTempVendorCDR_20' ) start [2025-02-17 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495236', 'tblTempVendorCDR_20' ) end [2025-02-17 10:50:20] Production.INFO: ProcessCDR(1,14495236,1,1,2) [2025-02-17 10:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495236', 'tblTempUsageDetail_20' ) start [2025-02-17 10:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495236', 'tblTempUsageDetail_20' ) end [2025-02-17 10:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:50:24] Production.INFO: ==18684== Releasing lock... [2025-02-17 10:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:50:24] Production.INFO: 39 MB #Memory Used# [2025-02-17 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:51:05 [end_date_ymd] => 2025-02-17 10:51:05 [RateCDR] => 1 ) [2025-02-17 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:51:05' and `end` < '2025-02-17 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:51:20] Production.INFO: count ==1515 [2025-02-17 10:51:21] Production.ERROR: pbx CDR StartTime 2025-02-17 07:51:05 - End Time 2025-02-17 10:51:05 [2025-02-17 10:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495241', 'tblTempUsageDetail_20' ) start [2025-02-17 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495241', 'tblTempUsageDetail_20' ) end [2025-02-17 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495241', 'tblTempVendorCDR_20' ) start [2025-02-17 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495241', 'tblTempVendorCDR_20' ) end [2025-02-17 10:51:21] Production.INFO: ProcessCDR(1,14495241,1,1,2) [2025-02-17 10:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495241', 'tblTempUsageDetail_20' ) start [2025-02-17 10:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495241', 'tblTempUsageDetail_20' ) end [2025-02-17 10:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:51:26] Production.INFO: ==18764== Releasing lock... [2025-02-17 10:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:51:26] Production.INFO: 39.5 MB #Memory Used# [2025-02-17 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:52:05 [end_date_ymd] => 2025-02-17 10:52:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 07:52:05' and `end` < '2025-02-17 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-02-17 10:52:19] Production.INFO: count ==1522 [2025-02-17 10:52:19] Production.ERROR: pbx CDR StartTime 2025-02-17 07:52:05 - End Time 2025-02-17 10:52:05 [2025-02-17 10:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495246', 'tblTempUsageDetail_20' ) start [2025-02-17 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495246', 'tblTempUsageDetail_20' ) end [2025-02-17 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495246', 'tblTempVendorCDR_20' ) start [2025-02-17 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495246', 'tblTempVendorCDR_20' ) end [2025-02-17 10:52:19] Production.INFO: ProcessCDR(1,14495246,1,1,2) [2025-02-17 10:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495246', 'tblTempUsageDetail_20' ) start [2025-02-17 10:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495246', 'tblTempUsageDetail_20' ) end [2025-02-17 10:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:52:22] Production.INFO: ==18845== Releasing lock... [2025-02-17 10:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:52:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-17 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:53:05 [end_date_ymd] => 2025-02-17 10:53:05 [RateCDR] => 1 ) [2025-02-17 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:53:05' and `end` < '2025-02-17 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:53:18] Production.INFO: count ==1526 [2025-02-17 10:53:19] Production.ERROR: pbx CDR StartTime 2025-02-17 07:53:05 - End Time 2025-02-17 10:53:05 [2025-02-17 10:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495251', 'tblTempUsageDetail_20' ) start [2025-02-17 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495251', 'tblTempUsageDetail_20' ) end [2025-02-17 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495251', 'tblTempVendorCDR_20' ) start [2025-02-17 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495251', 'tblTempVendorCDR_20' ) end [2025-02-17 10:53:19] Production.INFO: ProcessCDR(1,14495251,1,1,2) [2025-02-17 10:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495251', 'tblTempUsageDetail_20' ) start [2025-02-17 10:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495251', 'tblTempUsageDetail_20' ) end [2025-02-17 10:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:53:22] Production.INFO: ==18925== Releasing lock... [2025-02-17 10:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:53:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-17 10:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:54:06 [end_date_ymd] => 2025-02-17 10:54:06 [RateCDR] => 1 ) [2025-02-17 10:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:54:06' and `end` < '2025-02-17 10:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:54:19] Production.INFO: count ==1535 [2025-02-17 10:54:19] Production.ERROR: pbx CDR StartTime 2025-02-17 07:54:06 - End Time 2025-02-17 10:54:06 [2025-02-17 10:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495256', 'tblTempUsageDetail_20' ) start [2025-02-17 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495256', 'tblTempUsageDetail_20' ) end [2025-02-17 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495256', 'tblTempVendorCDR_20' ) start [2025-02-17 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495256', 'tblTempVendorCDR_20' ) end [2025-02-17 10:54:19] Production.INFO: ProcessCDR(1,14495256,1,1,2) [2025-02-17 10:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495256', 'tblTempUsageDetail_20' ) start [2025-02-17 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495256', 'tblTempUsageDetail_20' ) end [2025-02-17 10:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:54:23] Production.INFO: ==19003== Releasing lock... [2025-02-17 10:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:54:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-17 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:55:05 [end_date_ymd] => 2025-02-17 10:55:05 [RateCDR] => 1 ) [2025-02-17 10:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:55:05' and `end` < '2025-02-17 10:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:55:18] Production.INFO: count ==1588 [2025-02-17 10:55:19] Production.ERROR: pbx CDR StartTime 2025-02-17 07:55:05 - End Time 2025-02-17 10:55:05 [2025-02-17 10:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495261', 'tblTempUsageDetail_20' ) start [2025-02-17 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495261', 'tblTempUsageDetail_20' ) end [2025-02-17 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495261', 'tblTempVendorCDR_20' ) start [2025-02-17 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495261', 'tblTempVendorCDR_20' ) end [2025-02-17 10:55:19] Production.INFO: ProcessCDR(1,14495261,1,1,2) [2025-02-17 10:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495261', 'tblTempUsageDetail_20' ) start [2025-02-17 10:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495261', 'tblTempUsageDetail_20' ) end [2025-02-17 10:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:55:24] Production.INFO: ==19089== Releasing lock... [2025-02-17 10:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:55:24] Production.INFO: 40 MB #Memory Used# [2025-02-17 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:56:05 [end_date_ymd] => 2025-02-17 10:56:05 [RateCDR] => 1 ) [2025-02-17 10:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:56:05' and `end` < '2025-02-17 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:56:19] Production.INFO: count ==1590 [2025-02-17 10:56:20] Production.ERROR: pbx CDR StartTime 2025-02-17 07:56:05 - End Time 2025-02-17 10:56:05 [2025-02-17 10:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495266', 'tblTempUsageDetail_20' ) start [2025-02-17 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495266', 'tblTempUsageDetail_20' ) end [2025-02-17 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495266', 'tblTempVendorCDR_20' ) start [2025-02-17 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495266', 'tblTempVendorCDR_20' ) end [2025-02-17 10:56:20] Production.INFO: ProcessCDR(1,14495266,1,1,2) [2025-02-17 10:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495266', 'tblTempUsageDetail_20' ) start [2025-02-17 10:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495266', 'tblTempUsageDetail_20' ) end [2025-02-17 10:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:56:24] Production.INFO: ==19173== Releasing lock... [2025-02-17 10:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:56:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-17 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:57:05 [end_date_ymd] => 2025-02-17 10:57:05 [RateCDR] => 1 ) [2025-02-17 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:57:05' and `end` < '2025-02-17 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:57:18] Production.INFO: count ==1594 [2025-02-17 10:57:19] Production.ERROR: pbx CDR StartTime 2025-02-17 07:57:05 - End Time 2025-02-17 10:57:05 [2025-02-17 10:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495271', 'tblTempUsageDetail_20' ) start [2025-02-17 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495271', 'tblTempUsageDetail_20' ) end [2025-02-17 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495271', 'tblTempVendorCDR_20' ) start [2025-02-17 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495271', 'tblTempVendorCDR_20' ) end [2025-02-17 10:57:19] Production.INFO: ProcessCDR(1,14495271,1,1,2) [2025-02-17 10:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495271', 'tblTempUsageDetail_20' ) start [2025-02-17 10:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495271', 'tblTempUsageDetail_20' ) end [2025-02-17 10:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:57:23] Production.INFO: ==19251== Releasing lock... [2025-02-17 10:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:57:23] Production.INFO: 40 MB #Memory Used# [2025-02-17 10:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:58:06 [end_date_ymd] => 2025-02-17 10:58:06 [RateCDR] => 1 ) [2025-02-17 10:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:58:06' and `end` < '2025-02-17 10:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 10:58:19] Production.INFO: count ==1597 [2025-02-17 10:58:20] Production.ERROR: pbx CDR StartTime 2025-02-17 07:58:06 - End Time 2025-02-17 10:58:06 [2025-02-17 10:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495276', 'tblTempUsageDetail_20' ) start [2025-02-17 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495276', 'tblTempUsageDetail_20' ) end [2025-02-17 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495276', 'tblTempVendorCDR_20' ) start [2025-02-17 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495276', 'tblTempVendorCDR_20' ) end [2025-02-17 10:58:20] Production.INFO: ProcessCDR(1,14495276,1,1,2) [2025-02-17 10:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495276', 'tblTempUsageDetail_20' ) start [2025-02-17 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495276', 'tblTempUsageDetail_20' ) end [2025-02-17 10:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:58:25] Production.INFO: ==19329== Releasing lock... [2025-02-17 10:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:58:25] Production.INFO: 40 MB #Memory Used# [2025-02-17 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 07:59:05 [end_date_ymd] => 2025-02-17 10:59:05 [RateCDR] => 1 ) [2025-02-17 10:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 07:59:05' and `end` < '2025-02-17 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-02-17 10:59:20] Production.INFO: count ==1601 [2025-02-17 10:59:21] Production.ERROR: pbx CDR StartTime 2025-02-17 07:59:05 - End Time 2025-02-17 10:59:05 [2025-02-17 10:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495281', 'tblTempUsageDetail_20' ) start [2025-02-17 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495281', 'tblTempUsageDetail_20' ) end [2025-02-17 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495281', 'tblTempVendorCDR_20' ) start [2025-02-17 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495281', 'tblTempVendorCDR_20' ) end [2025-02-17 10:59:21] Production.INFO: ProcessCDR(1,14495281,1,1,2) [2025-02-17 10:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 10:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495281', 'tblTempUsageDetail_20' ) start [2025-02-17 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495281', 'tblTempUsageDetail_20' ) end [2025-02-17 10:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 10:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 10:59:24] Production.INFO: ==19411== Releasing lock... [2025-02-17 10:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 10:59:24] Production.INFO: 40 MB #Memory Used# [2025-02-17 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:00:06 [end_date_ymd] => 2025-02-17 11:00:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 08:00:06' and `end` < '2025-02-17 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-02-17 11:00:20] Production.INFO: count ==1627 [2025-02-17 11:00:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:00:06 - End Time 2025-02-17 11:00:06 [2025-02-17 11:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495287', 'tblTempUsageDetail_20' ) start [2025-02-17 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495287', 'tblTempUsageDetail_20' ) end [2025-02-17 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495287', 'tblTempVendorCDR_20' ) start [2025-02-17 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495287', 'tblTempVendorCDR_20' ) end [2025-02-17 11:00:20] Production.INFO: ProcessCDR(1,14495287,1,1,2) [2025-02-17 11:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495287', 'tblTempUsageDetail_20' ) start [2025-02-17 11:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495287', 'tblTempUsageDetail_20' ) end [2025-02-17 11:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:00:24] Production.INFO: ==19495== Releasing lock... [2025-02-17 11:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:00:24] Production.INFO: 40.25 MB #Memory Used# [2025-02-17 11:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:01:06 [end_date_ymd] => 2025-02-17 11:01:06 [RateCDR] => 1 ) [2025-02-17 11:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:01:06' and `end` < '2025-02-17 11:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:01:19] Production.INFO: count ==1662 [2025-02-17 11:01:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:01:06 - End Time 2025-02-17 11:01:06 [2025-02-17 11:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495292', 'tblTempUsageDetail_20' ) start [2025-02-17 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495292', 'tblTempUsageDetail_20' ) end [2025-02-17 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495292', 'tblTempVendorCDR_20' ) start [2025-02-17 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495292', 'tblTempVendorCDR_20' ) end [2025-02-17 11:01:20] Production.INFO: ProcessCDR(1,14495292,1,1,2) [2025-02-17 11:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495292', 'tblTempUsageDetail_20' ) start [2025-02-17 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495292', 'tblTempUsageDetail_20' ) end [2025-02-17 11:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:01:25] Production.INFO: ==19662== Releasing lock... [2025-02-17 11:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:01:25] Production.INFO: 40.5 MB #Memory Used# [2025-02-17 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:02:06 [end_date_ymd] => 2025-02-17 11:02:06 [RateCDR] => 1 ) [2025-02-17 11:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:02:06' and `end` < '2025-02-17 11:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:02:19] Production.INFO: count ==1692 [2025-02-17 11:02:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:02:06 - End Time 2025-02-17 11:02:06 [2025-02-17 11:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495297', 'tblTempUsageDetail_20' ) start [2025-02-17 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495297', 'tblTempUsageDetail_20' ) end [2025-02-17 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495297', 'tblTempVendorCDR_20' ) start [2025-02-17 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495297', 'tblTempVendorCDR_20' ) end [2025-02-17 11:02:20] Production.INFO: ProcessCDR(1,14495297,1,1,2) [2025-02-17 11:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495297', 'tblTempUsageDetail_20' ) start [2025-02-17 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495297', 'tblTempUsageDetail_20' ) end [2025-02-17 11:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:02:25] Production.INFO: ==19788== Releasing lock... [2025-02-17 11:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:02:25] Production.INFO: 40.75 MB #Memory Used# [2025-02-17 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:03:05 [end_date_ymd] => 2025-02-17 11:03:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 08:03:05' and `end` < '2025-02-17 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-02-17 11:03:18] Production.INFO: count ==1694 [2025-02-17 11:03:19] Production.ERROR: pbx CDR StartTime 2025-02-17 08:03:05 - End Time 2025-02-17 11:03:05 [2025-02-17 11:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495302', 'tblTempUsageDetail_20' ) start [2025-02-17 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495302', 'tblTempUsageDetail_20' ) end [2025-02-17 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495302', 'tblTempVendorCDR_20' ) start [2025-02-17 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495302', 'tblTempVendorCDR_20' ) end [2025-02-17 11:03:19] Production.INFO: ProcessCDR(1,14495302,1,1,2) [2025-02-17 11:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495302', 'tblTempUsageDetail_20' ) start [2025-02-17 11:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495302', 'tblTempUsageDetail_20' ) end [2025-02-17 11:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:03:23] Production.INFO: ==19867== Releasing lock... [2025-02-17 11:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:03:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-17 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:04:05 [end_date_ymd] => 2025-02-17 11:04:05 [RateCDR] => 1 ) [2025-02-17 11:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:04:05' and `end` < '2025-02-17 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-02-17 11:04:19] Production.INFO: count ==1698 [2025-02-17 11:04:19] Production.ERROR: pbx CDR StartTime 2025-02-17 08:04:05 - End Time 2025-02-17 11:04:05 [2025-02-17 11:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495307', 'tblTempUsageDetail_20' ) start [2025-02-17 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495307', 'tblTempUsageDetail_20' ) end [2025-02-17 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495307', 'tblTempVendorCDR_20' ) start [2025-02-17 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495307', 'tblTempVendorCDR_20' ) end [2025-02-17 11:04:20] Production.INFO: ProcessCDR(1,14495307,1,1,2) [2025-02-17 11:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495307', 'tblTempUsageDetail_20' ) start [2025-02-17 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495307', 'tblTempUsageDetail_20' ) end [2025-02-17 11:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:04:25] Production.INFO: ==19956== Releasing lock... [2025-02-17 11:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:04:25] Production.INFO: 40.75 MB #Memory Used# [2025-02-17 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:05:05 [end_date_ymd] => 2025-02-17 11:05:05 [RateCDR] => 1 ) [2025-02-17 11:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:05:05' and `end` < '2025-02-17 11:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:05:18] Production.INFO: count ==1698 [2025-02-17 11:05:19] Production.ERROR: pbx CDR StartTime 2025-02-17 08:05:05 - End Time 2025-02-17 11:05:05 [2025-02-17 11:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495312', 'tblTempUsageDetail_20' ) start [2025-02-17 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495312', 'tblTempUsageDetail_20' ) end [2025-02-17 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495312', 'tblTempVendorCDR_20' ) start [2025-02-17 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495312', 'tblTempVendorCDR_20' ) end [2025-02-17 11:05:19] Production.INFO: ProcessCDR(1,14495312,1,1,2) [2025-02-17 11:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495312', 'tblTempUsageDetail_20' ) start [2025-02-17 11:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495312', 'tblTempUsageDetail_20' ) end [2025-02-17 11:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:05:23] Production.INFO: ==20109== Releasing lock... [2025-02-17 11:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:05:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-17 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:06:06 [end_date_ymd] => 2025-02-17 11:06:06 [RateCDR] => 1 ) [2025-02-17 11:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:06:06' and `end` < '2025-02-17 11:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:06:19] Production.INFO: count ==1704 [2025-02-17 11:06:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:06:06 - End Time 2025-02-17 11:06:06 [2025-02-17 11:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495317', 'tblTempUsageDetail_20' ) start [2025-02-17 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495317', 'tblTempUsageDetail_20' ) end [2025-02-17 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495317', 'tblTempVendorCDR_20' ) start [2025-02-17 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495317', 'tblTempVendorCDR_20' ) end [2025-02-17 11:06:20] Production.INFO: ProcessCDR(1,14495317,1,1,2) [2025-02-17 11:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495317', 'tblTempUsageDetail_20' ) start [2025-02-17 11:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495317', 'tblTempUsageDetail_20' ) end [2025-02-17 11:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:06:24] Production.INFO: ==20190== Releasing lock... [2025-02-17 11:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:06:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-17 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:07:05 [end_date_ymd] => 2025-02-17 11:07:05 [RateCDR] => 1 ) [2025-02-17 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:07:05' and `end` < '2025-02-17 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:07:19] Production.INFO: count ==1708 [2025-02-17 11:07:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:07:05 - End Time 2025-02-17 11:07:05 [2025-02-17 11:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495322', 'tblTempUsageDetail_20' ) start [2025-02-17 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495322', 'tblTempUsageDetail_20' ) end [2025-02-17 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495322', 'tblTempVendorCDR_20' ) start [2025-02-17 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495322', 'tblTempVendorCDR_20' ) end [2025-02-17 11:07:20] Production.INFO: ProcessCDR(1,14495322,1,1,2) [2025-02-17 11:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495322', 'tblTempUsageDetail_20' ) start [2025-02-17 11:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495322', 'tblTempUsageDetail_20' ) end [2025-02-17 11:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:07:23] Production.INFO: ==20274== Releasing lock... [2025-02-17 11:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:07:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-17 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:08:06 [end_date_ymd] => 2025-02-17 11:08:06 [RateCDR] => 1 ) [2025-02-17 11:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:08:06' and `end` < '2025-02-17 11:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:08:21] Production.INFO: count ==1713 [2025-02-17 11:08:22] Production.ERROR: pbx CDR StartTime 2025-02-17 08:08:06 - End Time 2025-02-17 11:08:06 [2025-02-17 11:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495327', 'tblTempUsageDetail_20' ) start [2025-02-17 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495327', 'tblTempUsageDetail_20' ) end [2025-02-17 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495327', 'tblTempVendorCDR_20' ) start [2025-02-17 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495327', 'tblTempVendorCDR_20' ) end [2025-02-17 11:08:22] Production.INFO: ProcessCDR(1,14495327,1,1,2) [2025-02-17 11:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495327', 'tblTempUsageDetail_20' ) start [2025-02-17 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495327', 'tblTempUsageDetail_20' ) end [2025-02-17 11:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:08:26] Production.INFO: ==20431== Releasing lock... [2025-02-17 11:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:08:26] Production.INFO: 41 MB #Memory Used# [2025-02-17 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:09:05 [end_date_ymd] => 2025-02-17 11:09:05 [RateCDR] => 1 ) [2025-02-17 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:09:05' and `end` < '2025-02-17 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:09:18] Production.INFO: count ==1721 [2025-02-17 11:09:19] Production.ERROR: pbx CDR StartTime 2025-02-17 08:09:05 - End Time 2025-02-17 11:09:05 [2025-02-17 11:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495332', 'tblTempUsageDetail_20' ) start [2025-02-17 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495332', 'tblTempUsageDetail_20' ) end [2025-02-17 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495332', 'tblTempVendorCDR_20' ) start [2025-02-17 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495332', 'tblTempVendorCDR_20' ) end [2025-02-17 11:09:19] Production.INFO: ProcessCDR(1,14495332,1,1,2) [2025-02-17 11:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495332', 'tblTempUsageDetail_20' ) start [2025-02-17 11:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495332', 'tblTempUsageDetail_20' ) end [2025-02-17 11:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:09:23] Production.INFO: ==20509== Releasing lock... [2025-02-17 11:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:09:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-17 11:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:10:07 [end_date_ymd] => 2025-02-17 11:10:07 [RateCDR] => 1 ) [2025-02-17 11:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:10:07' and `end` < '2025-02-17 11:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:10:20] Production.INFO: count ==1736 [2025-02-17 11:10:21] Production.ERROR: pbx CDR StartTime 2025-02-17 08:10:07 - End Time 2025-02-17 11:10:07 [2025-02-17 11:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495338', 'tblTempUsageDetail_20' ) start [2025-02-17 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495338', 'tblTempUsageDetail_20' ) end [2025-02-17 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495338', 'tblTempVendorCDR_20' ) start [2025-02-17 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495338', 'tblTempVendorCDR_20' ) end [2025-02-17 11:10:21] Production.INFO: ProcessCDR(1,14495338,1,1,2) [2025-02-17 11:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495338', 'tblTempUsageDetail_20' ) start [2025-02-17 11:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495338', 'tblTempUsageDetail_20' ) end [2025-02-17 11:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:10:25] Production.INFO: ==20591== Releasing lock... [2025-02-17 11:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:10:25] Production.INFO: 41 MB #Memory Used# [2025-02-17 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:11:05 [end_date_ymd] => 2025-02-17 11:11:05 [RateCDR] => 1 ) [2025-02-17 11:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:11:05' and `end` < '2025-02-17 11:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:11:19] Production.INFO: count ==1759 [2025-02-17 11:11:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:11:05 - End Time 2025-02-17 11:11:05 [2025-02-17 11:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495343', 'tblTempUsageDetail_20' ) start [2025-02-17 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495343', 'tblTempUsageDetail_20' ) end [2025-02-17 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495343', 'tblTempVendorCDR_20' ) start [2025-02-17 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495343', 'tblTempVendorCDR_20' ) end [2025-02-17 11:11:20] Production.INFO: ProcessCDR(1,14495343,1,1,2) [2025-02-17 11:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495343', 'tblTempUsageDetail_20' ) start [2025-02-17 11:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495343', 'tblTempUsageDetail_20' ) end [2025-02-17 11:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:11:24] Production.INFO: ==20670== Releasing lock... [2025-02-17 11:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:11:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-17 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:12:05 [end_date_ymd] => 2025-02-17 11:12:05 [RateCDR] => 1 ) [2025-02-17 11:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:12:05' and `end` < '2025-02-17 11:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:12:18] Production.INFO: count ==1794 [2025-02-17 11:12:19] Production.ERROR: pbx CDR StartTime 2025-02-17 08:12:05 - End Time 2025-02-17 11:12:05 [2025-02-17 11:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495348', 'tblTempUsageDetail_20' ) start [2025-02-17 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495348', 'tblTempUsageDetail_20' ) end [2025-02-17 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495348', 'tblTempVendorCDR_20' ) start [2025-02-17 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495348', 'tblTempVendorCDR_20' ) end [2025-02-17 11:12:19] Production.INFO: ProcessCDR(1,14495348,1,1,2) [2025-02-17 11:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495348', 'tblTempUsageDetail_20' ) start [2025-02-17 11:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495348', 'tblTempUsageDetail_20' ) end [2025-02-17 11:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:12:23] Production.INFO: ==20833== Releasing lock... [2025-02-17 11:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:12:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-17 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:13:05 [end_date_ymd] => 2025-02-17 11:13:05 [RateCDR] => 1 ) [2025-02-17 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:13:05' and `end` < '2025-02-17 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:13:21] Production.INFO: count ==1796 [2025-02-17 11:13:21] Production.ERROR: pbx CDR StartTime 2025-02-17 08:13:05 - End Time 2025-02-17 11:13:05 [2025-02-17 11:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495353', 'tblTempUsageDetail_20' ) start [2025-02-17 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495353', 'tblTempUsageDetail_20' ) end [2025-02-17 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495353', 'tblTempVendorCDR_20' ) start [2025-02-17 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495353', 'tblTempVendorCDR_20' ) end [2025-02-17 11:13:22] Production.INFO: ProcessCDR(1,14495353,1,1,2) [2025-02-17 11:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495353', 'tblTempUsageDetail_20' ) start [2025-02-17 11:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495353', 'tblTempUsageDetail_20' ) end [2025-02-17 11:13:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:13:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:13:27] Production.INFO: ==20912== Releasing lock... [2025-02-17 11:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:13:27] Production.INFO: 41.5 MB #Memory Used# [2025-02-17 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:14:05 [end_date_ymd] => 2025-02-17 11:14:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 08:14:05' and `end` < '2025-02-17 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-02-17 11:14:20] Production.INFO: count ==1794 [2025-02-17 11:14:21] Production.ERROR: pbx CDR StartTime 2025-02-17 08:14:05 - End Time 2025-02-17 11:14:05 [2025-02-17 11:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495358', 'tblTempUsageDetail_20' ) start [2025-02-17 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495358', 'tblTempUsageDetail_20' ) end [2025-02-17 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495358', 'tblTempVendorCDR_20' ) start [2025-02-17 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495358', 'tblTempVendorCDR_20' ) end [2025-02-17 11:14:21] Production.INFO: ProcessCDR(1,14495358,1,1,2) [2025-02-17 11:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495358', 'tblTempUsageDetail_20' ) start [2025-02-17 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495358', 'tblTempUsageDetail_20' ) end [2025-02-17 11:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:14:25] Production.INFO: ==21008== Releasing lock... [2025-02-17 11:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:14:25] Production.INFO: 41.5 MB #Memory Used# [2025-02-17 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:15:05 [end_date_ymd] => 2025-02-17 11:15:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 08:15:05' and `end` < '2025-02-17 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-02-17 11:15:19] Production.INFO: count ==1802 [2025-02-17 11:15:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:15:05 - End Time 2025-02-17 11:15:05 [2025-02-17 11:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495363', 'tblTempUsageDetail_20' ) start [2025-02-17 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495363', 'tblTempUsageDetail_20' ) end [2025-02-17 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495363', 'tblTempVendorCDR_20' ) start [2025-02-17 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495363', 'tblTempVendorCDR_20' ) end [2025-02-17 11:15:20] Production.INFO: ProcessCDR(1,14495363,1,1,2) [2025-02-17 11:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495363', 'tblTempUsageDetail_20' ) start [2025-02-17 11:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495363', 'tblTempUsageDetail_20' ) end [2025-02-17 11:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:15:23] Production.INFO: ==21210== Releasing lock... [2025-02-17 11:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:15:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-17 11:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:16:06 [end_date_ymd] => 2025-02-17 11:16:06 [RateCDR] => 1 ) [2025-02-17 11:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:16:06' and `end` < '2025-02-17 11:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:16:19] Production.INFO: count ==1816 [2025-02-17 11:16:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:16:06 - End Time 2025-02-17 11:16:06 [2025-02-17 11:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495368', 'tblTempUsageDetail_20' ) start [2025-02-17 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495368', 'tblTempUsageDetail_20' ) end [2025-02-17 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495368', 'tblTempVendorCDR_20' ) start [2025-02-17 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495368', 'tblTempVendorCDR_20' ) end [2025-02-17 11:16:20] Production.INFO: ProcessCDR(1,14495368,1,1,2) [2025-02-17 11:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495368', 'tblTempUsageDetail_20' ) start [2025-02-17 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495368', 'tblTempUsageDetail_20' ) end [2025-02-17 11:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:16:25] Production.INFO: ==21338== Releasing lock... [2025-02-17 11:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:16:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-17 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:17:05 [end_date_ymd] => 2025-02-17 11:17:05 [RateCDR] => 1 ) [2025-02-17 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:17:05' and `end` < '2025-02-17 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:17:20] Production.INFO: count ==1828 [2025-02-17 11:17:21] Production.ERROR: pbx CDR StartTime 2025-02-17 08:17:05 - End Time 2025-02-17 11:17:05 [2025-02-17 11:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495373', 'tblTempUsageDetail_20' ) start [2025-02-17 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495373', 'tblTempUsageDetail_20' ) end [2025-02-17 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495373', 'tblTempVendorCDR_20' ) start [2025-02-17 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495373', 'tblTempVendorCDR_20' ) end [2025-02-17 11:17:21] Production.INFO: ProcessCDR(1,14495373,1,1,2) [2025-02-17 11:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495373', 'tblTempUsageDetail_20' ) start [2025-02-17 11:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495373', 'tblTempUsageDetail_20' ) end [2025-02-17 11:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:17:24] Production.INFO: ==21463== Releasing lock... [2025-02-17 11:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:17:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-17 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:18:05 [end_date_ymd] => 2025-02-17 11:18:05 [RateCDR] => 1 ) [2025-02-17 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:18:05' and `end` < '2025-02-17 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:18:19] Production.INFO: count ==1828 [2025-02-17 11:18:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:18:05 - End Time 2025-02-17 11:18:05 [2025-02-17 11:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495378', 'tblTempUsageDetail_20' ) start [2025-02-17 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495378', 'tblTempUsageDetail_20' ) end [2025-02-17 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495378', 'tblTempVendorCDR_20' ) start [2025-02-17 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495378', 'tblTempVendorCDR_20' ) end [2025-02-17 11:18:20] Production.INFO: ProcessCDR(1,14495378,1,1,2) [2025-02-17 11:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495378', 'tblTempUsageDetail_20' ) start [2025-02-17 11:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495378', 'tblTempUsageDetail_20' ) end [2025-02-17 11:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:18:23] Production.INFO: ==21622== Releasing lock... [2025-02-17 11:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:18:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-17 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:19:05 [end_date_ymd] => 2025-02-17 11:19:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 08:19:05' and `end` < '2025-02-17 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-02-17 11:19:19] Production.INFO: count ==1807 [2025-02-17 11:19:19] Production.ERROR: pbx CDR StartTime 2025-02-17 08:19:05 - End Time 2025-02-17 11:19:05 [2025-02-17 11:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495383', 'tblTempUsageDetail_20' ) start [2025-02-17 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495383', 'tblTempUsageDetail_20' ) end [2025-02-17 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495383', 'tblTempVendorCDR_20' ) start [2025-02-17 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495383', 'tblTempVendorCDR_20' ) end [2025-02-17 11:19:19] Production.INFO: ProcessCDR(1,14495383,1,1,2) [2025-02-17 11:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495383', 'tblTempUsageDetail_20' ) start [2025-02-17 11:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495383', 'tblTempUsageDetail_20' ) end [2025-02-17 11:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:19:23] Production.INFO: ==21749== Releasing lock... [2025-02-17 11:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:19:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-17 11:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:20:07 [end_date_ymd] => 2025-02-17 11:20:07 [RateCDR] => 1 ) [2025-02-17 11:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:20:07' and `end` < '2025-02-17 11:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:20:20] Production.INFO: count ==1807 [2025-02-17 11:20:21] Production.ERROR: pbx CDR StartTime 2025-02-17 08:20:07 - End Time 2025-02-17 11:20:07 [2025-02-17 11:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495389', 'tblTempUsageDetail_20' ) start [2025-02-17 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495389', 'tblTempUsageDetail_20' ) end [2025-02-17 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495389', 'tblTempVendorCDR_20' ) start [2025-02-17 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495389', 'tblTempVendorCDR_20' ) end [2025-02-17 11:20:21] Production.INFO: ProcessCDR(1,14495389,1,1,2) [2025-02-17 11:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495389', 'tblTempUsageDetail_20' ) start [2025-02-17 11:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495389', 'tblTempUsageDetail_20' ) end [2025-02-17 11:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:20:24] Production.INFO: ==21872== Releasing lock... [2025-02-17 11:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:20:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-17 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:21:05 [end_date_ymd] => 2025-02-17 11:21:05 [RateCDR] => 1 ) [2025-02-17 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:21:05' and `end` < '2025-02-17 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:21:18] Production.INFO: count ==1865 [2025-02-17 11:21:19] Production.ERROR: pbx CDR StartTime 2025-02-17 08:21:05 - End Time 2025-02-17 11:21:05 [2025-02-17 11:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495394', 'tblTempUsageDetail_20' ) start [2025-02-17 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495394', 'tblTempUsageDetail_20' ) end [2025-02-17 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495394', 'tblTempVendorCDR_20' ) start [2025-02-17 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495394', 'tblTempVendorCDR_20' ) end [2025-02-17 11:21:19] Production.INFO: ProcessCDR(1,14495394,1,1,2) [2025-02-17 11:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495394', 'tblTempUsageDetail_20' ) start [2025-02-17 11:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495394', 'tblTempUsageDetail_20' ) end [2025-02-17 11:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:21:23] Production.INFO: ==21998== Releasing lock... [2025-02-17 11:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:21:23] Production.INFO: 42 MB #Memory Used# [2025-02-17 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:22:06 [end_date_ymd] => 2025-02-17 11:22:06 [RateCDR] => 1 ) [2025-02-17 11:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:22:06' and `end` < '2025-02-17 11:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:22:20] Production.INFO: count ==1869 [2025-02-17 11:22:21] Production.ERROR: pbx CDR StartTime 2025-02-17 08:22:06 - End Time 2025-02-17 11:22:06 [2025-02-17 11:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495399', 'tblTempUsageDetail_20' ) start [2025-02-17 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495399', 'tblTempUsageDetail_20' ) end [2025-02-17 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495399', 'tblTempVendorCDR_20' ) start [2025-02-17 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495399', 'tblTempVendorCDR_20' ) end [2025-02-17 11:22:21] Production.INFO: ProcessCDR(1,14495399,1,1,2) [2025-02-17 11:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495399', 'tblTempUsageDetail_20' ) start [2025-02-17 11:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495399', 'tblTempUsageDetail_20' ) end [2025-02-17 11:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:22:24] Production.INFO: ==22126== Releasing lock... [2025-02-17 11:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:22:24] Production.INFO: 42 MB #Memory Used# [2025-02-17 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:23:05 [end_date_ymd] => 2025-02-17 11:23:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 08:23:05' and `end` < '2025-02-17 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-02-17 11:23:20] Production.INFO: count ==1882 [2025-02-17 11:23:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:23:05 - End Time 2025-02-17 11:23:05 [2025-02-17 11:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495404', 'tblTempUsageDetail_20' ) start [2025-02-17 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495404', 'tblTempUsageDetail_20' ) end [2025-02-17 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495404', 'tblTempVendorCDR_20' ) start [2025-02-17 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495404', 'tblTempVendorCDR_20' ) end [2025-02-17 11:23:21] Production.INFO: ProcessCDR(1,14495404,1,1,2) [2025-02-17 11:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495404', 'tblTempUsageDetail_20' ) start [2025-02-17 11:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495404', 'tblTempUsageDetail_20' ) end [2025-02-17 11:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:23:24] Production.INFO: ==22248== Releasing lock... [2025-02-17 11:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:23:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-17 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:24:06 [end_date_ymd] => 2025-02-17 11:24:06 [RateCDR] => 1 ) [2025-02-17 11:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:24:06' and `end` < '2025-02-17 11:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:24:19] Production.INFO: count ==1888 [2025-02-17 11:24:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:24:06 - End Time 2025-02-17 11:24:06 [2025-02-17 11:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495409', 'tblTempUsageDetail_20' ) start [2025-02-17 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495409', 'tblTempUsageDetail_20' ) end [2025-02-17 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495409', 'tblTempVendorCDR_20' ) start [2025-02-17 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495409', 'tblTempVendorCDR_20' ) end [2025-02-17 11:24:20] Production.INFO: ProcessCDR(1,14495409,1,1,2) [2025-02-17 11:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495409', 'tblTempUsageDetail_20' ) start [2025-02-17 11:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495409', 'tblTempUsageDetail_20' ) end [2025-02-17 11:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:24:25] Production.INFO: ==22368== Releasing lock... [2025-02-17 11:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:24:25] Production.INFO: 42.25 MB #Memory Used# [2025-02-17 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:25:06 [end_date_ymd] => 2025-02-17 11:25:06 [RateCDR] => 1 ) [2025-02-17 11:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:25:06' and `end` < '2025-02-17 11:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:25:19] Production.INFO: count ==1915 [2025-02-17 11:25:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:25:06 - End Time 2025-02-17 11:25:06 [2025-02-17 11:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495414', 'tblTempUsageDetail_20' ) start [2025-02-17 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495414', 'tblTempUsageDetail_20' ) end [2025-02-17 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495414', 'tblTempVendorCDR_20' ) start [2025-02-17 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495414', 'tblTempVendorCDR_20' ) end [2025-02-17 11:25:20] Production.INFO: ProcessCDR(1,14495414,1,1,2) [2025-02-17 11:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495414', 'tblTempUsageDetail_20' ) start [2025-02-17 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495414', 'tblTempUsageDetail_20' ) end [2025-02-17 11:25:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:25:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:25:26] Production.INFO: ==22476== Releasing lock... [2025-02-17 11:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:25:26] Production.INFO: 42.5 MB #Memory Used# [2025-02-17 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:26:05 [end_date_ymd] => 2025-02-17 11:26:05 [RateCDR] => 1 ) [2025-02-17 11:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:26:05' and `end` < '2025-02-17 11:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:26:19] Production.INFO: count ==1923 [2025-02-17 11:26:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:26:05 - End Time 2025-02-17 11:26:05 [2025-02-17 11:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495419', 'tblTempUsageDetail_20' ) start [2025-02-17 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495419', 'tblTempUsageDetail_20' ) end [2025-02-17 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495419', 'tblTempVendorCDR_20' ) start [2025-02-17 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495419', 'tblTempVendorCDR_20' ) end [2025-02-17 11:26:20] Production.INFO: ProcessCDR(1,14495419,1,1,2) [2025-02-17 11:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495419', 'tblTempUsageDetail_20' ) start [2025-02-17 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495419', 'tblTempUsageDetail_20' ) end [2025-02-17 11:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:26:25] Production.INFO: ==22548== Releasing lock... [2025-02-17 11:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:26:25] Production.INFO: 42.5 MB #Memory Used# [2025-02-17 11:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:27:06 [end_date_ymd] => 2025-02-17 11:27:06 [RateCDR] => 1 ) [2025-02-17 11:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:27:06' and `end` < '2025-02-17 11:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:27:19] Production.INFO: count ==1953 [2025-02-17 11:27:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:27:06 - End Time 2025-02-17 11:27:06 [2025-02-17 11:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495424', 'tblTempUsageDetail_20' ) start [2025-02-17 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495424', 'tblTempUsageDetail_20' ) end [2025-02-17 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495424', 'tblTempVendorCDR_20' ) start [2025-02-17 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495424', 'tblTempVendorCDR_20' ) end [2025-02-17 11:27:20] Production.INFO: ProcessCDR(1,14495424,1,1,2) [2025-02-17 11:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495424', 'tblTempUsageDetail_20' ) start [2025-02-17 11:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495424', 'tblTempUsageDetail_20' ) end [2025-02-17 11:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:27:24] Production.INFO: ==22632== Releasing lock... [2025-02-17 11:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:27:24] Production.INFO: 43 MB #Memory Used# [2025-02-17 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:28:05 [end_date_ymd] => 2025-02-17 11:28:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 08:28:05' and `end` < '2025-02-17 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-02-17 11:28:20] Production.INFO: count ==1967 [2025-02-17 11:28:21] Production.ERROR: pbx CDR StartTime 2025-02-17 08:28:05 - End Time 2025-02-17 11:28:05 [2025-02-17 11:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495429', 'tblTempUsageDetail_20' ) start [2025-02-17 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495429', 'tblTempUsageDetail_20' ) end [2025-02-17 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495429', 'tblTempVendorCDR_20' ) start [2025-02-17 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495429', 'tblTempVendorCDR_20' ) end [2025-02-17 11:28:21] Production.INFO: ProcessCDR(1,14495429,1,1,2) [2025-02-17 11:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495429', 'tblTempUsageDetail_20' ) start [2025-02-17 11:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495429', 'tblTempUsageDetail_20' ) end [2025-02-17 11:28:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:28:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:28:25] Production.INFO: ==22747== Releasing lock... [2025-02-17 11:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:28:25] Production.INFO: 42.75 MB #Memory Used# [2025-02-17 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:29:05 [end_date_ymd] => 2025-02-17 11:29:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 08:29:05' and `end` < '2025-02-17 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-02-17 11:29:18] Production.INFO: count ==1968 [2025-02-17 11:29:19] Production.ERROR: pbx CDR StartTime 2025-02-17 08:29:05 - End Time 2025-02-17 11:29:05 [2025-02-17 11:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495434', 'tblTempUsageDetail_20' ) start [2025-02-17 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495434', 'tblTempUsageDetail_20' ) end [2025-02-17 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495434', 'tblTempVendorCDR_20' ) start [2025-02-17 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495434', 'tblTempVendorCDR_20' ) end [2025-02-17 11:29:19] Production.INFO: ProcessCDR(1,14495434,1,1,2) [2025-02-17 11:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495434', 'tblTempUsageDetail_20' ) start [2025-02-17 11:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495434', 'tblTempUsageDetail_20' ) end [2025-02-17 11:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:29:23] Production.INFO: ==22823== Releasing lock... [2025-02-17 11:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:29:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-17 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:30:06 [end_date_ymd] => 2025-02-17 11:30:06 [RateCDR] => 1 ) [2025-02-17 11:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:30:06' and `end` < '2025-02-17 11:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:30:19] Production.INFO: count ==1970 [2025-02-17 11:30:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:30:06 - End Time 2025-02-17 11:30:06 [2025-02-17 11:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495439', 'tblTempUsageDetail_20' ) start [2025-02-17 11:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495439', 'tblTempUsageDetail_20' ) end [2025-02-17 11:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495439', 'tblTempVendorCDR_20' ) start [2025-02-17 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495439', 'tblTempVendorCDR_20' ) end [2025-02-17 11:30:21] Production.INFO: ProcessCDR(1,14495439,1,1,2) [2025-02-17 11:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495439', 'tblTempUsageDetail_20' ) start [2025-02-17 11:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495439', 'tblTempUsageDetail_20' ) end [2025-02-17 11:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:30:24] Production.INFO: ==22945== Releasing lock... [2025-02-17 11:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:30:24] Production.INFO: 42.75 MB #Memory Used# [2025-02-17 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:31:05 [end_date_ymd] => 2025-02-17 11:31:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 08:31:05' and `end` < '2025-02-17 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-02-17 11:31:19] Production.INFO: count ==2007 [2025-02-17 11:31:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:31:05 - End Time 2025-02-17 11:31:05 [2025-02-17 11:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495445', 'tblTempUsageDetail_20' ) start [2025-02-17 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495445', 'tblTempUsageDetail_20' ) end [2025-02-17 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495445', 'tblTempVendorCDR_20' ) start [2025-02-17 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495445', 'tblTempVendorCDR_20' ) end [2025-02-17 11:31:20] Production.INFO: ProcessCDR(1,14495445,1,1,2) [2025-02-17 11:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495445', 'tblTempUsageDetail_20' ) start [2025-02-17 11:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495445', 'tblTempUsageDetail_20' ) end [2025-02-17 11:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:31:23] Production.INFO: ==23025== Releasing lock... [2025-02-17 11:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:31:23] Production.INFO: 43 MB #Memory Used# [2025-02-17 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:32:05 [end_date_ymd] => 2025-02-17 11:32:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 08:32:05' and `end` < '2025-02-17 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-02-17 11:32:20] Production.INFO: count ==2009 [2025-02-17 11:32:21] Production.ERROR: pbx CDR StartTime 2025-02-17 08:32:05 - End Time 2025-02-17 11:32:05 [2025-02-17 11:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495450', 'tblTempUsageDetail_20' ) start [2025-02-17 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495450', 'tblTempUsageDetail_20' ) end [2025-02-17 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495450', 'tblTempVendorCDR_20' ) start [2025-02-17 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495450', 'tblTempVendorCDR_20' ) end [2025-02-17 11:32:21] Production.INFO: ProcessCDR(1,14495450,1,1,2) [2025-02-17 11:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495450', 'tblTempUsageDetail_20' ) start [2025-02-17 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495450', 'tblTempUsageDetail_20' ) end [2025-02-17 11:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:32:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:32:26] Production.INFO: ==23137== Releasing lock... [2025-02-17 11:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:32:26] Production.INFO: 43.25 MB #Memory Used# [2025-02-17 11:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:33:06 [end_date_ymd] => 2025-02-17 11:33:06 [RateCDR] => 1 ) [2025-02-17 11:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:33:06' and `end` < '2025-02-17 11:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:33:20] Production.INFO: count ==2009 [2025-02-17 11:33:21] Production.ERROR: pbx CDR StartTime 2025-02-17 08:33:06 - End Time 2025-02-17 11:33:06 [2025-02-17 11:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495455', 'tblTempUsageDetail_20' ) start [2025-02-17 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495455', 'tblTempUsageDetail_20' ) end [2025-02-17 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495455', 'tblTempVendorCDR_20' ) start [2025-02-17 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495455', 'tblTempVendorCDR_20' ) end [2025-02-17 11:33:21] Production.INFO: ProcessCDR(1,14495455,1,1,2) [2025-02-17 11:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495455', 'tblTempUsageDetail_20' ) start [2025-02-17 11:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495455', 'tblTempUsageDetail_20' ) end [2025-02-17 11:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:33:25] Production.INFO: ==23255== Releasing lock... [2025-02-17 11:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:33:25] Production.INFO: 43.25 MB #Memory Used# [2025-02-17 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:34:05 [end_date_ymd] => 2025-02-17 11:34:05 [RateCDR] => 1 ) [2025-02-17 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:34:05' and `end` < '2025-02-17 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:34:19] Production.INFO: count ==2010 [2025-02-17 11:34:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:34:05 - End Time 2025-02-17 11:34:05 [2025-02-17 11:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495460', 'tblTempUsageDetail_20' ) start [2025-02-17 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495460', 'tblTempUsageDetail_20' ) end [2025-02-17 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495460', 'tblTempVendorCDR_20' ) start [2025-02-17 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495460', 'tblTempVendorCDR_20' ) end [2025-02-17 11:34:20] Production.INFO: ProcessCDR(1,14495460,1,1,2) [2025-02-17 11:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495460', 'tblTempUsageDetail_20' ) start [2025-02-17 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495460', 'tblTempUsageDetail_20' ) end [2025-02-17 11:34:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:34:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:34:25] Production.INFO: ==23370== Releasing lock... [2025-02-17 11:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:34:25] Production.INFO: 43 MB #Memory Used# [2025-02-17 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:35:05 [end_date_ymd] => 2025-02-17 11:35:05 [RateCDR] => 1 ) [2025-02-17 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:35:05' and `end` < '2025-02-17 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:35:18] Production.INFO: count ==2010 [2025-02-17 11:35:19] Production.ERROR: pbx CDR StartTime 2025-02-17 08:35:05 - End Time 2025-02-17 11:35:05 [2025-02-17 11:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495465', 'tblTempUsageDetail_20' ) start [2025-02-17 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495465', 'tblTempUsageDetail_20' ) end [2025-02-17 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495465', 'tblTempVendorCDR_20' ) start [2025-02-17 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495465', 'tblTempVendorCDR_20' ) end [2025-02-17 11:35:19] Production.INFO: ProcessCDR(1,14495465,1,1,2) [2025-02-17 11:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495465', 'tblTempUsageDetail_20' ) start [2025-02-17 11:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495465', 'tblTempUsageDetail_20' ) end [2025-02-17 11:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:35:25] Production.INFO: ==23457== Releasing lock... [2025-02-17 11:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:35:25] Production.INFO: 43.25 MB #Memory Used# [2025-02-17 11:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:36:06 [end_date_ymd] => 2025-02-17 11:36:06 [RateCDR] => 1 ) [2025-02-17 11:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:36:06' and `end` < '2025-02-17 11:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:36:19] Production.INFO: count ==2022 [2025-02-17 11:36:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:36:06 - End Time 2025-02-17 11:36:06 [2025-02-17 11:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495470', 'tblTempUsageDetail_20' ) start [2025-02-17 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495470', 'tblTempUsageDetail_20' ) end [2025-02-17 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495470', 'tblTempVendorCDR_20' ) start [2025-02-17 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495470', 'tblTempVendorCDR_20' ) end [2025-02-17 11:36:20] Production.INFO: ProcessCDR(1,14495470,1,1,2) [2025-02-17 11:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495470', 'tblTempUsageDetail_20' ) start [2025-02-17 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495470', 'tblTempUsageDetail_20' ) end [2025-02-17 11:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:36:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:36:26] Production.INFO: ==23565== Releasing lock... [2025-02-17 11:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:36:26] Production.INFO: 43.25 MB #Memory Used# [2025-02-17 11:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:37:06 [end_date_ymd] => 2025-02-17 11:37:06 [RateCDR] => 1 ) [2025-02-17 11:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:37:06' and `end` < '2025-02-17 11:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:37:20] Production.INFO: count ==2018 [2025-02-17 11:37:21] Production.ERROR: pbx CDR StartTime 2025-02-17 08:37:06 - End Time 2025-02-17 11:37:06 [2025-02-17 11:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495475', 'tblTempUsageDetail_20' ) start [2025-02-17 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495475', 'tblTempUsageDetail_20' ) end [2025-02-17 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495475', 'tblTempVendorCDR_20' ) start [2025-02-17 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495475', 'tblTempVendorCDR_20' ) end [2025-02-17 11:37:21] Production.INFO: ProcessCDR(1,14495475,1,1,2) [2025-02-17 11:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495475', 'tblTempUsageDetail_20' ) start [2025-02-17 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495475', 'tblTempUsageDetail_20' ) end [2025-02-17 11:37:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:37:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:37:26] Production.INFO: ==23648== Releasing lock... [2025-02-17 11:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:37:26] Production.INFO: 43.5 MB #Memory Used# [2025-02-17 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:38:05 [end_date_ymd] => 2025-02-17 11:38:05 [RateCDR] => 1 ) [2025-02-17 11:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:38:05' and `end` < '2025-02-17 11:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:38:19] Production.INFO: count ==2006 [2025-02-17 11:38:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:38:05 - End Time 2025-02-17 11:38:05 [2025-02-17 11:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495480', 'tblTempUsageDetail_20' ) start [2025-02-17 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495480', 'tblTempUsageDetail_20' ) end [2025-02-17 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495480', 'tblTempVendorCDR_20' ) start [2025-02-17 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495480', 'tblTempVendorCDR_20' ) end [2025-02-17 11:38:20] Production.INFO: ProcessCDR(1,14495480,1,1,2) [2025-02-17 11:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495480', 'tblTempUsageDetail_20' ) start [2025-02-17 11:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495480', 'tblTempUsageDetail_20' ) end [2025-02-17 11:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:38:23] Production.INFO: ==23750== Releasing lock... [2025-02-17 11:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:38:23] Production.INFO: 43 MB #Memory Used# [2025-02-17 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:39:05 [end_date_ymd] => 2025-02-17 11:39:05 [RateCDR] => 1 ) [2025-02-17 11:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:39:05' and `end` < '2025-02-17 11:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:39:19] Production.INFO: count ==2031 [2025-02-17 11:39:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:39:05 - End Time 2025-02-17 11:39:05 [2025-02-17 11:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495485', 'tblTempUsageDetail_20' ) start [2025-02-17 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495485', 'tblTempUsageDetail_20' ) end [2025-02-17 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495485', 'tblTempVendorCDR_20' ) start [2025-02-17 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495485', 'tblTempVendorCDR_20' ) end [2025-02-17 11:39:20] Production.INFO: ProcessCDR(1,14495485,1,1,2) [2025-02-17 11:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495485', 'tblTempUsageDetail_20' ) start [2025-02-17 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495485', 'tblTempUsageDetail_20' ) end [2025-02-17 11:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:39:25] Production.INFO: ==23847== Releasing lock... [2025-02-17 11:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:39:25] Production.INFO: 43.25 MB #Memory Used# [2025-02-17 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:40:06 [end_date_ymd] => 2025-02-17 11:40:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 08:40:06' and `end` < '2025-02-17 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-02-17 11:40:19] Production.INFO: count ==2054 [2025-02-17 11:40:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:40:06 - End Time 2025-02-17 11:40:06 [2025-02-17 11:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495490', 'tblTempUsageDetail_20' ) start [2025-02-17 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495490', 'tblTempUsageDetail_20' ) end [2025-02-17 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495490', 'tblTempVendorCDR_20' ) start [2025-02-17 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495490', 'tblTempVendorCDR_20' ) end [2025-02-17 11:40:20] Production.INFO: ProcessCDR(1,14495490,1,1,2) [2025-02-17 11:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495490', 'tblTempUsageDetail_20' ) start [2025-02-17 11:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495490', 'tblTempUsageDetail_20' ) end [2025-02-17 11:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:40:24] Production.INFO: ==23923== Releasing lock... [2025-02-17 11:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:40:24] Production.INFO: 43.5 MB #Memory Used# [2025-02-17 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:41:05 [end_date_ymd] => 2025-02-17 11:41:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 08:41:05' and `end` < '2025-02-17 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-02-17 11:41:19] Production.INFO: count ==2083 [2025-02-17 11:41:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:41:05 - End Time 2025-02-17 11:41:05 [2025-02-17 11:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495496', 'tblTempUsageDetail_20' ) start [2025-02-17 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495496', 'tblTempUsageDetail_20' ) end [2025-02-17 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495496', 'tblTempVendorCDR_20' ) start [2025-02-17 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495496', 'tblTempVendorCDR_20' ) end [2025-02-17 11:41:20] Production.INFO: ProcessCDR(1,14495496,1,1,2) [2025-02-17 11:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495496', 'tblTempUsageDetail_20' ) start [2025-02-17 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495496', 'tblTempUsageDetail_20' ) end [2025-02-17 11:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:41:25] Production.INFO: ==24004== Releasing lock... [2025-02-17 11:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:41:25] Production.INFO: 43.75 MB #Memory Used# [2025-02-17 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:42:05 [end_date_ymd] => 2025-02-17 11:42:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 08:42:05' and `end` < '2025-02-17 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-02-17 11:42:19] Production.INFO: count ==2065 [2025-02-17 11:42:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:42:05 - End Time 2025-02-17 11:42:05 [2025-02-17 11:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495501', 'tblTempUsageDetail_20' ) start [2025-02-17 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495501', 'tblTempUsageDetail_20' ) end [2025-02-17 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495501', 'tblTempVendorCDR_20' ) start [2025-02-17 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495501', 'tblTempVendorCDR_20' ) end [2025-02-17 11:42:20] Production.INFO: ProcessCDR(1,14495501,1,1,2) [2025-02-17 11:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495501', 'tblTempUsageDetail_20' ) start [2025-02-17 11:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495501', 'tblTempUsageDetail_20' ) end [2025-02-17 11:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:42:23] Production.INFO: ==24084== Releasing lock... [2025-02-17 11:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:42:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-17 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:43:05 [end_date_ymd] => 2025-02-17 11:43:05 [RateCDR] => 1 ) [2025-02-17 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:43:05' and `end` < '2025-02-17 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:43:18] Production.INFO: count ==2047 [2025-02-17 11:43:19] Production.ERROR: pbx CDR StartTime 2025-02-17 08:43:05 - End Time 2025-02-17 11:43:05 [2025-02-17 11:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495506', 'tblTempUsageDetail_20' ) start [2025-02-17 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495506', 'tblTempUsageDetail_20' ) end [2025-02-17 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495506', 'tblTempVendorCDR_20' ) start [2025-02-17 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495506', 'tblTempVendorCDR_20' ) end [2025-02-17 11:43:19] Production.INFO: ProcessCDR(1,14495506,1,1,2) [2025-02-17 11:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495506', 'tblTempUsageDetail_20' ) start [2025-02-17 11:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495506', 'tblTempUsageDetail_20' ) end [2025-02-17 11:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:43:23] Production.INFO: ==24154== Releasing lock... [2025-02-17 11:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:43:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-17 11:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:44:06 [end_date_ymd] => 2025-02-17 11:44:06 [RateCDR] => 1 ) [2025-02-17 11:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:44:06' and `end` < '2025-02-17 11:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:44:20] Production.INFO: count ==2049 [2025-02-17 11:44:21] Production.ERROR: pbx CDR StartTime 2025-02-17 08:44:06 - End Time 2025-02-17 11:44:06 [2025-02-17 11:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495511', 'tblTempUsageDetail_20' ) start [2025-02-17 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495511', 'tblTempUsageDetail_20' ) end [2025-02-17 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495511', 'tblTempVendorCDR_20' ) start [2025-02-17 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495511', 'tblTempVendorCDR_20' ) end [2025-02-17 11:44:21] Production.INFO: ProcessCDR(1,14495511,1,1,2) [2025-02-17 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495511', 'tblTempUsageDetail_20' ) start [2025-02-17 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495511', 'tblTempUsageDetail_20' ) end [2025-02-17 11:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:44:26] Production.INFO: ==24225== Releasing lock... [2025-02-17 11:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:44:26] Production.INFO: 43.5 MB #Memory Used# [2025-02-17 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:45:05 [end_date_ymd] => 2025-02-17 11:45:05 [RateCDR] => 1 ) [2025-02-17 11:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:45:05' and `end` < '2025-02-17 11:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:45:19] Production.INFO: count ==2049 [2025-02-17 11:45:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:45:05 - End Time 2025-02-17 11:45:05 [2025-02-17 11:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495516', 'tblTempUsageDetail_20' ) start [2025-02-17 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495516', 'tblTempUsageDetail_20' ) end [2025-02-17 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495516', 'tblTempVendorCDR_20' ) start [2025-02-17 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495516', 'tblTempVendorCDR_20' ) end [2025-02-17 11:45:20] Production.INFO: ProcessCDR(1,14495516,1,1,2) [2025-02-17 11:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495516', 'tblTempUsageDetail_20' ) start [2025-02-17 11:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495516', 'tblTempUsageDetail_20' ) end [2025-02-17 11:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:45:23] Production.INFO: ==24298== Releasing lock... [2025-02-17 11:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:45:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-17 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:46:06 [end_date_ymd] => 2025-02-17 11:46:06 [RateCDR] => 1 ) [2025-02-17 11:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:46:06' and `end` < '2025-02-17 11:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:46:19] Production.INFO: count ==2050 [2025-02-17 11:46:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:46:06 - End Time 2025-02-17 11:46:06 [2025-02-17 11:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495521', 'tblTempUsageDetail_20' ) start [2025-02-17 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495521', 'tblTempUsageDetail_20' ) end [2025-02-17 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495521', 'tblTempVendorCDR_20' ) start [2025-02-17 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495521', 'tblTempVendorCDR_20' ) end [2025-02-17 11:46:20] Production.INFO: ProcessCDR(1,14495521,1,1,2) [2025-02-17 11:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495521', 'tblTempUsageDetail_20' ) start [2025-02-17 11:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495521', 'tblTempUsageDetail_20' ) end [2025-02-17 11:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:46:25] Production.INFO: ==24369== Releasing lock... [2025-02-17 11:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:46:25] Production.INFO: 43.5 MB #Memory Used# [2025-02-17 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:47:05 [end_date_ymd] => 2025-02-17 11:47:05 [RateCDR] => 1 ) [2025-02-17 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:47:05' and `end` < '2025-02-17 11:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:47:20] Production.INFO: count ==2052 [2025-02-17 11:47:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:47:05 - End Time 2025-02-17 11:47:05 [2025-02-17 11:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495526', 'tblTempUsageDetail_20' ) start [2025-02-17 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495526', 'tblTempUsageDetail_20' ) end [2025-02-17 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495526', 'tblTempVendorCDR_20' ) start [2025-02-17 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495526', 'tblTempVendorCDR_20' ) end [2025-02-17 11:47:21] Production.INFO: ProcessCDR(1,14495526,1,1,2) [2025-02-17 11:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495526', 'tblTempUsageDetail_20' ) start [2025-02-17 11:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495526', 'tblTempUsageDetail_20' ) end [2025-02-17 11:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:47:24] Production.INFO: ==24441== Releasing lock... [2025-02-17 11:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:47:24] Production.INFO: 43.75 MB #Memory Used# [2025-02-17 11:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:48:06 [end_date_ymd] => 2025-02-17 11:48:06 [RateCDR] => 1 ) [2025-02-17 11:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:48:06' and `end` < '2025-02-17 11:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:48:20] Production.INFO: count ==2052 [2025-02-17 11:48:21] Production.ERROR: pbx CDR StartTime 2025-02-17 08:48:06 - End Time 2025-02-17 11:48:06 [2025-02-17 11:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495531', 'tblTempUsageDetail_20' ) start [2025-02-17 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495531', 'tblTempUsageDetail_20' ) end [2025-02-17 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495531', 'tblTempVendorCDR_20' ) start [2025-02-17 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495531', 'tblTempVendorCDR_20' ) end [2025-02-17 11:48:21] Production.INFO: ProcessCDR(1,14495531,1,1,2) [2025-02-17 11:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495531', 'tblTempUsageDetail_20' ) start [2025-02-17 11:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495531', 'tblTempUsageDetail_20' ) end [2025-02-17 11:48:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:48:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:48:25] Production.INFO: ==24512== Releasing lock... [2025-02-17 11:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:48:25] Production.INFO: 43.75 MB #Memory Used# [2025-02-17 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:49:05 [end_date_ymd] => 2025-02-17 11:49:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 08:49:05' and `end` < '2025-02-17 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-02-17 11:49:19] Production.INFO: count ==2072 [2025-02-17 11:49:19] Production.ERROR: pbx CDR StartTime 2025-02-17 08:49:05 - End Time 2025-02-17 11:49:05 [2025-02-17 11:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495536', 'tblTempUsageDetail_20' ) start [2025-02-17 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495536', 'tblTempUsageDetail_20' ) end [2025-02-17 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495536', 'tblTempVendorCDR_20' ) start [2025-02-17 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495536', 'tblTempVendorCDR_20' ) end [2025-02-17 11:49:19] Production.INFO: ProcessCDR(1,14495536,1,1,2) [2025-02-17 11:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495536', 'tblTempUsageDetail_20' ) start [2025-02-17 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495536', 'tblTempUsageDetail_20' ) end [2025-02-17 11:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:49:23] Production.INFO: ==24623== Releasing lock... [2025-02-17 11:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:49:23] Production.INFO: 44 MB #Memory Used# [2025-02-17 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:50:06 [end_date_ymd] => 2025-02-17 11:50:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 08:50:06' and `end` < '2025-02-17 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-02-17 11:50:20] Production.INFO: count ==2057 [2025-02-17 11:50:21] Production.ERROR: pbx CDR StartTime 2025-02-17 08:50:06 - End Time 2025-02-17 11:50:06 [2025-02-17 11:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495542', 'tblTempUsageDetail_20' ) start [2025-02-17 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495542', 'tblTempUsageDetail_20' ) end [2025-02-17 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495542', 'tblTempVendorCDR_20' ) start [2025-02-17 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495542', 'tblTempVendorCDR_20' ) end [2025-02-17 11:50:21] Production.INFO: ProcessCDR(1,14495542,1,1,2) [2025-02-17 11:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495542', 'tblTempUsageDetail_20' ) start [2025-02-17 11:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495542', 'tblTempUsageDetail_20' ) end [2025-02-17 11:50:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:50:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:50:26] Production.INFO: ==24701== Releasing lock... [2025-02-17 11:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:50:26] Production.INFO: 43.5 MB #Memory Used# [2025-02-17 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:51:05 [end_date_ymd] => 2025-02-17 11:51:05 [RateCDR] => 1 ) [2025-02-17 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:51:05' and `end` < '2025-02-17 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:51:18] Production.INFO: count ==2079 [2025-02-17 11:51:19] Production.ERROR: pbx CDR StartTime 2025-02-17 08:51:05 - End Time 2025-02-17 11:51:05 [2025-02-17 11:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495547', 'tblTempUsageDetail_20' ) start [2025-02-17 11:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495547', 'tblTempUsageDetail_20' ) end [2025-02-17 11:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495547', 'tblTempVendorCDR_20' ) start [2025-02-17 11:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495547', 'tblTempVendorCDR_20' ) end [2025-02-17 11:51:19] Production.INFO: ProcessCDR(1,14495547,1,1,2) [2025-02-17 11:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495547', 'tblTempUsageDetail_20' ) start [2025-02-17 11:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495547', 'tblTempUsageDetail_20' ) end [2025-02-17 11:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:51:23] Production.INFO: ==24774== Releasing lock... [2025-02-17 11:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:51:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-17 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:52:06 [end_date_ymd] => 2025-02-17 11:52:06 [RateCDR] => 1 ) [2025-02-17 11:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:52:06' and `end` < '2025-02-17 11:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:52:19] Production.INFO: count ==2081 [2025-02-17 11:52:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:52:06 - End Time 2025-02-17 11:52:06 [2025-02-17 11:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495552', 'tblTempUsageDetail_20' ) start [2025-02-17 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495552', 'tblTempUsageDetail_20' ) end [2025-02-17 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495552', 'tblTempVendorCDR_20' ) start [2025-02-17 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495552', 'tblTempVendorCDR_20' ) end [2025-02-17 11:52:20] Production.INFO: ProcessCDR(1,14495552,1,1,2) [2025-02-17 11:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495552', 'tblTempUsageDetail_20' ) start [2025-02-17 11:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495552', 'tblTempUsageDetail_20' ) end [2025-02-17 11:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:52:25] Production.INFO: ==24845== Releasing lock... [2025-02-17 11:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:52:25] Production.INFO: 43.75 MB #Memory Used# [2025-02-17 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:53:05 [end_date_ymd] => 2025-02-17 11:53:05 [RateCDR] => 1 ) [2025-02-17 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:53:05' and `end` < '2025-02-17 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:53:18] Production.INFO: count ==2082 [2025-02-17 11:53:19] Production.ERROR: pbx CDR StartTime 2025-02-17 08:53:05 - End Time 2025-02-17 11:53:05 [2025-02-17 11:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495557', 'tblTempUsageDetail_20' ) start [2025-02-17 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495557', 'tblTempUsageDetail_20' ) end [2025-02-17 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495557', 'tblTempVendorCDR_20' ) start [2025-02-17 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495557', 'tblTempVendorCDR_20' ) end [2025-02-17 11:53:20] Production.INFO: ProcessCDR(1,14495557,1,1,2) [2025-02-17 11:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495557', 'tblTempUsageDetail_20' ) start [2025-02-17 11:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495557', 'tblTempUsageDetail_20' ) end [2025-02-17 11:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:53:23] Production.INFO: ==24917== Releasing lock... [2025-02-17 11:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:53:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-17 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:54:05 [end_date_ymd] => 2025-02-17 11:54:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 08:54:05' and `end` < '2025-02-17 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-02-17 11:54:19] Production.INFO: count ==2085 [2025-02-17 11:54:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:54:05 - End Time 2025-02-17 11:54:05 [2025-02-17 11:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495562', 'tblTempUsageDetail_20' ) start [2025-02-17 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495562', 'tblTempUsageDetail_20' ) end [2025-02-17 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495562', 'tblTempVendorCDR_20' ) start [2025-02-17 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495562', 'tblTempVendorCDR_20' ) end [2025-02-17 11:54:20] Production.INFO: ProcessCDR(1,14495562,1,1,2) [2025-02-17 11:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495562', 'tblTempUsageDetail_20' ) start [2025-02-17 11:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495562', 'tblTempUsageDetail_20' ) end [2025-02-17 11:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:54:24] Production.INFO: ==24989== Releasing lock... [2025-02-17 11:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:54:24] Production.INFO: 43.75 MB #Memory Used# [2025-02-17 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:55:05 [end_date_ymd] => 2025-02-17 11:55:05 [RateCDR] => 1 ) [2025-02-17 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:55:05' and `end` < '2025-02-17 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:55:19] Production.INFO: count ==2091 [2025-02-17 11:55:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:55:05 - End Time 2025-02-17 11:55:05 [2025-02-17 11:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495567', 'tblTempUsageDetail_20' ) start [2025-02-17 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495567', 'tblTempUsageDetail_20' ) end [2025-02-17 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495567', 'tblTempVendorCDR_20' ) start [2025-02-17 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495567', 'tblTempVendorCDR_20' ) end [2025-02-17 11:55:20] Production.INFO: ProcessCDR(1,14495567,1,1,2) [2025-02-17 11:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495567', 'tblTempUsageDetail_20' ) start [2025-02-17 11:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495567', 'tblTempUsageDetail_20' ) end [2025-02-17 11:55:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:55:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:55:25] Production.INFO: ==25058== Releasing lock... [2025-02-17 11:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:55:25] Production.INFO: 43.75 MB #Memory Used# [2025-02-17 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:56:05 [end_date_ymd] => 2025-02-17 11:56:05 [RateCDR] => 1 ) [2025-02-17 11:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:56:05' and `end` < '2025-02-17 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-02-17 11:56:19] Production.INFO: count ==2094 [2025-02-17 11:56:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:56:05 - End Time 2025-02-17 11:56:05 [2025-02-17 11:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495572', 'tblTempUsageDetail_20' ) start [2025-02-17 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495572', 'tblTempUsageDetail_20' ) end [2025-02-17 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495572', 'tblTempVendorCDR_20' ) start [2025-02-17 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495572', 'tblTempVendorCDR_20' ) end [2025-02-17 11:56:20] Production.INFO: ProcessCDR(1,14495572,1,1,2) [2025-02-17 11:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495572', 'tblTempUsageDetail_20' ) start [2025-02-17 11:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495572', 'tblTempUsageDetail_20' ) end [2025-02-17 11:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:56:25] Production.INFO: ==25133== Releasing lock... [2025-02-17 11:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:56:25] Production.INFO: 43.75 MB #Memory Used# [2025-02-17 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:57:05 [end_date_ymd] => 2025-02-17 11:57:05 [RateCDR] => 1 ) [2025-02-17 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:57:05' and `end` < '2025-02-17 11:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:57:18] Production.INFO: count ==2096 [2025-02-17 11:57:19] Production.ERROR: pbx CDR StartTime 2025-02-17 08:57:05 - End Time 2025-02-17 11:57:05 [2025-02-17 11:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495577', 'tblTempUsageDetail_20' ) start [2025-02-17 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495577', 'tblTempUsageDetail_20' ) end [2025-02-17 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495577', 'tblTempVendorCDR_20' ) start [2025-02-17 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495577', 'tblTempVendorCDR_20' ) end [2025-02-17 11:57:19] Production.INFO: ProcessCDR(1,14495577,1,1,2) [2025-02-17 11:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495577', 'tblTempUsageDetail_20' ) start [2025-02-17 11:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495577', 'tblTempUsageDetail_20' ) end [2025-02-17 11:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:57:24] Production.INFO: ==25205== Releasing lock... [2025-02-17 11:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:57:24] Production.INFO: 43.75 MB #Memory Used# [2025-02-17 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:58:05 [end_date_ymd] => 2025-02-17 11:58:05 [RateCDR] => 1 ) [2025-02-17 11:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 08:58:05' and `end` < '2025-02-17 11:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 11:58:19] Production.INFO: count ==2105 [2025-02-17 11:58:20] Production.ERROR: pbx CDR StartTime 2025-02-17 08:58:05 - End Time 2025-02-17 11:58:05 [2025-02-17 11:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495582', 'tblTempUsageDetail_20' ) start [2025-02-17 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495582', 'tblTempUsageDetail_20' ) end [2025-02-17 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495582', 'tblTempVendorCDR_20' ) start [2025-02-17 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495582', 'tblTempVendorCDR_20' ) end [2025-02-17 11:58:20] Production.INFO: ProcessCDR(1,14495582,1,1,2) [2025-02-17 11:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495582', 'tblTempUsageDetail_20' ) start [2025-02-17 11:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495582', 'tblTempUsageDetail_20' ) end [2025-02-17 11:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:58:25] Production.INFO: ==25276== Releasing lock... [2025-02-17 11:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:58:25] Production.INFO: 43.75 MB #Memory Used# [2025-02-17 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 08:59:05 [end_date_ymd] => 2025-02-17 11:59:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 08:59:05' and `end` < '2025-02-17 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-02-17 11:59:18] Production.INFO: count ==2108 [2025-02-17 11:59:19] Production.ERROR: pbx CDR StartTime 2025-02-17 08:59:05 - End Time 2025-02-17 11:59:05 [2025-02-17 11:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495587', 'tblTempUsageDetail_20' ) start [2025-02-17 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495587', 'tblTempUsageDetail_20' ) end [2025-02-17 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495587', 'tblTempVendorCDR_20' ) start [2025-02-17 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495587', 'tblTempVendorCDR_20' ) end [2025-02-17 11:59:19] Production.INFO: ProcessCDR(1,14495587,1,1,2) [2025-02-17 11:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 11:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 11:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495587', 'tblTempUsageDetail_20' ) start [2025-02-17 11:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495587', 'tblTempUsageDetail_20' ) end [2025-02-17 11:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 11:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 11:59:24] Production.INFO: ==25347== Releasing lock... [2025-02-17 11:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 11:59:24] Production.INFO: 44 MB #Memory Used# [2025-02-17 12:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:00:06 [end_date_ymd] => 2025-02-17 12:00:06 [RateCDR] => 1 ) [2025-02-17 12:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:00:06' and `end` < '2025-02-17 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:00:20] Production.INFO: count ==2126 [2025-02-17 12:00:21] Production.ERROR: pbx CDR StartTime 2025-02-17 09:00:06 - End Time 2025-02-17 12:00:06 [2025-02-17 12:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495593', 'tblTempUsageDetail_20' ) start [2025-02-17 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495593', 'tblTempUsageDetail_20' ) end [2025-02-17 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495593', 'tblTempVendorCDR_20' ) start [2025-02-17 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495593', 'tblTempVendorCDR_20' ) end [2025-02-17 12:00:21] Production.INFO: ProcessCDR(1,14495593,1,1,2) [2025-02-17 12:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495593', 'tblTempUsageDetail_20' ) start [2025-02-17 12:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495593', 'tblTempUsageDetail_20' ) end [2025-02-17 12:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:00:26] Production.INFO: ==25427== Releasing lock... [2025-02-17 12:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:00:26] Production.INFO: 44 MB #Memory Used# [2025-02-17 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:01:05 [end_date_ymd] => 2025-02-17 12:01:05 [RateCDR] => 1 ) [2025-02-17 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:01:05' and `end` < '2025-02-17 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:01:18] Production.INFO: count ==2186 [2025-02-17 12:01:19] Production.ERROR: pbx CDR StartTime 2025-02-17 09:01:05 - End Time 2025-02-17 12:01:05 [2025-02-17 12:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495598', 'tblTempUsageDetail_20' ) start [2025-02-17 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495598', 'tblTempUsageDetail_20' ) end [2025-02-17 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495598', 'tblTempVendorCDR_20' ) start [2025-02-17 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495598', 'tblTempVendorCDR_20' ) end [2025-02-17 12:01:19] Production.INFO: ProcessCDR(1,14495598,1,1,2) [2025-02-17 12:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495598', 'tblTempUsageDetail_20' ) start [2025-02-17 12:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495598', 'tblTempUsageDetail_20' ) end [2025-02-17 12:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:01:24] Production.INFO: ==25510== Releasing lock... [2025-02-17 12:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:01:24] Production.INFO: 44.5 MB #Memory Used# [2025-02-17 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:02:06 [end_date_ymd] => 2025-02-17 12:02:06 [RateCDR] => 1 ) [2025-02-17 12:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:02:06' and `end` < '2025-02-17 12:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:02:19] Production.INFO: count ==2176 [2025-02-17 12:02:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:02:06 - End Time 2025-02-17 12:02:06 [2025-02-17 12:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495603', 'tblTempUsageDetail_20' ) start [2025-02-17 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495603', 'tblTempUsageDetail_20' ) end [2025-02-17 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495603', 'tblTempVendorCDR_20' ) start [2025-02-17 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495603', 'tblTempVendorCDR_20' ) end [2025-02-17 12:02:20] Production.INFO: ProcessCDR(1,14495603,1,1,2) [2025-02-17 12:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495603', 'tblTempUsageDetail_20' ) start [2025-02-17 12:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495603', 'tblTempUsageDetail_20' ) end [2025-02-17 12:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:02:25] Production.INFO: ==25585== Releasing lock... [2025-02-17 12:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:02:25] Production.INFO: 44.5 MB #Memory Used# [2025-02-17 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:03:05 [end_date_ymd] => 2025-02-17 12:03:05 [RateCDR] => 1 ) [2025-02-17 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:03:05' and `end` < '2025-02-17 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:03:18] Production.INFO: count ==2179 [2025-02-17 12:03:19] Production.ERROR: pbx CDR StartTime 2025-02-17 09:03:05 - End Time 2025-02-17 12:03:05 [2025-02-17 12:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495608', 'tblTempUsageDetail_20' ) start [2025-02-17 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495608', 'tblTempUsageDetail_20' ) end [2025-02-17 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495608', 'tblTempVendorCDR_20' ) start [2025-02-17 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495608', 'tblTempVendorCDR_20' ) end [2025-02-17 12:03:19] Production.INFO: ProcessCDR(1,14495608,1,1,2) [2025-02-17 12:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495608', 'tblTempUsageDetail_20' ) start [2025-02-17 12:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495608', 'tblTempUsageDetail_20' ) end [2025-02-17 12:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:03:24] Production.INFO: ==25656== Releasing lock... [2025-02-17 12:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:03:24] Production.INFO: 44.5 MB #Memory Used# [2025-02-17 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:04:05 [end_date_ymd] => 2025-02-17 12:04:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 09:04:05' and `end` < '2025-02-17 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-02-17 12:04:19] Production.INFO: count ==2169 [2025-02-17 12:04:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:04:05 - End Time 2025-02-17 12:04:05 [2025-02-17 12:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495613', 'tblTempUsageDetail_20' ) start [2025-02-17 12:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495613', 'tblTempUsageDetail_20' ) end [2025-02-17 12:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495613', 'tblTempVendorCDR_20' ) start [2025-02-17 12:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495613', 'tblTempVendorCDR_20' ) end [2025-02-17 12:04:20] Production.INFO: ProcessCDR(1,14495613,1,1,2) [2025-02-17 12:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495613', 'tblTempUsageDetail_20' ) start [2025-02-17 12:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495613', 'tblTempUsageDetail_20' ) end [2025-02-17 12:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:04:25] Production.INFO: ==25767== Releasing lock... [2025-02-17 12:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:04:25] Production.INFO: 44.25 MB #Memory Used# [2025-02-17 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:05:05 [end_date_ymd] => 2025-02-17 12:05:05 [RateCDR] => 1 ) [2025-02-17 12:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:05:05' and `end` < '2025-02-17 12:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:05:19] Production.INFO: count ==2152 [2025-02-17 12:05:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:05:05 - End Time 2025-02-17 12:05:05 [2025-02-17 12:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495618', 'tblTempUsageDetail_20' ) start [2025-02-17 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495618', 'tblTempUsageDetail_20' ) end [2025-02-17 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495618', 'tblTempVendorCDR_20' ) start [2025-02-17 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495618', 'tblTempVendorCDR_20' ) end [2025-02-17 12:05:20] Production.INFO: ProcessCDR(1,14495618,1,1,2) [2025-02-17 12:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495618', 'tblTempUsageDetail_20' ) start [2025-02-17 12:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495618', 'tblTempUsageDetail_20' ) end [2025-02-17 12:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:05:25] Production.INFO: ==25839== Releasing lock... [2025-02-17 12:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:05:25] Production.INFO: 44.25 MB #Memory Used# [2025-02-17 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:06:05 [end_date_ymd] => 2025-02-17 12:06:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 09:06:05' and `end` < '2025-02-17 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-02-17 12:06:18] Production.INFO: count ==2139 [2025-02-17 12:06:19] Production.ERROR: pbx CDR StartTime 2025-02-17 09:06:05 - End Time 2025-02-17 12:06:05 [2025-02-17 12:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495623', 'tblTempUsageDetail_20' ) start [2025-02-17 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495623', 'tblTempUsageDetail_20' ) end [2025-02-17 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495623', 'tblTempVendorCDR_20' ) start [2025-02-17 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495623', 'tblTempVendorCDR_20' ) end [2025-02-17 12:06:19] Production.INFO: ProcessCDR(1,14495623,1,1,2) [2025-02-17 12:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495623', 'tblTempUsageDetail_20' ) start [2025-02-17 12:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495623', 'tblTempUsageDetail_20' ) end [2025-02-17 12:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:06:25] Production.INFO: ==25909== Releasing lock... [2025-02-17 12:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:06:25] Production.INFO: 44 MB #Memory Used# [2025-02-17 12:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:07:06 [end_date_ymd] => 2025-02-17 12:07:06 [RateCDR] => 1 ) [2025-02-17 12:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:07:06' and `end` < '2025-02-17 12:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:07:19] Production.INFO: count ==2115 [2025-02-17 12:07:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:07:06 - End Time 2025-02-17 12:07:06 [2025-02-17 12:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495628', 'tblTempUsageDetail_20' ) start [2025-02-17 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495628', 'tblTempUsageDetail_20' ) end [2025-02-17 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495628', 'tblTempVendorCDR_20' ) start [2025-02-17 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495628', 'tblTempVendorCDR_20' ) end [2025-02-17 12:07:20] Production.INFO: ProcessCDR(1,14495628,1,1,2) [2025-02-17 12:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495628', 'tblTempUsageDetail_20' ) start [2025-02-17 12:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495628', 'tblTempUsageDetail_20' ) end [2025-02-17 12:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:07:25] Production.INFO: ==25981== Releasing lock... [2025-02-17 12:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:07:25] Production.INFO: 44 MB #Memory Used# [2025-02-17 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:08:05 [end_date_ymd] => 2025-02-17 12:08:05 [RateCDR] => 1 ) [2025-02-17 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:08:05' and `end` < '2025-02-17 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:08:20] Production.INFO: count ==2120 [2025-02-17 12:08:21] Production.ERROR: pbx CDR StartTime 2025-02-17 09:08:05 - End Time 2025-02-17 12:08:05 [2025-02-17 12:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495633', 'tblTempUsageDetail_20' ) start [2025-02-17 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495633', 'tblTempUsageDetail_20' ) end [2025-02-17 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495633', 'tblTempVendorCDR_20' ) start [2025-02-17 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495633', 'tblTempVendorCDR_20' ) end [2025-02-17 12:08:21] Production.INFO: ProcessCDR(1,14495633,1,1,2) [2025-02-17 12:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495633', 'tblTempUsageDetail_20' ) start [2025-02-17 12:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495633', 'tblTempUsageDetail_20' ) end [2025-02-17 12:08:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:08:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:08:25] Production.INFO: ==26052== Releasing lock... [2025-02-17 12:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:08:25] Production.INFO: 44 MB #Memory Used# [2025-02-17 12:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:09:06 [end_date_ymd] => 2025-02-17 12:09:06 [RateCDR] => 1 ) [2025-02-17 12:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:09:06' and `end` < '2025-02-17 12:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:09:21] Production.INFO: count ==2117 [2025-02-17 12:09:21] Production.ERROR: pbx CDR StartTime 2025-02-17 09:09:06 - End Time 2025-02-17 12:09:06 [2025-02-17 12:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495638', 'tblTempUsageDetail_20' ) start [2025-02-17 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495638', 'tblTempUsageDetail_20' ) end [2025-02-17 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495638', 'tblTempVendorCDR_20' ) start [2025-02-17 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495638', 'tblTempVendorCDR_20' ) end [2025-02-17 12:09:21] Production.INFO: ProcessCDR(1,14495638,1,1,2) [2025-02-17 12:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495638', 'tblTempUsageDetail_20' ) start [2025-02-17 12:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495638', 'tblTempUsageDetail_20' ) end [2025-02-17 12:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:09:25] Production.INFO: ==26122== Releasing lock... [2025-02-17 12:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:09:25] Production.INFO: 43.75 MB #Memory Used# [2025-02-17 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:10:06 [end_date_ymd] => 2025-02-17 12:10:06 [RateCDR] => 1 ) [2025-02-17 12:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:10:06' and `end` < '2025-02-17 12:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:10:20] Production.INFO: count ==2113 [2025-02-17 12:10:21] Production.ERROR: pbx CDR StartTime 2025-02-17 09:10:06 - End Time 2025-02-17 12:10:06 [2025-02-17 12:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495644', 'tblTempUsageDetail_20' ) start [2025-02-17 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495644', 'tblTempUsageDetail_20' ) end [2025-02-17 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495644', 'tblTempVendorCDR_20' ) start [2025-02-17 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495644', 'tblTempVendorCDR_20' ) end [2025-02-17 12:10:21] Production.INFO: ProcessCDR(1,14495644,1,1,2) [2025-02-17 12:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495644', 'tblTempUsageDetail_20' ) start [2025-02-17 12:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495644', 'tblTempUsageDetail_20' ) end [2025-02-17 12:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:10:26] Production.INFO: ==26195== Releasing lock... [2025-02-17 12:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:10:26] Production.INFO: 44.25 MB #Memory Used# [2025-02-17 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:11:05 [end_date_ymd] => 2025-02-17 12:11:05 [RateCDR] => 1 ) [2025-02-17 12:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:11:05' and `end` < '2025-02-17 12:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:11:19] Production.INFO: count ==2127 [2025-02-17 12:11:19] Production.ERROR: pbx CDR StartTime 2025-02-17 09:11:05 - End Time 2025-02-17 12:11:05 [2025-02-17 12:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495649', 'tblTempUsageDetail_20' ) start [2025-02-17 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495649', 'tblTempUsageDetail_20' ) end [2025-02-17 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495649', 'tblTempVendorCDR_20' ) start [2025-02-17 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495649', 'tblTempVendorCDR_20' ) end [2025-02-17 12:11:19] Production.INFO: ProcessCDR(1,14495649,1,1,2) [2025-02-17 12:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495649', 'tblTempUsageDetail_20' ) start [2025-02-17 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495649', 'tblTempUsageDetail_20' ) end [2025-02-17 12:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:11:25] Production.INFO: ==26268== Releasing lock... [2025-02-17 12:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:11:25] Production.INFO: 44 MB #Memory Used# [2025-02-17 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:12:05 [end_date_ymd] => 2025-02-17 12:12:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 09:12:05' and `end` < '2025-02-17 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-02-17 12:12:18] Production.INFO: count ==2127 [2025-02-17 12:12:19] Production.ERROR: pbx CDR StartTime 2025-02-17 09:12:05 - End Time 2025-02-17 12:12:05 [2025-02-17 12:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495654', 'tblTempUsageDetail_20' ) start [2025-02-17 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495654', 'tblTempUsageDetail_20' ) end [2025-02-17 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495654', 'tblTempVendorCDR_20' ) start [2025-02-17 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495654', 'tblTempVendorCDR_20' ) end [2025-02-17 12:12:19] Production.INFO: ProcessCDR(1,14495654,1,1,2) [2025-02-17 12:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495654', 'tblTempUsageDetail_20' ) start [2025-02-17 12:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495654', 'tblTempUsageDetail_20' ) end [2025-02-17 12:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:12:23] Production.INFO: ==26339== Releasing lock... [2025-02-17 12:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:12:23] Production.INFO: 44 MB #Memory Used# [2025-02-17 12:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:13:06 [end_date_ymd] => 2025-02-17 12:13:06 [RateCDR] => 1 ) [2025-02-17 12:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:13:06' and `end` < '2025-02-17 12:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:13:20] Production.INFO: count ==2122 [2025-02-17 12:13:21] Production.ERROR: pbx CDR StartTime 2025-02-17 09:13:06 - End Time 2025-02-17 12:13:06 [2025-02-17 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495659', 'tblTempUsageDetail_20' ) start [2025-02-17 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495659', 'tblTempUsageDetail_20' ) end [2025-02-17 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495659', 'tblTempVendorCDR_20' ) start [2025-02-17 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495659', 'tblTempVendorCDR_20' ) end [2025-02-17 12:13:21] Production.INFO: ProcessCDR(1,14495659,1,1,2) [2025-02-17 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495659', 'tblTempUsageDetail_20' ) start [2025-02-17 12:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495659', 'tblTempUsageDetail_20' ) end [2025-02-17 12:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:13:25] Production.INFO: ==26412== Releasing lock... [2025-02-17 12:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:13:25] Production.INFO: 44 MB #Memory Used# [2025-02-17 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:14:05 [end_date_ymd] => 2025-02-17 12:14:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 09:14:05' and `end` < '2025-02-17 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-02-17 12:14:19] Production.INFO: count ==2118 [2025-02-17 12:14:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:14:05 - End Time 2025-02-17 12:14:05 [2025-02-17 12:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495664', 'tblTempUsageDetail_20' ) start [2025-02-17 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495664', 'tblTempUsageDetail_20' ) end [2025-02-17 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495664', 'tblTempVendorCDR_20' ) start [2025-02-17 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495664', 'tblTempVendorCDR_20' ) end [2025-02-17 12:14:20] Production.INFO: ProcessCDR(1,14495664,1,1,2) [2025-02-17 12:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495664', 'tblTempUsageDetail_20' ) start [2025-02-17 12:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495664', 'tblTempUsageDetail_20' ) end [2025-02-17 12:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:14:25] Production.INFO: ==26483== Releasing lock... [2025-02-17 12:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:14:25] Production.INFO: 44 MB #Memory Used# [2025-02-17 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:15:05 [end_date_ymd] => 2025-02-17 12:15:05 [RateCDR] => 1 ) [2025-02-17 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:15:05' and `end` < '2025-02-17 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:15:19] Production.INFO: count ==2084 [2025-02-17 12:15:19] Production.ERROR: pbx CDR StartTime 2025-02-17 09:15:05 - End Time 2025-02-17 12:15:05 [2025-02-17 12:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495669', 'tblTempUsageDetail_20' ) start [2025-02-17 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495669', 'tblTempUsageDetail_20' ) end [2025-02-17 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495669', 'tblTempVendorCDR_20' ) start [2025-02-17 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495669', 'tblTempVendorCDR_20' ) end [2025-02-17 12:15:19] Production.INFO: ProcessCDR(1,14495669,1,1,2) [2025-02-17 12:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495669', 'tblTempUsageDetail_20' ) start [2025-02-17 12:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495669', 'tblTempUsageDetail_20' ) end [2025-02-17 12:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:15:25] Production.INFO: ==26555== Releasing lock... [2025-02-17 12:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:15:25] Production.INFO: 43.75 MB #Memory Used# [2025-02-17 12:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:16:06 [end_date_ymd] => 2025-02-17 12:16:06 [RateCDR] => 1 ) [2025-02-17 12:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:16:06' and `end` < '2025-02-17 12:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:16:19] Production.INFO: count ==2067 [2025-02-17 12:16:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:16:06 - End Time 2025-02-17 12:16:06 [2025-02-17 12:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495674', 'tblTempUsageDetail_20' ) start [2025-02-17 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495674', 'tblTempUsageDetail_20' ) end [2025-02-17 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495674', 'tblTempVendorCDR_20' ) start [2025-02-17 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495674', 'tblTempVendorCDR_20' ) end [2025-02-17 12:16:20] Production.INFO: ProcessCDR(1,14495674,1,1,2) [2025-02-17 12:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495674', 'tblTempUsageDetail_20' ) start [2025-02-17 12:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495674', 'tblTempUsageDetail_20' ) end [2025-02-17 12:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:16:24] Production.INFO: ==26627== Releasing lock... [2025-02-17 12:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:16:24] Production.INFO: 43.5 MB #Memory Used# [2025-02-17 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:17:05 [end_date_ymd] => 2025-02-17 12:17:05 [RateCDR] => 1 ) [2025-02-17 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:17:05' and `end` < '2025-02-17 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:17:19] Production.INFO: count ==2072 [2025-02-17 12:17:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:17:05 - End Time 2025-02-17 12:17:05 [2025-02-17 12:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495679', 'tblTempUsageDetail_20' ) start [2025-02-17 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495679', 'tblTempUsageDetail_20' ) end [2025-02-17 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495679', 'tblTempVendorCDR_20' ) start [2025-02-17 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495679', 'tblTempVendorCDR_20' ) end [2025-02-17 12:17:20] Production.INFO: ProcessCDR(1,14495679,1,1,2) [2025-02-17 12:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495679', 'tblTempUsageDetail_20' ) start [2025-02-17 12:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495679', 'tblTempUsageDetail_20' ) end [2025-02-17 12:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:17:24] Production.INFO: ==26697== Releasing lock... [2025-02-17 12:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:17:24] Production.INFO: 43.5 MB #Memory Used# [2025-02-17 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:18:05 [end_date_ymd] => 2025-02-17 12:18:05 [RateCDR] => 1 ) [2025-02-17 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:18:05' and `end` < '2025-02-17 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:18:18] Production.INFO: count ==2078 [2025-02-17 12:18:19] Production.ERROR: pbx CDR StartTime 2025-02-17 09:18:05 - End Time 2025-02-17 12:18:05 [2025-02-17 12:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495684', 'tblTempUsageDetail_20' ) start [2025-02-17 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495684', 'tblTempUsageDetail_20' ) end [2025-02-17 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495684', 'tblTempVendorCDR_20' ) start [2025-02-17 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495684', 'tblTempVendorCDR_20' ) end [2025-02-17 12:18:19] Production.INFO: ProcessCDR(1,14495684,1,1,2) [2025-02-17 12:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495684', 'tblTempUsageDetail_20' ) start [2025-02-17 12:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495684', 'tblTempUsageDetail_20' ) end [2025-02-17 12:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:18:24] Production.INFO: ==26778== Releasing lock... [2025-02-17 12:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:18:24] Production.INFO: 43.75 MB #Memory Used# [2025-02-17 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:19:05 [end_date_ymd] => 2025-02-17 12:19:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 09:19:05' and `end` < '2025-02-17 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-02-17 12:19:19] Production.INFO: count ==2081 [2025-02-17 12:19:19] Production.ERROR: pbx CDR StartTime 2025-02-17 09:19:05 - End Time 2025-02-17 12:19:05 [2025-02-17 12:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495689', 'tblTempUsageDetail_20' ) start [2025-02-17 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495689', 'tblTempUsageDetail_20' ) end [2025-02-17 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495689', 'tblTempVendorCDR_20' ) start [2025-02-17 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495689', 'tblTempVendorCDR_20' ) end [2025-02-17 12:19:20] Production.INFO: ProcessCDR(1,14495689,1,1,2) [2025-02-17 12:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495689', 'tblTempUsageDetail_20' ) start [2025-02-17 12:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495689', 'tblTempUsageDetail_20' ) end [2025-02-17 12:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:19:23] Production.INFO: ==26852== Releasing lock... [2025-02-17 12:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:19:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-17 12:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:20:07 [end_date_ymd] => 2025-02-17 12:20:07 [RateCDR] => 1 ) [2025-02-17 12:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:20:07' and `end` < '2025-02-17 12:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:20:20] Production.INFO: count ==2000 [2025-02-17 12:20:21] Production.ERROR: pbx CDR StartTime 2025-02-17 09:20:07 - End Time 2025-02-17 12:20:07 [2025-02-17 12:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495695', 'tblTempUsageDetail_20' ) start [2025-02-17 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495695', 'tblTempUsageDetail_20' ) end [2025-02-17 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495695', 'tblTempVendorCDR_20' ) start [2025-02-17 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495695', 'tblTempVendorCDR_20' ) end [2025-02-17 12:20:21] Production.INFO: ProcessCDR(1,14495695,1,1,2) [2025-02-17 12:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495695', 'tblTempUsageDetail_20' ) start [2025-02-17 12:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495695', 'tblTempUsageDetail_20' ) end [2025-02-17 12:20:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:20:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:20:26] Production.INFO: ==26969== Releasing lock... [2025-02-17 12:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:20:26] Production.INFO: 43 MB #Memory Used# [2025-02-17 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:21:05 [end_date_ymd] => 2025-02-17 12:21:05 [RateCDR] => 1 ) [2025-02-17 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:21:05' and `end` < '2025-02-17 12:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:21:19] Production.INFO: count ==2040 [2025-02-17 12:21:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:21:05 - End Time 2025-02-17 12:21:05 [2025-02-17 12:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495700', 'tblTempUsageDetail_20' ) start [2025-02-17 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495700', 'tblTempUsageDetail_20' ) end [2025-02-17 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495700', 'tblTempVendorCDR_20' ) start [2025-02-17 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495700', 'tblTempVendorCDR_20' ) end [2025-02-17 12:21:20] Production.INFO: ProcessCDR(1,14495700,1,1,2) [2025-02-17 12:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495700', 'tblTempUsageDetail_20' ) start [2025-02-17 12:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495700', 'tblTempUsageDetail_20' ) end [2025-02-17 12:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:21:23] Production.INFO: ==27040== Releasing lock... [2025-02-17 12:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:21:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-17 12:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:22:06 [end_date_ymd] => 2025-02-17 12:22:06 [RateCDR] => 1 ) [2025-02-17 12:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:22:06' and `end` < '2025-02-17 12:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:22:20] Production.INFO: count ==2049 [2025-02-17 12:22:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:22:06 - End Time 2025-02-17 12:22:06 [2025-02-17 12:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495705', 'tblTempUsageDetail_20' ) start [2025-02-17 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495705', 'tblTempUsageDetail_20' ) end [2025-02-17 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495705', 'tblTempVendorCDR_20' ) start [2025-02-17 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495705', 'tblTempVendorCDR_20' ) end [2025-02-17 12:22:21] Production.INFO: ProcessCDR(1,14495705,1,1,2) [2025-02-17 12:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495705', 'tblTempUsageDetail_20' ) start [2025-02-17 12:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495705', 'tblTempUsageDetail_20' ) end [2025-02-17 12:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:22:24] Production.INFO: ==27112== Releasing lock... [2025-02-17 12:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:22:24] Production.INFO: 43.5 MB #Memory Used# [2025-02-17 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:23:05 [end_date_ymd] => 2025-02-17 12:23:05 [RateCDR] => 1 ) [2025-02-17 12:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:23:05' and `end` < '2025-02-17 12:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:23:18] Production.INFO: count ==2054 [2025-02-17 12:23:19] Production.ERROR: pbx CDR StartTime 2025-02-17 09:23:05 - End Time 2025-02-17 12:23:05 [2025-02-17 12:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495710', 'tblTempUsageDetail_20' ) start [2025-02-17 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495710', 'tblTempUsageDetail_20' ) end [2025-02-17 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495710', 'tblTempVendorCDR_20' ) start [2025-02-17 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495710', 'tblTempVendorCDR_20' ) end [2025-02-17 12:23:19] Production.INFO: ProcessCDR(1,14495710,1,1,2) [2025-02-17 12:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495710', 'tblTempUsageDetail_20' ) start [2025-02-17 12:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495710', 'tblTempUsageDetail_20' ) end [2025-02-17 12:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:23:23] Production.INFO: ==27185== Releasing lock... [2025-02-17 12:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:23:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-17 12:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:24:06 [end_date_ymd] => 2025-02-17 12:24:06 [RateCDR] => 1 ) [2025-02-17 12:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:24:06' and `end` < '2025-02-17 12:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:24:19] Production.INFO: count ==2046 [2025-02-17 12:24:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:24:06 - End Time 2025-02-17 12:24:06 [2025-02-17 12:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495715', 'tblTempUsageDetail_20' ) start [2025-02-17 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495715', 'tblTempUsageDetail_20' ) end [2025-02-17 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495715', 'tblTempVendorCDR_20' ) start [2025-02-17 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495715', 'tblTempVendorCDR_20' ) end [2025-02-17 12:24:20] Production.INFO: ProcessCDR(1,14495715,1,1,2) [2025-02-17 12:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495715', 'tblTempUsageDetail_20' ) start [2025-02-17 12:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495715', 'tblTempUsageDetail_20' ) end [2025-02-17 12:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:24:25] Production.INFO: ==27256== Releasing lock... [2025-02-17 12:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:24:25] Production.INFO: 43.5 MB #Memory Used# [2025-02-17 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:25:05 [end_date_ymd] => 2025-02-17 12:25:05 [RateCDR] => 1 ) [2025-02-17 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:25:05' and `end` < '2025-02-17 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:25:19] Production.INFO: count ==2052 [2025-02-17 12:25:19] Production.ERROR: pbx CDR StartTime 2025-02-17 09:25:05 - End Time 2025-02-17 12:25:05 [2025-02-17 12:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495720', 'tblTempUsageDetail_20' ) start [2025-02-17 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495720', 'tblTempUsageDetail_20' ) end [2025-02-17 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495720', 'tblTempVendorCDR_20' ) start [2025-02-17 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495720', 'tblTempVendorCDR_20' ) end [2025-02-17 12:25:20] Production.INFO: ProcessCDR(1,14495720,1,1,2) [2025-02-17 12:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495720', 'tblTempUsageDetail_20' ) start [2025-02-17 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495720', 'tblTempUsageDetail_20' ) end [2025-02-17 12:25:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:25:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:25:25] Production.INFO: ==27326== Releasing lock... [2025-02-17 12:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:25:25] Production.INFO: 43.5 MB #Memory Used# [2025-02-17 12:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:26:06 [end_date_ymd] => 2025-02-17 12:26:06 [RateCDR] => 1 ) [2025-02-17 12:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:26:06' and `end` < '2025-02-17 12:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:26:20] Production.INFO: count ==2086 [2025-02-17 12:26:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:26:06 - End Time 2025-02-17 12:26:06 [2025-02-17 12:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495725', 'tblTempUsageDetail_20' ) start [2025-02-17 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495725', 'tblTempUsageDetail_20' ) end [2025-02-17 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495725', 'tblTempVendorCDR_20' ) start [2025-02-17 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495725', 'tblTempVendorCDR_20' ) end [2025-02-17 12:26:20] Production.INFO: ProcessCDR(1,14495725,1,1,2) [2025-02-17 12:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495725', 'tblTempUsageDetail_20' ) start [2025-02-17 12:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495725', 'tblTempUsageDetail_20' ) end [2025-02-17 12:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:26:25] Production.INFO: ==27397== Releasing lock... [2025-02-17 12:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:26:25] Production.INFO: 43.75 MB #Memory Used# [2025-02-17 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:27:05 [end_date_ymd] => 2025-02-17 12:27:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 09:27:05' and `end` < '2025-02-17 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-02-17 12:27:19] Production.INFO: count ==2089 [2025-02-17 12:27:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:27:05 - End Time 2025-02-17 12:27:05 [2025-02-17 12:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495730', 'tblTempUsageDetail_20' ) start [2025-02-17 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495730', 'tblTempUsageDetail_20' ) end [2025-02-17 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495730', 'tblTempVendorCDR_20' ) start [2025-02-17 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495730', 'tblTempVendorCDR_20' ) end [2025-02-17 12:27:20] Production.INFO: ProcessCDR(1,14495730,1,1,2) [2025-02-17 12:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495730', 'tblTempUsageDetail_20' ) start [2025-02-17 12:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495730', 'tblTempUsageDetail_20' ) end [2025-02-17 12:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:27:24] Production.INFO: ==27469== Releasing lock... [2025-02-17 12:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:27:24] Production.INFO: 43.75 MB #Memory Used# [2025-02-17 12:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:28:06 [end_date_ymd] => 2025-02-17 12:28:06 [RateCDR] => 1 ) [2025-02-17 12:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:28:06' and `end` < '2025-02-17 12:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:28:19] Production.INFO: count ==2079 [2025-02-17 12:28:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:28:06 - End Time 2025-02-17 12:28:06 [2025-02-17 12:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495735', 'tblTempUsageDetail_20' ) start [2025-02-17 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495735', 'tblTempUsageDetail_20' ) end [2025-02-17 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495735', 'tblTempVendorCDR_20' ) start [2025-02-17 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495735', 'tblTempVendorCDR_20' ) end [2025-02-17 12:28:20] Production.INFO: ProcessCDR(1,14495735,1,1,2) [2025-02-17 12:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495735', 'tblTempUsageDetail_20' ) start [2025-02-17 12:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495735', 'tblTempUsageDetail_20' ) end [2025-02-17 12:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:28:23] Production.INFO: ==27540== Releasing lock... [2025-02-17 12:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:28:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-17 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:29:05 [end_date_ymd] => 2025-02-17 12:29:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 09:29:05' and `end` < '2025-02-17 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-02-17 12:29:18] Production.INFO: count ==2079 [2025-02-17 12:29:19] Production.ERROR: pbx CDR StartTime 2025-02-17 09:29:05 - End Time 2025-02-17 12:29:05 [2025-02-17 12:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495740', 'tblTempUsageDetail_20' ) start [2025-02-17 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495740', 'tblTempUsageDetail_20' ) end [2025-02-17 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495740', 'tblTempVendorCDR_20' ) start [2025-02-17 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495740', 'tblTempVendorCDR_20' ) end [2025-02-17 12:29:19] Production.INFO: ProcessCDR(1,14495740,1,1,2) [2025-02-17 12:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495740', 'tblTempUsageDetail_20' ) start [2025-02-17 12:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495740', 'tblTempUsageDetail_20' ) end [2025-02-17 12:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:29:23] Production.INFO: ==27610== Releasing lock... [2025-02-17 12:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:29:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-17 12:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:30:07 [end_date_ymd] => 2025-02-17 12:30:07 [RateCDR] => 1 ) [2025-02-17 12:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:30:07' and `end` < '2025-02-17 12:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:30:20] Production.INFO: count ==2073 [2025-02-17 12:30:21] Production.ERROR: pbx CDR StartTime 2025-02-17 09:30:07 - End Time 2025-02-17 12:30:07 [2025-02-17 12:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495745', 'tblTempUsageDetail_20' ) start [2025-02-17 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495745', 'tblTempUsageDetail_20' ) end [2025-02-17 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495745', 'tblTempVendorCDR_20' ) start [2025-02-17 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495745', 'tblTempVendorCDR_20' ) end [2025-02-17 12:30:21] Production.INFO: ProcessCDR(1,14495745,1,1,2) [2025-02-17 12:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495745', 'tblTempUsageDetail_20' ) start [2025-02-17 12:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495745', 'tblTempUsageDetail_20' ) end [2025-02-17 12:30:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:30:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:30:26] Production.INFO: ==27685== Releasing lock... [2025-02-17 12:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:30:26] Production.INFO: 43.75 MB #Memory Used# [2025-02-17 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:31:05 [end_date_ymd] => 2025-02-17 12:31:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 09:31:05' and `end` < '2025-02-17 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-02-17 12:31:19] Production.INFO: count ==2099 [2025-02-17 12:31:19] Production.ERROR: pbx CDR StartTime 2025-02-17 09:31:05 - End Time 2025-02-17 12:31:05 [2025-02-17 12:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495751', 'tblTempUsageDetail_20' ) start [2025-02-17 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495751', 'tblTempUsageDetail_20' ) end [2025-02-17 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495751', 'tblTempVendorCDR_20' ) start [2025-02-17 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495751', 'tblTempVendorCDR_20' ) end [2025-02-17 12:31:19] Production.INFO: ProcessCDR(1,14495751,1,1,2) [2025-02-17 12:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495751', 'tblTempUsageDetail_20' ) start [2025-02-17 12:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495751', 'tblTempUsageDetail_20' ) end [2025-02-17 12:31:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:31:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:31:25] Production.INFO: ==27756== Releasing lock... [2025-02-17 12:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:31:25] Production.INFO: 43.75 MB #Memory Used# [2025-02-17 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:32:06 [end_date_ymd] => 2025-02-17 12:32:06 [RateCDR] => 1 ) [2025-02-17 12:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:32:06' and `end` < '2025-02-17 12:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:32:19] Production.INFO: count ==2094 [2025-02-17 12:32:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:32:06 - End Time 2025-02-17 12:32:06 [2025-02-17 12:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495756', 'tblTempUsageDetail_20' ) start [2025-02-17 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495756', 'tblTempUsageDetail_20' ) end [2025-02-17 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495756', 'tblTempVendorCDR_20' ) start [2025-02-17 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495756', 'tblTempVendorCDR_20' ) end [2025-02-17 12:32:20] Production.INFO: ProcessCDR(1,14495756,1,1,2) [2025-02-17 12:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495756', 'tblTempUsageDetail_20' ) start [2025-02-17 12:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495756', 'tblTempUsageDetail_20' ) end [2025-02-17 12:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:32:25] Production.INFO: ==27827== Releasing lock... [2025-02-17 12:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:32:25] Production.INFO: 43.75 MB #Memory Used# [2025-02-17 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:33:05 [end_date_ymd] => 2025-02-17 12:33:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 09:33:05' and `end` < '2025-02-17 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-02-17 12:33:19] Production.INFO: count ==2112 [2025-02-17 12:33:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:33:05 - End Time 2025-02-17 12:33:05 [2025-02-17 12:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495761', 'tblTempUsageDetail_20' ) start [2025-02-17 12:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495761', 'tblTempUsageDetail_20' ) end [2025-02-17 12:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495761', 'tblTempVendorCDR_20' ) start [2025-02-17 12:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495761', 'tblTempVendorCDR_20' ) end [2025-02-17 12:33:20] Production.INFO: ProcessCDR(1,14495761,1,1,2) [2025-02-17 12:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495761', 'tblTempUsageDetail_20' ) start [2025-02-17 12:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495761', 'tblTempUsageDetail_20' ) end [2025-02-17 12:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:33:25] Production.INFO: ==27897== Releasing lock... [2025-02-17 12:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:33:25] Production.INFO: 44 MB #Memory Used# [2025-02-17 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:34:06 [end_date_ymd] => 2025-02-17 12:34:06 [RateCDR] => 1 ) [2025-02-17 12:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:34:06' and `end` < '2025-02-17 12:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:34:20] Production.INFO: count ==2122 [2025-02-17 12:34:21] Production.ERROR: pbx CDR StartTime 2025-02-17 09:34:06 - End Time 2025-02-17 12:34:06 [2025-02-17 12:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495766', 'tblTempUsageDetail_20' ) start [2025-02-17 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495766', 'tblTempUsageDetail_20' ) end [2025-02-17 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495766', 'tblTempVendorCDR_20' ) start [2025-02-17 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495766', 'tblTempVendorCDR_20' ) end [2025-02-17 12:34:21] Production.INFO: ProcessCDR(1,14495766,1,1,2) [2025-02-17 12:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495766', 'tblTempUsageDetail_20' ) start [2025-02-17 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495766', 'tblTempUsageDetail_20' ) end [2025-02-17 12:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:34:26] Production.INFO: ==27969== Releasing lock... [2025-02-17 12:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:34:26] Production.INFO: 44 MB #Memory Used# [2025-02-17 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:35:05 [end_date_ymd] => 2025-02-17 12:35:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 09:35:05' and `end` < '2025-02-17 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-02-17 12:35:18] Production.INFO: count ==2131 [2025-02-17 12:35:19] Production.ERROR: pbx CDR StartTime 2025-02-17 09:35:05 - End Time 2025-02-17 12:35:05 [2025-02-17 12:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495771', 'tblTempUsageDetail_20' ) start [2025-02-17 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495771', 'tblTempUsageDetail_20' ) end [2025-02-17 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495771', 'tblTempVendorCDR_20' ) start [2025-02-17 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495771', 'tblTempVendorCDR_20' ) end [2025-02-17 12:35:19] Production.INFO: ProcessCDR(1,14495771,1,1,2) [2025-02-17 12:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495771', 'tblTempUsageDetail_20' ) start [2025-02-17 12:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495771', 'tblTempUsageDetail_20' ) end [2025-02-17 12:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:35:24] Production.INFO: ==28079== Releasing lock... [2025-02-17 12:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:35:24] Production.INFO: 44.25 MB #Memory Used# [2025-02-17 12:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:36:06 [end_date_ymd] => 2025-02-17 12:36:06 [RateCDR] => 1 ) [2025-02-17 12:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:36:06' and `end` < '2025-02-17 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-02-17 12:36:19] Production.INFO: count ==2137 [2025-02-17 12:36:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:36:06 - End Time 2025-02-17 12:36:06 [2025-02-17 12:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495776', 'tblTempUsageDetail_20' ) start [2025-02-17 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495776', 'tblTempUsageDetail_20' ) end [2025-02-17 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495776', 'tblTempVendorCDR_20' ) start [2025-02-17 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495776', 'tblTempVendorCDR_20' ) end [2025-02-17 12:36:20] Production.INFO: ProcessCDR(1,14495776,1,1,2) [2025-02-17 12:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495776', 'tblTempUsageDetail_20' ) start [2025-02-17 12:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495776', 'tblTempUsageDetail_20' ) end [2025-02-17 12:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:36:24] Production.INFO: ==28151== Releasing lock... [2025-02-17 12:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:36:24] Production.INFO: 44 MB #Memory Used# [2025-02-17 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:37:05 [end_date_ymd] => 2025-02-17 12:37:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 09:37:05' and `end` < '2025-02-17 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-02-17 12:37:19] Production.INFO: count ==2142 [2025-02-17 12:37:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:37:05 - End Time 2025-02-17 12:37:05 [2025-02-17 12:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495781', 'tblTempUsageDetail_20' ) start [2025-02-17 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495781', 'tblTempUsageDetail_20' ) end [2025-02-17 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495781', 'tblTempVendorCDR_20' ) start [2025-02-17 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495781', 'tblTempVendorCDR_20' ) end [2025-02-17 12:37:20] Production.INFO: ProcessCDR(1,14495781,1,1,2) [2025-02-17 12:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495781', 'tblTempUsageDetail_20' ) start [2025-02-17 12:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495781', 'tblTempUsageDetail_20' ) end [2025-02-17 12:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:37:24] Production.INFO: ==28222== Releasing lock... [2025-02-17 12:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:37:24] Production.INFO: 44.25 MB #Memory Used# [2025-02-17 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:38:06 [end_date_ymd] => 2025-02-17 12:38:06 [RateCDR] => 1 ) [2025-02-17 12:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:38:06' and `end` < '2025-02-17 12:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:38:19] Production.INFO: count ==2142 [2025-02-17 12:38:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:38:06 - End Time 2025-02-17 12:38:06 [2025-02-17 12:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495786', 'tblTempUsageDetail_20' ) start [2025-02-17 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495786', 'tblTempUsageDetail_20' ) end [2025-02-17 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495786', 'tblTempVendorCDR_20' ) start [2025-02-17 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495786', 'tblTempVendorCDR_20' ) end [2025-02-17 12:38:20] Production.INFO: ProcessCDR(1,14495786,1,1,2) [2025-02-17 12:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495786', 'tblTempUsageDetail_20' ) start [2025-02-17 12:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495786', 'tblTempUsageDetail_20' ) end [2025-02-17 12:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:38:25] Production.INFO: ==28294== Releasing lock... [2025-02-17 12:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:38:25] Production.INFO: 44.25 MB #Memory Used# [2025-02-17 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:39:05 [end_date_ymd] => 2025-02-17 12:39:05 [RateCDR] => 1 ) [2025-02-17 12:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:39:05' and `end` < '2025-02-17 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:39:19] Production.INFO: count ==2184 [2025-02-17 12:39:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:39:05 - End Time 2025-02-17 12:39:05 [2025-02-17 12:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495791', 'tblTempUsageDetail_20' ) start [2025-02-17 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495791', 'tblTempUsageDetail_20' ) end [2025-02-17 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495791', 'tblTempVendorCDR_20' ) start [2025-02-17 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495791', 'tblTempVendorCDR_20' ) end [2025-02-17 12:39:20] Production.INFO: ProcessCDR(1,14495791,1,1,2) [2025-02-17 12:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495791', 'tblTempUsageDetail_20' ) start [2025-02-17 12:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495791', 'tblTempUsageDetail_20' ) end [2025-02-17 12:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:39:25] Production.INFO: ==28370== Releasing lock... [2025-02-17 12:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:39:25] Production.INFO: 44.5 MB #Memory Used# [2025-02-17 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:40:06 [end_date_ymd] => 2025-02-17 12:40:06 [RateCDR] => 1 ) [2025-02-17 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:40:06' and `end` < '2025-02-17 12:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:40:20] Production.INFO: count ==2183 [2025-02-17 12:40:21] Production.ERROR: pbx CDR StartTime 2025-02-17 09:40:06 - End Time 2025-02-17 12:40:06 [2025-02-17 12:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495797', 'tblTempUsageDetail_20' ) start [2025-02-17 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495797', 'tblTempUsageDetail_20' ) end [2025-02-17 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495797', 'tblTempVendorCDR_20' ) start [2025-02-17 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495797', 'tblTempVendorCDR_20' ) end [2025-02-17 12:40:21] Production.INFO: ProcessCDR(1,14495797,1,1,2) [2025-02-17 12:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495797', 'tblTempUsageDetail_20' ) start [2025-02-17 12:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495797', 'tblTempUsageDetail_20' ) end [2025-02-17 12:40:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:40:25] Production.INFO: ==28445== Releasing lock... [2025-02-17 12:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:40:25] Production.INFO: 44.5 MB #Memory Used# [2025-02-17 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:41:05 [end_date_ymd] => 2025-02-17 12:41:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 09:41:05' and `end` < '2025-02-17 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:41:18] Production.INFO: count ==2220 [2025-02-17 12:41:19] Production.ERROR: pbx CDR StartTime 2025-02-17 09:41:05 - End Time 2025-02-17 12:41:05 [2025-02-17 12:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495802', 'tblTempUsageDetail_20' ) start [2025-02-17 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495802', 'tblTempUsageDetail_20' ) end [2025-02-17 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495802', 'tblTempVendorCDR_20' ) start [2025-02-17 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495802', 'tblTempVendorCDR_20' ) end [2025-02-17 12:41:19] Production.INFO: ProcessCDR(1,14495802,1,1,2) [2025-02-17 12:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495802', 'tblTempUsageDetail_20' ) start [2025-02-17 12:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495802', 'tblTempUsageDetail_20' ) end [2025-02-17 12:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:41:23] Production.INFO: ==28518== Releasing lock... [2025-02-17 12:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:41:23] Production.INFO: 45 MB #Memory Used# [2025-02-17 12:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:42:06 [end_date_ymd] => 2025-02-17 12:42:06 [RateCDR] => 1 ) [2025-02-17 12:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:42:06' and `end` < '2025-02-17 12:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:42:19] Production.INFO: count ==2234 [2025-02-17 12:42:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:42:06 - End Time 2025-02-17 12:42:06 [2025-02-17 12:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495807', 'tblTempUsageDetail_20' ) start [2025-02-17 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495807', 'tblTempUsageDetail_20' ) end [2025-02-17 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495807', 'tblTempVendorCDR_20' ) start [2025-02-17 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495807', 'tblTempVendorCDR_20' ) end [2025-02-17 12:42:20] Production.INFO: ProcessCDR(1,14495807,1,1,2) [2025-02-17 12:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495807', 'tblTempUsageDetail_20' ) start [2025-02-17 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495807', 'tblTempUsageDetail_20' ) end [2025-02-17 12:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:42:26] Production.INFO: ==28592== Releasing lock... [2025-02-17 12:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:42:26] Production.INFO: 44.75 MB #Memory Used# [2025-02-17 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:43:05 [end_date_ymd] => 2025-02-17 12:43:05 [RateCDR] => 1 ) [2025-02-17 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:43:05' and `end` < '2025-02-17 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:43:19] Production.INFO: count ==2211 [2025-02-17 12:43:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:43:05 - End Time 2025-02-17 12:43:05 [2025-02-17 12:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495812', 'tblTempUsageDetail_20' ) start [2025-02-17 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495812', 'tblTempUsageDetail_20' ) end [2025-02-17 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495812', 'tblTempVendorCDR_20' ) start [2025-02-17 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495812', 'tblTempVendorCDR_20' ) end [2025-02-17 12:43:20] Production.INFO: ProcessCDR(1,14495812,1,1,2) [2025-02-17 12:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495812', 'tblTempUsageDetail_20' ) start [2025-02-17 12:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495812', 'tblTempUsageDetail_20' ) end [2025-02-17 12:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:43:24] Production.INFO: ==28669== Releasing lock... [2025-02-17 12:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:43:24] Production.INFO: 44.75 MB #Memory Used# [2025-02-17 12:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:44:06 [end_date_ymd] => 2025-02-17 12:44:06 [RateCDR] => 1 ) [2025-02-17 12:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:44:06' and `end` < '2025-02-17 12:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:44:19] Production.INFO: count ==2240 [2025-02-17 12:44:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:44:06 - End Time 2025-02-17 12:44:06 [2025-02-17 12:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495817', 'tblTempUsageDetail_20' ) start [2025-02-17 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495817', 'tblTempUsageDetail_20' ) end [2025-02-17 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495817', 'tblTempVendorCDR_20' ) start [2025-02-17 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495817', 'tblTempVendorCDR_20' ) end [2025-02-17 12:44:20] Production.INFO: ProcessCDR(1,14495817,1,1,2) [2025-02-17 12:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495817', 'tblTempUsageDetail_20' ) start [2025-02-17 12:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495817', 'tblTempUsageDetail_20' ) end [2025-02-17 12:44:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:44:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:44:25] Production.INFO: ==28739== Releasing lock... [2025-02-17 12:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:44:25] Production.INFO: 44.75 MB #Memory Used# [2025-02-17 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:45:05 [end_date_ymd] => 2025-02-17 12:45:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 09:45:05' and `end` < '2025-02-17 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-02-17 12:45:18] Production.INFO: count ==2252 [2025-02-17 12:45:19] Production.ERROR: pbx CDR StartTime 2025-02-17 09:45:05 - End Time 2025-02-17 12:45:05 [2025-02-17 12:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495822', 'tblTempUsageDetail_20' ) start [2025-02-17 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495822', 'tblTempUsageDetail_20' ) end [2025-02-17 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495822', 'tblTempVendorCDR_20' ) start [2025-02-17 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495822', 'tblTempVendorCDR_20' ) end [2025-02-17 12:45:19] Production.INFO: ProcessCDR(1,14495822,1,1,2) [2025-02-17 12:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495822', 'tblTempUsageDetail_20' ) start [2025-02-17 12:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495822', 'tblTempUsageDetail_20' ) end [2025-02-17 12:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:45:23] Production.INFO: ==28815== Releasing lock... [2025-02-17 12:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:45:23] Production.INFO: 45 MB #Memory Used# [2025-02-17 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:46:06 [end_date_ymd] => 2025-02-17 12:46:06 [RateCDR] => 1 ) [2025-02-17 12:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:46:06' and `end` < '2025-02-17 12:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:46:20] Production.INFO: count ==2256 [2025-02-17 12:46:21] Production.ERROR: pbx CDR StartTime 2025-02-17 09:46:06 - End Time 2025-02-17 12:46:06 [2025-02-17 12:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495827', 'tblTempUsageDetail_20' ) start [2025-02-17 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495827', 'tblTempUsageDetail_20' ) end [2025-02-17 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495827', 'tblTempVendorCDR_20' ) start [2025-02-17 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495827', 'tblTempVendorCDR_20' ) end [2025-02-17 12:46:21] Production.INFO: ProcessCDR(1,14495827,1,1,2) [2025-02-17 12:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495827', 'tblTempUsageDetail_20' ) start [2025-02-17 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495827', 'tblTempUsageDetail_20' ) end [2025-02-17 12:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:46:26] Production.INFO: ==28886== Releasing lock... [2025-02-17 12:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:46:26] Production.INFO: 45 MB #Memory Used# [2025-02-17 12:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:47:05 [end_date_ymd] => 2025-02-17 12:47:05 [RateCDR] => 1 ) [2025-02-17 12:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:47:05' and `end` < '2025-02-17 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:47:20] Production.INFO: count ==2236 [2025-02-17 12:47:21] Production.ERROR: pbx CDR StartTime 2025-02-17 09:47:05 - End Time 2025-02-17 12:47:05 [2025-02-17 12:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495832', 'tblTempUsageDetail_20' ) start [2025-02-17 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495832', 'tblTempUsageDetail_20' ) end [2025-02-17 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495832', 'tblTempVendorCDR_20' ) start [2025-02-17 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495832', 'tblTempVendorCDR_20' ) end [2025-02-17 12:47:21] Production.INFO: ProcessCDR(1,14495832,1,1,2) [2025-02-17 12:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495832', 'tblTempUsageDetail_20' ) start [2025-02-17 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495832', 'tblTempUsageDetail_20' ) end [2025-02-17 12:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:47:26] Production.INFO: ==28956== Releasing lock... [2025-02-17 12:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:47:26] Production.INFO: 44.5 MB #Memory Used# [2025-02-17 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:48:05 [end_date_ymd] => 2025-02-17 12:48:05 [RateCDR] => 1 ) [2025-02-17 12:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:48:05' and `end` < '2025-02-17 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-02-17 12:48:20] Production.INFO: count ==2237 [2025-02-17 12:48:21] Production.ERROR: pbx CDR StartTime 2025-02-17 09:48:05 - End Time 2025-02-17 12:48:05 [2025-02-17 12:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495837', 'tblTempUsageDetail_20' ) start [2025-02-17 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495837', 'tblTempUsageDetail_20' ) end [2025-02-17 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495837', 'tblTempVendorCDR_20' ) start [2025-02-17 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495837', 'tblTempVendorCDR_20' ) end [2025-02-17 12:48:21] Production.INFO: ProcessCDR(1,14495837,1,1,2) [2025-02-17 12:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495837', 'tblTempUsageDetail_20' ) start [2025-02-17 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495837', 'tblTempUsageDetail_20' ) end [2025-02-17 12:48:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:48:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:48:26] Production.INFO: ==29028== Releasing lock... [2025-02-17 12:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:48:26] Production.INFO: 45 MB #Memory Used# [2025-02-17 12:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:49:06 [end_date_ymd] => 2025-02-17 12:49:06 [RateCDR] => 1 ) [2025-02-17 12:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:49:06' and `end` < '2025-02-17 12:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:49:19] Production.INFO: count ==2235 [2025-02-17 12:49:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:49:06 - End Time 2025-02-17 12:49:06 [2025-02-17 12:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495842', 'tblTempUsageDetail_20' ) start [2025-02-17 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495842', 'tblTempUsageDetail_20' ) end [2025-02-17 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495842', 'tblTempVendorCDR_20' ) start [2025-02-17 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495842', 'tblTempVendorCDR_20' ) end [2025-02-17 12:49:20] Production.INFO: ProcessCDR(1,14495842,1,1,2) [2025-02-17 12:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495842', 'tblTempUsageDetail_20' ) start [2025-02-17 12:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495842', 'tblTempUsageDetail_20' ) end [2025-02-17 12:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:49:24] Production.INFO: ==29100== Releasing lock... [2025-02-17 12:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:49:24] Production.INFO: 44.75 MB #Memory Used# [2025-02-17 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:50:06 [end_date_ymd] => 2025-02-17 12:50:06 [RateCDR] => 1 ) [2025-02-17 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:50:06' and `end` < '2025-02-17 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:50:19] Production.INFO: count ==2235 [2025-02-17 12:50:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:50:06 - End Time 2025-02-17 12:50:06 [2025-02-17 12:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495848', 'tblTempUsageDetail_20' ) start [2025-02-17 12:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495848', 'tblTempUsageDetail_20' ) end [2025-02-17 12:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495848', 'tblTempVendorCDR_20' ) start [2025-02-17 12:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495848', 'tblTempVendorCDR_20' ) end [2025-02-17 12:50:20] Production.INFO: ProcessCDR(1,14495848,1,1,2) [2025-02-17 12:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495848', 'tblTempUsageDetail_20' ) start [2025-02-17 12:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495848', 'tblTempUsageDetail_20' ) end [2025-02-17 12:50:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:50:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:50:26] Production.INFO: ==29212== Releasing lock... [2025-02-17 12:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:50:26] Production.INFO: 45 MB #Memory Used# [2025-02-17 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:51:05 [end_date_ymd] => 2025-02-17 12:51:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 09:51:05' and `end` < '2025-02-17 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-02-17 12:51:18] Production.INFO: count ==2272 [2025-02-17 12:51:19] Production.ERROR: pbx CDR StartTime 2025-02-17 09:51:05 - End Time 2025-02-17 12:51:05 [2025-02-17 12:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495853', 'tblTempUsageDetail_20' ) start [2025-02-17 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495853', 'tblTempUsageDetail_20' ) end [2025-02-17 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495853', 'tblTempVendorCDR_20' ) start [2025-02-17 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495853', 'tblTempVendorCDR_20' ) end [2025-02-17 12:51:19] Production.INFO: ProcessCDR(1,14495853,1,1,2) [2025-02-17 12:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495853', 'tblTempUsageDetail_20' ) start [2025-02-17 12:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495853', 'tblTempUsageDetail_20' ) end [2025-02-17 12:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:51:25] Production.INFO: ==29285== Releasing lock... [2025-02-17 12:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:51:25] Production.INFO: 45 MB #Memory Used# [2025-02-17 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:52:05 [end_date_ymd] => 2025-02-17 12:52:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 09:52:05' and `end` < '2025-02-17 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-02-17 12:52:20] Production.INFO: count ==2276 [2025-02-17 12:52:21] Production.ERROR: pbx CDR StartTime 2025-02-17 09:52:05 - End Time 2025-02-17 12:52:05 [2025-02-17 12:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495858', 'tblTempUsageDetail_20' ) start [2025-02-17 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495858', 'tblTempUsageDetail_20' ) end [2025-02-17 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495858', 'tblTempVendorCDR_20' ) start [2025-02-17 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495858', 'tblTempVendorCDR_20' ) end [2025-02-17 12:52:21] Production.INFO: ProcessCDR(1,14495858,1,1,2) [2025-02-17 12:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495858', 'tblTempUsageDetail_20' ) start [2025-02-17 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495858', 'tblTempUsageDetail_20' ) end [2025-02-17 12:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:52:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:52:26] Production.INFO: ==29355== Releasing lock... [2025-02-17 12:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:52:26] Production.INFO: 45.25 MB #Memory Used# [2025-02-17 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:53:05 [end_date_ymd] => 2025-02-17 12:53:05 [RateCDR] => 1 ) [2025-02-17 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:53:05' and `end` < '2025-02-17 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:53:19] Production.INFO: count ==2277 [2025-02-17 12:53:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:53:05 - End Time 2025-02-17 12:53:05 [2025-02-17 12:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495863', 'tblTempUsageDetail_20' ) start [2025-02-17 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495863', 'tblTempUsageDetail_20' ) end [2025-02-17 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495863', 'tblTempVendorCDR_20' ) start [2025-02-17 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495863', 'tblTempVendorCDR_20' ) end [2025-02-17 12:53:20] Production.INFO: ProcessCDR(1,14495863,1,1,2) [2025-02-17 12:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495863', 'tblTempUsageDetail_20' ) start [2025-02-17 12:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495863', 'tblTempUsageDetail_20' ) end [2025-02-17 12:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:53:24] Production.INFO: ==29426== Releasing lock... [2025-02-17 12:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:53:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-17 12:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:54:06 [end_date_ymd] => 2025-02-17 12:54:06 [RateCDR] => 1 ) [2025-02-17 12:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:54:06' and `end` < '2025-02-17 12:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:54:19] Production.INFO: count ==2272 [2025-02-17 12:54:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:54:06 - End Time 2025-02-17 12:54:06 [2025-02-17 12:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495868', 'tblTempUsageDetail_20' ) start [2025-02-17 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495868', 'tblTempUsageDetail_20' ) end [2025-02-17 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495868', 'tblTempVendorCDR_20' ) start [2025-02-17 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495868', 'tblTempVendorCDR_20' ) end [2025-02-17 12:54:20] Production.INFO: ProcessCDR(1,14495868,1,1,2) [2025-02-17 12:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495868', 'tblTempUsageDetail_20' ) start [2025-02-17 12:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495868', 'tblTempUsageDetail_20' ) end [2025-02-17 12:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:54:24] Production.INFO: ==29497== Releasing lock... [2025-02-17 12:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:54:24] Production.INFO: 45 MB #Memory Used# [2025-02-17 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:55:05 [end_date_ymd] => 2025-02-17 12:55:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 09:55:05' and `end` < '2025-02-17 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-02-17 12:55:19] Production.INFO: count ==2272 [2025-02-17 12:55:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:55:05 - End Time 2025-02-17 12:55:05 [2025-02-17 12:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495873', 'tblTempUsageDetail_20' ) start [2025-02-17 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495873', 'tblTempUsageDetail_20' ) end [2025-02-17 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495873', 'tblTempVendorCDR_20' ) start [2025-02-17 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495873', 'tblTempVendorCDR_20' ) end [2025-02-17 12:55:20] Production.INFO: ProcessCDR(1,14495873,1,1,2) [2025-02-17 12:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495873', 'tblTempUsageDetail_20' ) start [2025-02-17 12:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495873', 'tblTempUsageDetail_20' ) end [2025-02-17 12:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:55:24] Production.INFO: ==29568== Releasing lock... [2025-02-17 12:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:55:24] Production.INFO: 45 MB #Memory Used# [2025-02-17 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:56:05 [end_date_ymd] => 2025-02-17 12:56:05 [RateCDR] => 1 ) [2025-02-17 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:56:05' and `end` < '2025-02-17 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:56:19] Production.INFO: count ==2271 [2025-02-17 12:56:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:56:05 - End Time 2025-02-17 12:56:05 [2025-02-17 12:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495878', 'tblTempUsageDetail_20' ) start [2025-02-17 12:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495878', 'tblTempUsageDetail_20' ) end [2025-02-17 12:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495878', 'tblTempVendorCDR_20' ) start [2025-02-17 12:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495878', 'tblTempVendorCDR_20' ) end [2025-02-17 12:56:20] Production.INFO: ProcessCDR(1,14495878,1,1,2) [2025-02-17 12:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495878', 'tblTempUsageDetail_20' ) start [2025-02-17 12:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495878', 'tblTempUsageDetail_20' ) end [2025-02-17 12:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:56:23] Production.INFO: ==29646== Releasing lock... [2025-02-17 12:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:56:23] Production.INFO: 45 MB #Memory Used# [2025-02-17 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:57:05 [end_date_ymd] => 2025-02-17 12:57:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 09:57:05' and `end` < '2025-02-17 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-02-17 12:57:19] Production.INFO: count ==2271 [2025-02-17 12:57:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:57:05 - End Time 2025-02-17 12:57:05 [2025-02-17 12:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495883', 'tblTempUsageDetail_20' ) start [2025-02-17 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495883', 'tblTempUsageDetail_20' ) end [2025-02-17 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495883', 'tblTempVendorCDR_20' ) start [2025-02-17 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495883', 'tblTempVendorCDR_20' ) end [2025-02-17 12:57:20] Production.INFO: ProcessCDR(1,14495883,1,1,2) [2025-02-17 12:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495883', 'tblTempUsageDetail_20' ) start [2025-02-17 12:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495883', 'tblTempUsageDetail_20' ) end [2025-02-17 12:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:57:25] Production.INFO: ==29718== Releasing lock... [2025-02-17 12:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:57:25] Production.INFO: 45 MB #Memory Used# [2025-02-17 12:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:58:06 [end_date_ymd] => 2025-02-17 12:58:06 [RateCDR] => 1 ) [2025-02-17 12:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:58:06' and `end` < '2025-02-17 12:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:58:19] Production.INFO: count ==2270 [2025-02-17 12:58:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:58:06 - End Time 2025-02-17 12:58:06 [2025-02-17 12:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495888', 'tblTempUsageDetail_20' ) start [2025-02-17 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495888', 'tblTempUsageDetail_20' ) end [2025-02-17 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495888', 'tblTempVendorCDR_20' ) start [2025-02-17 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495888', 'tblTempVendorCDR_20' ) end [2025-02-17 12:58:20] Production.INFO: ProcessCDR(1,14495888,1,1,2) [2025-02-17 12:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495888', 'tblTempUsageDetail_20' ) start [2025-02-17 12:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495888', 'tblTempUsageDetail_20' ) end [2025-02-17 12:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:58:24] Production.INFO: ==29788== Releasing lock... [2025-02-17 12:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:58:24] Production.INFO: 45 MB #Memory Used# [2025-02-17 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 09:59:05 [end_date_ymd] => 2025-02-17 12:59:05 [RateCDR] => 1 ) [2025-02-17 12:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 09:59:05' and `end` < '2025-02-17 12:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 12:59:19] Production.INFO: count ==2277 [2025-02-17 12:59:20] Production.ERROR: pbx CDR StartTime 2025-02-17 09:59:05 - End Time 2025-02-17 12:59:05 [2025-02-17 12:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495893', 'tblTempUsageDetail_20' ) start [2025-02-17 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495893', 'tblTempUsageDetail_20' ) end [2025-02-17 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495893', 'tblTempVendorCDR_20' ) start [2025-02-17 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495893', 'tblTempVendorCDR_20' ) end [2025-02-17 12:59:20] Production.INFO: ProcessCDR(1,14495893,1,1,2) [2025-02-17 12:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 12:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 12:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495893', 'tblTempUsageDetail_20' ) start [2025-02-17 12:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495893', 'tblTempUsageDetail_20' ) end [2025-02-17 12:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 12:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 12:59:24] Production.INFO: ==29862== Releasing lock... [2025-02-17 12:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 12:59:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-17 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:00:06 [end_date_ymd] => 2025-02-17 13:00:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 10:00:06' and `end` < '2025-02-17 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-02-17 13:00:20] Production.INFO: count ==2277 [2025-02-17 13:00:21] Production.ERROR: pbx CDR StartTime 2025-02-17 10:00:06 - End Time 2025-02-17 13:00:06 [2025-02-17 13:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495899', 'tblTempUsageDetail_20' ) start [2025-02-17 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495899', 'tblTempUsageDetail_20' ) end [2025-02-17 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495899', 'tblTempVendorCDR_20' ) start [2025-02-17 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495899', 'tblTempVendorCDR_20' ) end [2025-02-17 13:00:21] Production.INFO: ProcessCDR(1,14495899,1,1,2) [2025-02-17 13:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495899', 'tblTempUsageDetail_20' ) start [2025-02-17 13:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495899', 'tblTempUsageDetail_20' ) end [2025-02-17 13:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:00:24] Production.INFO: ==29936== Releasing lock... [2025-02-17 13:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:00:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-17 13:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:01:06 [end_date_ymd] => 2025-02-17 13:01:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 10:01:06' and `end` < '2025-02-17 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-02-17 13:01:20] Production.INFO: count ==2324 [2025-02-17 13:01:21] Production.ERROR: pbx CDR StartTime 2025-02-17 10:01:06 - End Time 2025-02-17 13:01:06 [2025-02-17 13:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495904', 'tblTempUsageDetail_20' ) start [2025-02-17 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495904', 'tblTempUsageDetail_20' ) end [2025-02-17 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495904', 'tblTempVendorCDR_20' ) start [2025-02-17 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495904', 'tblTempVendorCDR_20' ) end [2025-02-17 13:01:21] Production.INFO: ProcessCDR(1,14495904,1,1,2) [2025-02-17 13:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495904', 'tblTempUsageDetail_20' ) start [2025-02-17 13:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495904', 'tblTempUsageDetail_20' ) end [2025-02-17 13:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:01:24] Production.INFO: ==30021== Releasing lock... [2025-02-17 13:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:01:24] Production.INFO: 45.5 MB #Memory Used# [2025-02-17 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:02:05 [end_date_ymd] => 2025-02-17 13:02:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 10:02:05' and `end` < '2025-02-17 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-02-17 13:02:19] Production.INFO: count ==2332 [2025-02-17 13:02:20] Production.ERROR: pbx CDR StartTime 2025-02-17 10:02:05 - End Time 2025-02-17 13:02:05 [2025-02-17 13:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495909', 'tblTempUsageDetail_20' ) start [2025-02-17 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495909', 'tblTempUsageDetail_20' ) end [2025-02-17 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495909', 'tblTempVendorCDR_20' ) start [2025-02-17 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495909', 'tblTempVendorCDR_20' ) end [2025-02-17 13:02:20] Production.INFO: ProcessCDR(1,14495909,1,1,2) [2025-02-17 13:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495909', 'tblTempUsageDetail_20' ) start [2025-02-17 13:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495909', 'tblTempUsageDetail_20' ) end [2025-02-17 13:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:02:25] Production.INFO: ==30092== Releasing lock... [2025-02-17 13:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:02:25] Production.INFO: 45.5 MB #Memory Used# [2025-02-17 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:03:05 [end_date_ymd] => 2025-02-17 13:03:05 [RateCDR] => 1 ) [2025-02-17 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:03:05' and `end` < '2025-02-17 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:03:22] Production.INFO: count ==2380 [2025-02-17 13:03:23] Production.ERROR: pbx CDR StartTime 2025-02-17 10:03:05 - End Time 2025-02-17 13:03:05 [2025-02-17 13:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495914', 'tblTempUsageDetail_20' ) start [2025-02-17 13:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495914', 'tblTempUsageDetail_20' ) end [2025-02-17 13:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495914', 'tblTempVendorCDR_20' ) start [2025-02-17 13:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495914', 'tblTempVendorCDR_20' ) end [2025-02-17 13:03:23] Production.INFO: ProcessCDR(1,14495914,1,1,2) [2025-02-17 13:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495914', 'tblTempUsageDetail_20' ) start [2025-02-17 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495914', 'tblTempUsageDetail_20' ) end [2025-02-17 13:03:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:03:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:03:26] Production.INFO: ==30163== Releasing lock... [2025-02-17 13:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:03:26] Production.INFO: 46 MB #Memory Used# [2025-02-17 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:04:05 [end_date_ymd] => 2025-02-17 13:04:05 [RateCDR] => 1 ) [2025-02-17 13:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:04:05' and `end` < '2025-02-17 13:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:04:19] Production.INFO: count ==2385 [2025-02-17 13:04:20] Production.ERROR: pbx CDR StartTime 2025-02-17 10:04:05 - End Time 2025-02-17 13:04:05 [2025-02-17 13:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495919', 'tblTempUsageDetail_20' ) start [2025-02-17 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495919', 'tblTempUsageDetail_20' ) end [2025-02-17 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495919', 'tblTempVendorCDR_20' ) start [2025-02-17 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495919', 'tblTempVendorCDR_20' ) end [2025-02-17 13:04:20] Production.INFO: ProcessCDR(1,14495919,1,1,2) [2025-02-17 13:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495919', 'tblTempUsageDetail_20' ) start [2025-02-17 13:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495919', 'tblTempUsageDetail_20' ) end [2025-02-17 13:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:04:25] Production.INFO: ==30235== Releasing lock... [2025-02-17 13:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:04:25] Production.INFO: 46 MB #Memory Used# [2025-02-17 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:05:06 [end_date_ymd] => 2025-02-17 13:05:06 [RateCDR] => 1 ) [2025-02-17 13:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:05:06' and `end` < '2025-02-17 13:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:05:19] Production.INFO: count ==2387 [2025-02-17 13:05:20] Production.ERROR: pbx CDR StartTime 2025-02-17 10:05:06 - End Time 2025-02-17 13:05:06 [2025-02-17 13:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495924', 'tblTempUsageDetail_20' ) start [2025-02-17 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495924', 'tblTempUsageDetail_20' ) end [2025-02-17 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495924', 'tblTempVendorCDR_20' ) start [2025-02-17 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495924', 'tblTempVendorCDR_20' ) end [2025-02-17 13:05:20] Production.INFO: ProcessCDR(1,14495924,1,1,2) [2025-02-17 13:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495924', 'tblTempUsageDetail_20' ) start [2025-02-17 13:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495924', 'tblTempUsageDetail_20' ) end [2025-02-17 13:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:05:25] Production.INFO: ==30313== Releasing lock... [2025-02-17 13:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:05:25] Production.INFO: 46 MB #Memory Used# [2025-02-17 13:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:06:06 [end_date_ymd] => 2025-02-17 13:06:06 [RateCDR] => 1 ) [2025-02-17 13:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:06:06' and `end` < '2025-02-17 13:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:06:20] Production.INFO: count ==2364 [2025-02-17 13:06:21] Production.ERROR: pbx CDR StartTime 2025-02-17 10:06:06 - End Time 2025-02-17 13:06:06 [2025-02-17 13:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495929', 'tblTempUsageDetail_20' ) start [2025-02-17 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495929', 'tblTempUsageDetail_20' ) end [2025-02-17 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495929', 'tblTempVendorCDR_20' ) start [2025-02-17 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495929', 'tblTempVendorCDR_20' ) end [2025-02-17 13:06:21] Production.INFO: ProcessCDR(1,14495929,1,1,2) [2025-02-17 13:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495929', 'tblTempUsageDetail_20' ) start [2025-02-17 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495929', 'tblTempUsageDetail_20' ) end [2025-02-17 13:06:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:06:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:06:27] Production.INFO: ==30423== Releasing lock... [2025-02-17 13:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:06:27] Production.INFO: 45.5 MB #Memory Used# [2025-02-17 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:07:06 [end_date_ymd] => 2025-02-17 13:07:06 [RateCDR] => 1 ) [2025-02-17 13:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:07:06' and `end` < '2025-02-17 13:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:07:19] Production.INFO: count ==2371 [2025-02-17 13:07:20] Production.ERROR: pbx CDR StartTime 2025-02-17 10:07:06 - End Time 2025-02-17 13:07:06 [2025-02-17 13:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495934', 'tblTempUsageDetail_20' ) start [2025-02-17 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495934', 'tblTempUsageDetail_20' ) end [2025-02-17 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495934', 'tblTempVendorCDR_20' ) start [2025-02-17 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495934', 'tblTempVendorCDR_20' ) end [2025-02-17 13:07:21] Production.INFO: ProcessCDR(1,14495934,1,1,2) [2025-02-17 13:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495934', 'tblTempUsageDetail_20' ) start [2025-02-17 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495934', 'tblTempUsageDetail_20' ) end [2025-02-17 13:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:07:26] Production.INFO: ==30496== Releasing lock... [2025-02-17 13:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:07:26] Production.INFO: 45.75 MB #Memory Used# [2025-02-17 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:08:05 [end_date_ymd] => 2025-02-17 13:08:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 10:08:05' and `end` < '2025-02-17 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-02-17 13:08:20] Production.INFO: count ==2374 [2025-02-17 13:08:21] Production.ERROR: pbx CDR StartTime 2025-02-17 10:08:05 - End Time 2025-02-17 13:08:05 [2025-02-17 13:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495939', 'tblTempUsageDetail_20' ) start [2025-02-17 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495939', 'tblTempUsageDetail_20' ) end [2025-02-17 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495939', 'tblTempVendorCDR_20' ) start [2025-02-17 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495939', 'tblTempVendorCDR_20' ) end [2025-02-17 13:08:21] Production.INFO: ProcessCDR(1,14495939,1,1,2) [2025-02-17 13:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495939', 'tblTempUsageDetail_20' ) start [2025-02-17 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495939', 'tblTempUsageDetail_20' ) end [2025-02-17 13:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:08:26] Production.INFO: ==30566== Releasing lock... [2025-02-17 13:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:08:26] Production.INFO: 46 MB #Memory Used# [2025-02-17 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:09:06 [end_date_ymd] => 2025-02-17 13:09:06 [RateCDR] => 1 ) [2025-02-17 13:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:09:06' and `end` < '2025-02-17 13:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:09:19] Production.INFO: count ==2373 [2025-02-17 13:09:20] Production.ERROR: pbx CDR StartTime 2025-02-17 10:09:06 - End Time 2025-02-17 13:09:06 [2025-02-17 13:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495944', 'tblTempUsageDetail_20' ) start [2025-02-17 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495944', 'tblTempUsageDetail_20' ) end [2025-02-17 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495944', 'tblTempVendorCDR_20' ) start [2025-02-17 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495944', 'tblTempVendorCDR_20' ) end [2025-02-17 13:09:20] Production.INFO: ProcessCDR(1,14495944,1,1,2) [2025-02-17 13:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495944', 'tblTempUsageDetail_20' ) start [2025-02-17 13:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495944', 'tblTempUsageDetail_20' ) end [2025-02-17 13:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:09:24] Production.INFO: ==30639== Releasing lock... [2025-02-17 13:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:09:24] Production.INFO: 45.75 MB #Memory Used# [2025-02-17 13:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:10:07 [end_date_ymd] => 2025-02-17 13:10:07 [RateCDR] => 1 ) [2025-02-17 13:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:10:07' and `end` < '2025-02-17 13:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:10:20] Production.INFO: count ==2343 [2025-02-17 13:10:21] Production.ERROR: pbx CDR StartTime 2025-02-17 10:10:07 - End Time 2025-02-17 13:10:07 [2025-02-17 13:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495950', 'tblTempUsageDetail_20' ) start [2025-02-17 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495950', 'tblTempUsageDetail_20' ) end [2025-02-17 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495950', 'tblTempVendorCDR_20' ) start [2025-02-17 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495950', 'tblTempVendorCDR_20' ) end [2025-02-17 13:10:21] Production.INFO: ProcessCDR(1,14495950,1,1,2) [2025-02-17 13:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495950', 'tblTempUsageDetail_20' ) start [2025-02-17 13:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495950', 'tblTempUsageDetail_20' ) end [2025-02-17 13:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:10:25] Production.INFO: ==30712== Releasing lock... [2025-02-17 13:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:10:25] Production.INFO: 45.75 MB #Memory Used# [2025-02-17 13:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:11:06 [end_date_ymd] => 2025-02-17 13:11:06 [RateCDR] => 1 ) [2025-02-17 13:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:11:06' and `end` < '2025-02-17 13:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:11:21] Production.INFO: count ==2433 [2025-02-17 13:11:22] Production.ERROR: pbx CDR StartTime 2025-02-17 10:11:06 - End Time 2025-02-17 13:11:06 [2025-02-17 13:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495955', 'tblTempUsageDetail_20' ) start [2025-02-17 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495955', 'tblTempUsageDetail_20' ) end [2025-02-17 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495955', 'tblTempVendorCDR_20' ) start [2025-02-17 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495955', 'tblTempVendorCDR_20' ) end [2025-02-17 13:11:22] Production.INFO: ProcessCDR(1,14495955,1,1,2) [2025-02-17 13:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495955', 'tblTempUsageDetail_20' ) start [2025-02-17 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495955', 'tblTempUsageDetail_20' ) end [2025-02-17 13:11:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:11:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:11:27] Production.INFO: ==30786== Releasing lock... [2025-02-17 13:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:11:27] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:12:05 [end_date_ymd] => 2025-02-17 13:12:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 10:12:05' and `end` < '2025-02-17 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-02-17 13:12:20] Production.INFO: count ==2452 [2025-02-17 13:12:21] Production.ERROR: pbx CDR StartTime 2025-02-17 10:12:05 - End Time 2025-02-17 13:12:05 [2025-02-17 13:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495960', 'tblTempUsageDetail_20' ) start [2025-02-17 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495960', 'tblTempUsageDetail_20' ) end [2025-02-17 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495960', 'tblTempVendorCDR_20' ) start [2025-02-17 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495960', 'tblTempVendorCDR_20' ) end [2025-02-17 13:12:21] Production.INFO: ProcessCDR(1,14495960,1,1,2) [2025-02-17 13:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495960', 'tblTempUsageDetail_20' ) start [2025-02-17 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495960', 'tblTempUsageDetail_20' ) end [2025-02-17 13:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:12:26] Production.INFO: ==30857== Releasing lock... [2025-02-17 13:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:12:26] Production.INFO: 46.5 MB #Memory Used# [2025-02-17 13:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:13:06 [end_date_ymd] => 2025-02-17 13:13:06 [RateCDR] => 1 ) [2025-02-17 13:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:13:06' and `end` < '2025-02-17 13:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:13:19] Production.INFO: count ==2427 [2025-02-17 13:13:20] Production.ERROR: pbx CDR StartTime 2025-02-17 10:13:06 - End Time 2025-02-17 13:13:06 [2025-02-17 13:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495965', 'tblTempUsageDetail_20' ) start [2025-02-17 13:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495965', 'tblTempUsageDetail_20' ) end [2025-02-17 13:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495965', 'tblTempVendorCDR_20' ) start [2025-02-17 13:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495965', 'tblTempVendorCDR_20' ) end [2025-02-17 13:13:20] Production.INFO: ProcessCDR(1,14495965,1,1,2) [2025-02-17 13:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495965', 'tblTempUsageDetail_20' ) start [2025-02-17 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495965', 'tblTempUsageDetail_20' ) end [2025-02-17 13:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:13:26] Production.INFO: ==30928== Releasing lock... [2025-02-17 13:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:13:26] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:14:05 [end_date_ymd] => 2025-02-17 13:14:05 [RateCDR] => 1 ) [2025-02-17 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:14:05' and `end` < '2025-02-17 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:14:19] Production.INFO: count ==2416 [2025-02-17 13:14:20] Production.ERROR: pbx CDR StartTime 2025-02-17 10:14:05 - End Time 2025-02-17 13:14:05 [2025-02-17 13:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495970', 'tblTempUsageDetail_20' ) start [2025-02-17 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495970', 'tblTempUsageDetail_20' ) end [2025-02-17 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495970', 'tblTempVendorCDR_20' ) start [2025-02-17 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495970', 'tblTempVendorCDR_20' ) end [2025-02-17 13:14:20] Production.INFO: ProcessCDR(1,14495970,1,1,2) [2025-02-17 13:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495970', 'tblTempUsageDetail_20' ) start [2025-02-17 13:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495970', 'tblTempUsageDetail_20' ) end [2025-02-17 13:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:14:26] Production.INFO: ==30997== Releasing lock... [2025-02-17 13:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:14:26] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:15:06 [end_date_ymd] => 2025-02-17 13:15:06 [RateCDR] => 1 ) [2025-02-17 13:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:15:06' and `end` < '2025-02-17 13:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:15:20] Production.INFO: count ==2412 [2025-02-17 13:15:21] Production.ERROR: pbx CDR StartTime 2025-02-17 10:15:06 - End Time 2025-02-17 13:15:06 [2025-02-17 13:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495975', 'tblTempUsageDetail_20' ) start [2025-02-17 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495975', 'tblTempUsageDetail_20' ) end [2025-02-17 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495975', 'tblTempVendorCDR_20' ) start [2025-02-17 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495975', 'tblTempVendorCDR_20' ) end [2025-02-17 13:15:21] Production.INFO: ProcessCDR(1,14495975,1,1,2) [2025-02-17 13:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495975', 'tblTempUsageDetail_20' ) start [2025-02-17 13:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495975', 'tblTempUsageDetail_20' ) end [2025-02-17 13:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:15:24] Production.INFO: ==31070== Releasing lock... [2025-02-17 13:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:15:24] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:16:05 [end_date_ymd] => 2025-02-17 13:16:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 10:16:05' and `end` < '2025-02-17 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-02-17 13:16:18] Production.INFO: count ==2390 [2025-02-17 13:16:19] Production.ERROR: pbx CDR StartTime 2025-02-17 10:16:05 - End Time 2025-02-17 13:16:05 [2025-02-17 13:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495980', 'tblTempUsageDetail_20' ) start [2025-02-17 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495980', 'tblTempUsageDetail_20' ) end [2025-02-17 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495980', 'tblTempVendorCDR_20' ) start [2025-02-17 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495980', 'tblTempVendorCDR_20' ) end [2025-02-17 13:16:19] Production.INFO: ProcessCDR(1,14495980,1,1,2) [2025-02-17 13:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495980', 'tblTempUsageDetail_20' ) start [2025-02-17 13:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495980', 'tblTempUsageDetail_20' ) end [2025-02-17 13:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:16:25] Production.INFO: ==31140== Releasing lock... [2025-02-17 13:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:16:25] Production.INFO: 46 MB #Memory Used# [2025-02-17 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:17:05 [end_date_ymd] => 2025-02-17 13:17:05 [RateCDR] => 1 ) [2025-02-17 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:17:05' and `end` < '2025-02-17 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:17:19] Production.INFO: count ==2374 [2025-02-17 13:17:20] Production.ERROR: pbx CDR StartTime 2025-02-17 10:17:05 - End Time 2025-02-17 13:17:05 [2025-02-17 13:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495985', 'tblTempUsageDetail_20' ) start [2025-02-17 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495985', 'tblTempUsageDetail_20' ) end [2025-02-17 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495985', 'tblTempVendorCDR_20' ) start [2025-02-17 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495985', 'tblTempVendorCDR_20' ) end [2025-02-17 13:17:20] Production.INFO: ProcessCDR(1,14495985,1,1,2) [2025-02-17 13:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495985', 'tblTempUsageDetail_20' ) start [2025-02-17 13:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495985', 'tblTempUsageDetail_20' ) end [2025-02-17 13:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:17:24] Production.INFO: ==31213== Releasing lock... [2025-02-17 13:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:17:24] Production.INFO: 45.75 MB #Memory Used# [2025-02-17 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:18:05 [end_date_ymd] => 2025-02-17 13:18:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 10:18:05' and `end` < '2025-02-17 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-02-17 13:18:19] Production.INFO: count ==2382 [2025-02-17 13:18:20] Production.ERROR: pbx CDR StartTime 2025-02-17 10:18:05 - End Time 2025-02-17 13:18:05 [2025-02-17 13:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495990', 'tblTempUsageDetail_20' ) start [2025-02-17 13:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495990', 'tblTempUsageDetail_20' ) end [2025-02-17 13:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495990', 'tblTempVendorCDR_20' ) start [2025-02-17 13:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495990', 'tblTempVendorCDR_20' ) end [2025-02-17 13:18:20] Production.INFO: ProcessCDR(1,14495990,1,1,2) [2025-02-17 13:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495990', 'tblTempUsageDetail_20' ) start [2025-02-17 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495990', 'tblTempUsageDetail_20' ) end [2025-02-17 13:18:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:18:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:18:26] Production.INFO: ==31290== Releasing lock... [2025-02-17 13:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:18:26] Production.INFO: 46 MB #Memory Used# [2025-02-17 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:19:06 [end_date_ymd] => 2025-02-17 13:19:06 [RateCDR] => 1 ) [2025-02-17 13:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:19:06' and `end` < '2025-02-17 13:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:19:20] Production.INFO: count ==2392 [2025-02-17 13:19:21] Production.ERROR: pbx CDR StartTime 2025-02-17 10:19:06 - End Time 2025-02-17 13:19:06 [2025-02-17 13:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495995', 'tblTempUsageDetail_20' ) start [2025-02-17 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14495995', 'tblTempUsageDetail_20' ) end [2025-02-17 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495995', 'tblTempVendorCDR_20' ) start [2025-02-17 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14495995', 'tblTempVendorCDR_20' ) end [2025-02-17 13:19:21] Production.INFO: ProcessCDR(1,14495995,1,1,2) [2025-02-17 13:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14495995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14495995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14495995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14495995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495995', 'tblTempUsageDetail_20' ) start [2025-02-17 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14495995', 'tblTempUsageDetail_20' ) end [2025-02-17 13:19:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:19:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:19:26] Production.INFO: ==31378== Releasing lock... [2025-02-17 13:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:19:26] Production.INFO: 46 MB #Memory Used# [2025-02-17 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:20:06 [end_date_ymd] => 2025-02-17 13:20:06 [RateCDR] => 1 ) [2025-02-17 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:20:06' and `end` < '2025-02-17 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:20:20] Production.INFO: count ==2391 [2025-02-17 13:20:21] Production.ERROR: pbx CDR StartTime 2025-02-17 10:20:06 - End Time 2025-02-17 13:20:06 [2025-02-17 13:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496000', 'tblTempUsageDetail_20' ) start [2025-02-17 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496000', 'tblTempUsageDetail_20' ) end [2025-02-17 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496000', 'tblTempVendorCDR_20' ) start [2025-02-17 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496000', 'tblTempVendorCDR_20' ) end [2025-02-17 13:20:21] Production.INFO: ProcessCDR(1,14496000,1,1,2) [2025-02-17 13:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496000', 'tblTempUsageDetail_20' ) start [2025-02-17 13:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496000', 'tblTempUsageDetail_20' ) end [2025-02-17 13:20:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:20:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:20:26] Production.INFO: ==31457== Releasing lock... [2025-02-17 13:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:20:26] Production.INFO: 46 MB #Memory Used# [2025-02-17 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:21:05 [end_date_ymd] => 2025-02-17 13:21:05 [RateCDR] => 1 ) [2025-02-17 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:21:05' and `end` < '2025-02-17 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:21:18] Production.INFO: count ==2400 [2025-02-17 13:21:19] Production.ERROR: pbx CDR StartTime 2025-02-17 10:21:05 - End Time 2025-02-17 13:21:05 [2025-02-17 13:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496006', 'tblTempUsageDetail_20' ) start [2025-02-17 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496006', 'tblTempUsageDetail_20' ) end [2025-02-17 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496006', 'tblTempVendorCDR_20' ) start [2025-02-17 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496006', 'tblTempVendorCDR_20' ) end [2025-02-17 13:21:19] Production.INFO: ProcessCDR(1,14496006,1,1,2) [2025-02-17 13:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496006', 'tblTempUsageDetail_20' ) start [2025-02-17 13:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496006', 'tblTempUsageDetail_20' ) end [2025-02-17 13:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:21:24] Production.INFO: ==31578== Releasing lock... [2025-02-17 13:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:21:24] Production.INFO: 46 MB #Memory Used# [2025-02-17 13:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:22:05 [end_date_ymd] => 2025-02-17 13:22:05 [RateCDR] => 1 ) [2025-02-17 13:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:22:05' and `end` < '2025-02-17 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-02-17 13:22:20] Production.INFO: count ==2410 [2025-02-17 13:22:20] Production.ERROR: pbx CDR StartTime 2025-02-17 10:22:05 - End Time 2025-02-17 13:22:05 [2025-02-17 13:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496011', 'tblTempUsageDetail_20' ) start [2025-02-17 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496011', 'tblTempUsageDetail_20' ) end [2025-02-17 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496011', 'tblTempVendorCDR_20' ) start [2025-02-17 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496011', 'tblTempVendorCDR_20' ) end [2025-02-17 13:22:21] Production.INFO: ProcessCDR(1,14496011,1,1,2) [2025-02-17 13:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496011', 'tblTempUsageDetail_20' ) start [2025-02-17 13:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496011', 'tblTempUsageDetail_20' ) end [2025-02-17 13:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:22:24] Production.INFO: ==31658== Releasing lock... [2025-02-17 13:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:22:24] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:23:05 [end_date_ymd] => 2025-02-17 13:23:05 [RateCDR] => 1 ) [2025-02-17 13:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:23:05' and `end` < '2025-02-17 13:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:23:18] Production.INFO: count ==2409 [2025-02-17 13:23:19] Production.ERROR: pbx CDR StartTime 2025-02-17 10:23:05 - End Time 2025-02-17 13:23:05 [2025-02-17 13:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496016', 'tblTempUsageDetail_20' ) start [2025-02-17 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496016', 'tblTempUsageDetail_20' ) end [2025-02-17 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496016', 'tblTempVendorCDR_20' ) start [2025-02-17 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496016', 'tblTempVendorCDR_20' ) end [2025-02-17 13:23:19] Production.INFO: ProcessCDR(1,14496016,1,1,2) [2025-02-17 13:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496016', 'tblTempUsageDetail_20' ) start [2025-02-17 13:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496016', 'tblTempUsageDetail_20' ) end [2025-02-17 13:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:23:24] Production.INFO: ==31733== Releasing lock... [2025-02-17 13:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:23:24] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:24:06 [end_date_ymd] => 2025-02-17 13:24:06 [RateCDR] => 1 ) [2025-02-17 13:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:24:06' and `end` < '2025-02-17 13:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:24:19] Production.INFO: count ==2394 [2025-02-17 13:24:20] Production.ERROR: pbx CDR StartTime 2025-02-17 10:24:06 - End Time 2025-02-17 13:24:06 [2025-02-17 13:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496021', 'tblTempUsageDetail_20' ) start [2025-02-17 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496021', 'tblTempUsageDetail_20' ) end [2025-02-17 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496021', 'tblTempVendorCDR_20' ) start [2025-02-17 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496021', 'tblTempVendorCDR_20' ) end [2025-02-17 13:24:20] Production.INFO: ProcessCDR(1,14496021,1,1,2) [2025-02-17 13:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496021', 'tblTempUsageDetail_20' ) start [2025-02-17 13:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496021', 'tblTempUsageDetail_20' ) end [2025-02-17 13:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:24:25] Production.INFO: ==31807== Releasing lock... [2025-02-17 13:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:24:25] Production.INFO: 46 MB #Memory Used# [2025-02-17 13:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:25:04 [end_date_ymd] => 2025-02-17 13:25:04 [RateCDR] => 1 ) [2025-02-17 13:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:25:04' and `end` < '2025-02-17 13:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:25:18] Production.INFO: count ==2381 [2025-02-17 13:25:18] Production.ERROR: pbx CDR StartTime 2025-02-17 10:25:04 - End Time 2025-02-17 13:25:04 [2025-02-17 13:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496026', 'tblTempUsageDetail_20' ) start [2025-02-17 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496026', 'tblTempUsageDetail_20' ) end [2025-02-17 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496026', 'tblTempVendorCDR_20' ) start [2025-02-17 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496026', 'tblTempVendorCDR_20' ) end [2025-02-17 13:25:19] Production.INFO: ProcessCDR(1,14496026,1,1,2) [2025-02-17 13:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496026', 'tblTempUsageDetail_20' ) start [2025-02-17 13:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496026', 'tblTempUsageDetail_20' ) end [2025-02-17 13:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:25:22] Production.INFO: ==31881== Releasing lock... [2025-02-17 13:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:25:22] Production.INFO: 46 MB #Memory Used# [2025-02-17 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:26:05 [end_date_ymd] => 2025-02-17 13:26:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 10:26:05' and `end` < '2025-02-17 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-02-17 13:26:18] Production.INFO: count ==2389 [2025-02-17 13:26:19] Production.ERROR: pbx CDR StartTime 2025-02-17 10:26:05 - End Time 2025-02-17 13:26:05 [2025-02-17 13:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496031', 'tblTempUsageDetail_20' ) start [2025-02-17 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496031', 'tblTempUsageDetail_20' ) end [2025-02-17 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496031', 'tblTempVendorCDR_20' ) start [2025-02-17 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496031', 'tblTempVendorCDR_20' ) end [2025-02-17 13:26:19] Production.INFO: ProcessCDR(1,14496031,1,1,2) [2025-02-17 13:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496031', 'tblTempUsageDetail_20' ) start [2025-02-17 13:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496031', 'tblTempUsageDetail_20' ) end [2025-02-17 13:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:26:24] Production.INFO: ==31955== Releasing lock... [2025-02-17 13:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:26:24] Production.INFO: 46 MB #Memory Used# [2025-02-17 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:27:05 [end_date_ymd] => 2025-02-17 13:27:05 [RateCDR] => 1 ) [2025-02-17 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:27:05' and `end` < '2025-02-17 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:27:19] Production.INFO: count ==2378 [2025-02-17 13:27:20] Production.ERROR: pbx CDR StartTime 2025-02-17 10:27:05 - End Time 2025-02-17 13:27:05 [2025-02-17 13:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496036', 'tblTempUsageDetail_20' ) start [2025-02-17 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496036', 'tblTempUsageDetail_20' ) end [2025-02-17 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496036', 'tblTempVendorCDR_20' ) start [2025-02-17 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496036', 'tblTempVendorCDR_20' ) end [2025-02-17 13:27:20] Production.INFO: ProcessCDR(1,14496036,1,1,2) [2025-02-17 13:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496036', 'tblTempUsageDetail_20' ) start [2025-02-17 13:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496036', 'tblTempUsageDetail_20' ) end [2025-02-17 13:27:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:27:25] Production.INFO: ==32027== Releasing lock... [2025-02-17 13:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:27:25] Production.INFO: 46 MB #Memory Used# [2025-02-17 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:28:05 [end_date_ymd] => 2025-02-17 13:28:05 [RateCDR] => 1 ) [2025-02-17 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:28:05' and `end` < '2025-02-17 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:28:19] Production.INFO: count ==2373 [2025-02-17 13:28:19] Production.ERROR: pbx CDR StartTime 2025-02-17 10:28:05 - End Time 2025-02-17 13:28:05 [2025-02-17 13:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496041', 'tblTempUsageDetail_20' ) start [2025-02-17 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496041', 'tblTempUsageDetail_20' ) end [2025-02-17 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496041', 'tblTempVendorCDR_20' ) start [2025-02-17 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496041', 'tblTempVendorCDR_20' ) end [2025-02-17 13:28:20] Production.INFO: ProcessCDR(1,14496041,1,1,2) [2025-02-17 13:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496041', 'tblTempUsageDetail_20' ) start [2025-02-17 13:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496041', 'tblTempUsageDetail_20' ) end [2025-02-17 13:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:28:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:28:25] Production.INFO: ==32103== Releasing lock... [2025-02-17 13:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:28:25] Production.INFO: 45.75 MB #Memory Used# [2025-02-17 13:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:29:06 [end_date_ymd] => 2025-02-17 13:29:06 [RateCDR] => 1 ) [2025-02-17 13:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:29:06' and `end` < '2025-02-17 13:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:29:19] Production.INFO: count ==2400 [2025-02-17 13:29:20] Production.ERROR: pbx CDR StartTime 2025-02-17 10:29:06 - End Time 2025-02-17 13:29:06 [2025-02-17 13:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496046', 'tblTempUsageDetail_20' ) start [2025-02-17 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496046', 'tblTempUsageDetail_20' ) end [2025-02-17 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496046', 'tblTempVendorCDR_20' ) start [2025-02-17 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496046', 'tblTempVendorCDR_20' ) end [2025-02-17 13:29:20] Production.INFO: ProcessCDR(1,14496046,1,1,2) [2025-02-17 13:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496046', 'tblTempUsageDetail_20' ) start [2025-02-17 13:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496046', 'tblTempUsageDetail_20' ) end [2025-02-17 13:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:29:24] Production.INFO: ==32177== Releasing lock... [2025-02-17 13:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:29:24] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 13:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:30:05 [end_date_ymd] => 2025-02-17 13:30:05 [RateCDR] => 1 ) [2025-02-17 13:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:30:05' and `end` < '2025-02-17 13:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:30:19] Production.INFO: count ==2401 [2025-02-17 13:30:20] Production.ERROR: pbx CDR StartTime 2025-02-17 10:30:05 - End Time 2025-02-17 13:30:05 [2025-02-17 13:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496050', 'tblTempUsageDetail_20' ) start [2025-02-17 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496050', 'tblTempUsageDetail_20' ) end [2025-02-17 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496050', 'tblTempVendorCDR_20' ) start [2025-02-17 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496050', 'tblTempVendorCDR_20' ) end [2025-02-17 13:30:20] Production.INFO: ProcessCDR(1,14496050,1,1,2) [2025-02-17 13:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496050', 'tblTempUsageDetail_20' ) start [2025-02-17 13:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496050', 'tblTempUsageDetail_20' ) end [2025-02-17 13:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:30:23] Production.INFO: ==32252== Releasing lock... [2025-02-17 13:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:30:23] Production.INFO: 46 MB #Memory Used# [2025-02-17 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:31:05 [end_date_ymd] => 2025-02-17 13:31:05 [RateCDR] => 1 ) [2025-02-17 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:31:05' and `end` < '2025-02-17 13:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:31:19] Production.INFO: count ==2419 [2025-02-17 13:31:20] Production.ERROR: pbx CDR StartTime 2025-02-17 10:31:05 - End Time 2025-02-17 13:31:05 [2025-02-17 13:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496057', 'tblTempUsageDetail_20' ) start [2025-02-17 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496057', 'tblTempUsageDetail_20' ) end [2025-02-17 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496057', 'tblTempVendorCDR_20' ) start [2025-02-17 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496057', 'tblTempVendorCDR_20' ) end [2025-02-17 13:31:20] Production.INFO: ProcessCDR(1,14496057,1,1,2) [2025-02-17 13:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496057', 'tblTempUsageDetail_20' ) start [2025-02-17 13:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496057', 'tblTempUsageDetail_20' ) end [2025-02-17 13:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:31:23] Production.INFO: ==32328== Releasing lock... [2025-02-17 13:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:31:23] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:32:05 [end_date_ymd] => 2025-02-17 13:32:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 10:32:05' and `end` < '2025-02-17 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-02-17 13:32:20] Production.INFO: count ==2418 [2025-02-17 13:32:20] Production.ERROR: pbx CDR StartTime 2025-02-17 10:32:05 - End Time 2025-02-17 13:32:05 [2025-02-17 13:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496062', 'tblTempUsageDetail_20' ) start [2025-02-17 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496062', 'tblTempUsageDetail_20' ) end [2025-02-17 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496062', 'tblTempVendorCDR_20' ) start [2025-02-17 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496062', 'tblTempVendorCDR_20' ) end [2025-02-17 13:32:20] Production.INFO: ProcessCDR(1,14496062,1,1,2) [2025-02-17 13:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496062', 'tblTempUsageDetail_20' ) start [2025-02-17 13:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496062', 'tblTempUsageDetail_20' ) end [2025-02-17 13:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:32:25] Production.INFO: ==32412== Releasing lock... [2025-02-17 13:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:32:25] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 13:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:33:06 [end_date_ymd] => 2025-02-17 13:33:06 [RateCDR] => 1 ) [2025-02-17 13:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:33:06' and `end` < '2025-02-17 13:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:33:20] Production.INFO: count ==2412 [2025-02-17 13:33:21] Production.ERROR: pbx CDR StartTime 2025-02-17 10:33:06 - End Time 2025-02-17 13:33:06 [2025-02-17 13:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496067', 'tblTempUsageDetail_20' ) start [2025-02-17 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496067', 'tblTempUsageDetail_20' ) end [2025-02-17 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496067', 'tblTempVendorCDR_20' ) start [2025-02-17 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496067', 'tblTempVendorCDR_20' ) end [2025-02-17 13:33:21] Production.INFO: ProcessCDR(1,14496067,1,1,2) [2025-02-17 13:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496067', 'tblTempUsageDetail_20' ) start [2025-02-17 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496067', 'tblTempUsageDetail_20' ) end [2025-02-17 13:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:33:25] Production.INFO: ==32487== Releasing lock... [2025-02-17 13:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:33:25] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:34:05 [end_date_ymd] => 2025-02-17 13:34:05 [RateCDR] => 1 ) [2025-02-17 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:34:05' and `end` < '2025-02-17 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:34:18] Production.INFO: count ==2401 [2025-02-17 13:34:19] Production.ERROR: pbx CDR StartTime 2025-02-17 10:34:05 - End Time 2025-02-17 13:34:05 [2025-02-17 13:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496072', 'tblTempUsageDetail_20' ) start [2025-02-17 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496072', 'tblTempUsageDetail_20' ) end [2025-02-17 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496072', 'tblTempVendorCDR_20' ) start [2025-02-17 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496072', 'tblTempVendorCDR_20' ) end [2025-02-17 13:34:19] Production.INFO: ProcessCDR(1,14496072,1,1,2) [2025-02-17 13:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496072', 'tblTempUsageDetail_20' ) start [2025-02-17 13:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496072', 'tblTempUsageDetail_20' ) end [2025-02-17 13:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:34:24] Production.INFO: ==32563== Releasing lock... [2025-02-17 13:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:34:24] Production.INFO: 46 MB #Memory Used# [2025-02-17 13:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:35:06 [end_date_ymd] => 2025-02-17 13:35:06 [RateCDR] => 1 ) [2025-02-17 13:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:35:06' and `end` < '2025-02-17 13:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:35:19] Production.INFO: count ==2372 [2025-02-17 13:35:20] Production.ERROR: pbx CDR StartTime 2025-02-17 10:35:06 - End Time 2025-02-17 13:35:06 [2025-02-17 13:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496077', 'tblTempUsageDetail_20' ) start [2025-02-17 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496077', 'tblTempUsageDetail_20' ) end [2025-02-17 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496077', 'tblTempVendorCDR_20' ) start [2025-02-17 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496077', 'tblTempVendorCDR_20' ) end [2025-02-17 13:35:20] Production.INFO: ProcessCDR(1,14496077,1,1,2) [2025-02-17 13:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496077', 'tblTempUsageDetail_20' ) start [2025-02-17 13:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496077', 'tblTempUsageDetail_20' ) end [2025-02-17 13:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:35:25] Production.INFO: ==32640== Releasing lock... [2025-02-17 13:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:35:25] Production.INFO: 45.75 MB #Memory Used# [2025-02-17 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:36:05 [end_date_ymd] => 2025-02-17 13:36:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 10:36:05' and `end` < '2025-02-17 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-02-17 13:36:18] Production.INFO: count ==2371 [2025-02-17 13:36:19] Production.ERROR: pbx CDR StartTime 2025-02-17 10:36:05 - End Time 2025-02-17 13:36:05 [2025-02-17 13:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496082', 'tblTempUsageDetail_20' ) start [2025-02-17 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496082', 'tblTempUsageDetail_20' ) end [2025-02-17 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496082', 'tblTempVendorCDR_20' ) start [2025-02-17 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496082', 'tblTempVendorCDR_20' ) end [2025-02-17 13:36:19] Production.INFO: ProcessCDR(1,14496082,1,1,2) [2025-02-17 13:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496082', 'tblTempUsageDetail_20' ) start [2025-02-17 13:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496082', 'tblTempUsageDetail_20' ) end [2025-02-17 13:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:36:24] Production.INFO: ==32716== Releasing lock... [2025-02-17 13:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:36:24] Production.INFO: 45.75 MB #Memory Used# [2025-02-17 13:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:37:06 [end_date_ymd] => 2025-02-17 13:37:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 10:37:06' and `end` < '2025-02-17 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-02-17 13:37:19] Production.INFO: count ==2373 [2025-02-17 13:37:20] Production.ERROR: pbx CDR StartTime 2025-02-17 10:37:06 - End Time 2025-02-17 13:37:06 [2025-02-17 13:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496087', 'tblTempUsageDetail_20' ) start [2025-02-17 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496087', 'tblTempUsageDetail_20' ) end [2025-02-17 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496087', 'tblTempVendorCDR_20' ) start [2025-02-17 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496087', 'tblTempVendorCDR_20' ) end [2025-02-17 13:37:20] Production.INFO: ProcessCDR(1,14496087,1,1,2) [2025-02-17 13:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496087', 'tblTempUsageDetail_20' ) start [2025-02-17 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496087', 'tblTempUsageDetail_20' ) end [2025-02-17 13:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:37:23] Production.INFO: ==387== Releasing lock... [2025-02-17 13:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:37:23] Production.INFO: 45.75 MB #Memory Used# [2025-02-17 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:38:05 [end_date_ymd] => 2025-02-17 13:38:05 [RateCDR] => 1 ) [2025-02-17 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:38:05' and `end` < '2025-02-17 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:38:19] Production.INFO: count ==2387 [2025-02-17 13:38:19] Production.ERROR: pbx CDR StartTime 2025-02-17 10:38:05 - End Time 2025-02-17 13:38:05 [2025-02-17 13:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496092', 'tblTempUsageDetail_20' ) start [2025-02-17 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496092', 'tblTempUsageDetail_20' ) end [2025-02-17 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496092', 'tblTempVendorCDR_20' ) start [2025-02-17 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496092', 'tblTempVendorCDR_20' ) end [2025-02-17 13:38:20] Production.INFO: ProcessCDR(1,14496092,1,1,2) [2025-02-17 13:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496092', 'tblTempUsageDetail_20' ) start [2025-02-17 13:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496092', 'tblTempUsageDetail_20' ) end [2025-02-17 13:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:38:24] Production.INFO: ==463== Releasing lock... [2025-02-17 13:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:38:24] Production.INFO: 46 MB #Memory Used# [2025-02-17 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:39:05 [end_date_ymd] => 2025-02-17 13:39:05 [RateCDR] => 1 ) [2025-02-17 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:39:05' and `end` < '2025-02-17 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:39:20] Production.INFO: count ==2395 [2025-02-17 13:39:20] Production.ERROR: pbx CDR StartTime 2025-02-17 10:39:05 - End Time 2025-02-17 13:39:05 [2025-02-17 13:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496097', 'tblTempUsageDetail_20' ) start [2025-02-17 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496097', 'tblTempUsageDetail_20' ) end [2025-02-17 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496097', 'tblTempVendorCDR_20' ) start [2025-02-17 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496097', 'tblTempVendorCDR_20' ) end [2025-02-17 13:39:21] Production.INFO: ProcessCDR(1,14496097,1,1,2) [2025-02-17 13:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496097', 'tblTempUsageDetail_20' ) start [2025-02-17 13:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496097', 'tblTempUsageDetail_20' ) end [2025-02-17 13:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:39:24] Production.INFO: ==538== Releasing lock... [2025-02-17 13:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:39:24] Production.INFO: 46 MB #Memory Used# [2025-02-17 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:40:06 [end_date_ymd] => 2025-02-17 13:40:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 10:40:06' and `end` < '2025-02-17 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-02-17 13:40:19] Production.INFO: count ==2398 [2025-02-17 13:40:20] Production.ERROR: pbx CDR StartTime 2025-02-17 10:40:06 - End Time 2025-02-17 13:40:06 [2025-02-17 13:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496102', 'tblTempUsageDetail_20' ) start [2025-02-17 13:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496102', 'tblTempUsageDetail_20' ) end [2025-02-17 13:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496102', 'tblTempVendorCDR_20' ) start [2025-02-17 13:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496102', 'tblTempVendorCDR_20' ) end [2025-02-17 13:40:20] Production.INFO: ProcessCDR(1,14496102,1,1,2) [2025-02-17 13:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496102', 'tblTempUsageDetail_20' ) start [2025-02-17 13:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496102', 'tblTempUsageDetail_20' ) end [2025-02-17 13:40:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:40:25] Production.INFO: ==626== Releasing lock... [2025-02-17 13:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:40:25] Production.INFO: 46 MB #Memory Used# [2025-02-17 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:41:05 [end_date_ymd] => 2025-02-17 13:41:05 [RateCDR] => 1 ) [2025-02-17 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:41:05' and `end` < '2025-02-17 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:41:19] Production.INFO: count ==2397 [2025-02-17 13:41:20] Production.ERROR: pbx CDR StartTime 2025-02-17 10:41:05 - End Time 2025-02-17 13:41:05 [2025-02-17 13:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496108', 'tblTempUsageDetail_20' ) start [2025-02-17 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496108', 'tblTempUsageDetail_20' ) end [2025-02-17 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496108', 'tblTempVendorCDR_20' ) start [2025-02-17 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496108', 'tblTempVendorCDR_20' ) end [2025-02-17 13:41:20] Production.INFO: ProcessCDR(1,14496108,1,1,2) [2025-02-17 13:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496108', 'tblTempUsageDetail_20' ) start [2025-02-17 13:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496108', 'tblTempUsageDetail_20' ) end [2025-02-17 13:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:41:25] Production.INFO: ==730== Releasing lock... [2025-02-17 13:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:41:25] Production.INFO: 46 MB #Memory Used# [2025-02-17 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:42:05 [end_date_ymd] => 2025-02-17 13:42:05 [RateCDR] => 1 ) [2025-02-17 13:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:42:05' and `end` < '2025-02-17 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:42:18] Production.INFO: count ==2393 [2025-02-17 13:42:19] Production.ERROR: pbx CDR StartTime 2025-02-17 10:42:05 - End Time 2025-02-17 13:42:05 [2025-02-17 13:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496113', 'tblTempUsageDetail_20' ) start [2025-02-17 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496113', 'tblTempUsageDetail_20' ) end [2025-02-17 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496113', 'tblTempVendorCDR_20' ) start [2025-02-17 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496113', 'tblTempVendorCDR_20' ) end [2025-02-17 13:42:19] Production.INFO: ProcessCDR(1,14496113,1,1,2) [2025-02-17 13:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496113', 'tblTempUsageDetail_20' ) start [2025-02-17 13:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496113', 'tblTempUsageDetail_20' ) end [2025-02-17 13:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:42:22] Production.INFO: ==811== Releasing lock... [2025-02-17 13:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:42:22] Production.INFO: 46 MB #Memory Used# [2025-02-17 13:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:43:06 [end_date_ymd] => 2025-02-17 13:43:06 [RateCDR] => 1 ) [2025-02-17 13:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:43:06' and `end` < '2025-02-17 13:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:43:19] Production.INFO: count ==2399 [2025-02-17 13:43:20] Production.ERROR: pbx CDR StartTime 2025-02-17 10:43:06 - End Time 2025-02-17 13:43:06 [2025-02-17 13:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496118', 'tblTempUsageDetail_20' ) start [2025-02-17 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496118', 'tblTempUsageDetail_20' ) end [2025-02-17 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496118', 'tblTempVendorCDR_20' ) start [2025-02-17 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496118', 'tblTempVendorCDR_20' ) end [2025-02-17 13:43:20] Production.INFO: ProcessCDR(1,14496118,1,1,2) [2025-02-17 13:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496118', 'tblTempUsageDetail_20' ) start [2025-02-17 13:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496118', 'tblTempUsageDetail_20' ) end [2025-02-17 13:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:43:24] Production.INFO: ==887== Releasing lock... [2025-02-17 13:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:43:24] Production.INFO: 46 MB #Memory Used# [2025-02-17 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:44:05 [end_date_ymd] => 2025-02-17 13:44:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 10:44:05' and `end` < '2025-02-17 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-02-17 13:44:18] Production.INFO: count ==2394 [2025-02-17 13:44:19] Production.ERROR: pbx CDR StartTime 2025-02-17 10:44:05 - End Time 2025-02-17 13:44:05 [2025-02-17 13:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496123', 'tblTempUsageDetail_20' ) start [2025-02-17 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496123', 'tblTempUsageDetail_20' ) end [2025-02-17 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496123', 'tblTempVendorCDR_20' ) start [2025-02-17 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496123', 'tblTempVendorCDR_20' ) end [2025-02-17 13:44:19] Production.INFO: ProcessCDR(1,14496123,1,1,2) [2025-02-17 13:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496123', 'tblTempUsageDetail_20' ) start [2025-02-17 13:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496123', 'tblTempUsageDetail_20' ) end [2025-02-17 13:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:44:23] Production.INFO: ==960== Releasing lock... [2025-02-17 13:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:44:23] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:45:05 [end_date_ymd] => 2025-02-17 13:45:05 [RateCDR] => 1 ) [2025-02-17 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:45:05' and `end` < '2025-02-17 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:45:19] Production.INFO: count ==2386 [2025-02-17 13:45:20] Production.ERROR: pbx CDR StartTime 2025-02-17 10:45:05 - End Time 2025-02-17 13:45:05 [2025-02-17 13:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496128', 'tblTempUsageDetail_20' ) start [2025-02-17 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496128', 'tblTempUsageDetail_20' ) end [2025-02-17 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496128', 'tblTempVendorCDR_20' ) start [2025-02-17 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496128', 'tblTempVendorCDR_20' ) end [2025-02-17 13:45:20] Production.INFO: ProcessCDR(1,14496128,1,1,2) [2025-02-17 13:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496128', 'tblTempUsageDetail_20' ) start [2025-02-17 13:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496128', 'tblTempUsageDetail_20' ) end [2025-02-17 13:45:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:45:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:45:25] Production.INFO: ==1044== Releasing lock... [2025-02-17 13:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:45:25] Production.INFO: 46 MB #Memory Used# [2025-02-17 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:46:05 [end_date_ymd] => 2025-02-17 13:46:05 [RateCDR] => 1 ) [2025-02-17 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:46:05' and `end` < '2025-02-17 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:46:18] Production.INFO: count ==2368 [2025-02-17 13:46:19] Production.ERROR: pbx CDR StartTime 2025-02-17 10:46:05 - End Time 2025-02-17 13:46:05 [2025-02-17 13:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496133', 'tblTempUsageDetail_20' ) start [2025-02-17 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496133', 'tblTempUsageDetail_20' ) end [2025-02-17 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496133', 'tblTempVendorCDR_20' ) start [2025-02-17 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496133', 'tblTempVendorCDR_20' ) end [2025-02-17 13:46:19] Production.INFO: ProcessCDR(1,14496133,1,1,2) [2025-02-17 13:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496133', 'tblTempUsageDetail_20' ) start [2025-02-17 13:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496133', 'tblTempUsageDetail_20' ) end [2025-02-17 13:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:46:22] Production.INFO: ==1118== Releasing lock... [2025-02-17 13:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:46:22] Production.INFO: 45.75 MB #Memory Used# [2025-02-17 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:47:05 [end_date_ymd] => 2025-02-17 13:47:05 [RateCDR] => 1 ) [2025-02-17 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:47:05' and `end` < '2025-02-17 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:47:18] Production.INFO: count ==2360 [2025-02-17 13:47:19] Production.ERROR: pbx CDR StartTime 2025-02-17 10:47:05 - End Time 2025-02-17 13:47:05 [2025-02-17 13:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496138', 'tblTempUsageDetail_20' ) start [2025-02-17 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496138', 'tblTempUsageDetail_20' ) end [2025-02-17 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496138', 'tblTempVendorCDR_20' ) start [2025-02-17 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496138', 'tblTempVendorCDR_20' ) end [2025-02-17 13:47:19] Production.INFO: ProcessCDR(1,14496138,1,1,2) [2025-02-17 13:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496138', 'tblTempUsageDetail_20' ) start [2025-02-17 13:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496138', 'tblTempUsageDetail_20' ) end [2025-02-17 13:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:47:24] Production.INFO: ==1197== Releasing lock... [2025-02-17 13:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:47:24] Production.INFO: 46 MB #Memory Used# [2025-02-17 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:48:05 [end_date_ymd] => 2025-02-17 13:48:05 [RateCDR] => 1 ) [2025-02-17 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:48:05' and `end` < '2025-02-17 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:48:18] Production.INFO: count ==2352 [2025-02-17 13:48:19] Production.ERROR: pbx CDR StartTime 2025-02-17 10:48:05 - End Time 2025-02-17 13:48:05 [2025-02-17 13:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496143', 'tblTempUsageDetail_20' ) start [2025-02-17 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496143', 'tblTempUsageDetail_20' ) end [2025-02-17 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496143', 'tblTempVendorCDR_20' ) start [2025-02-17 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496143', 'tblTempVendorCDR_20' ) end [2025-02-17 13:48:19] Production.INFO: ProcessCDR(1,14496143,1,1,2) [2025-02-17 13:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496143', 'tblTempUsageDetail_20' ) start [2025-02-17 13:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496143', 'tblTempUsageDetail_20' ) end [2025-02-17 13:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:48:22] Production.INFO: ==1286== Releasing lock... [2025-02-17 13:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:48:22] Production.INFO: 45.75 MB #Memory Used# [2025-02-17 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:49:05 [end_date_ymd] => 2025-02-17 13:49:05 [RateCDR] => 1 ) [2025-02-17 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:49:05' and `end` < '2025-02-17 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:49:19] Production.INFO: count ==2333 [2025-02-17 13:49:19] Production.ERROR: pbx CDR StartTime 2025-02-17 10:49:05 - End Time 2025-02-17 13:49:05 [2025-02-17 13:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496148', 'tblTempUsageDetail_20' ) start [2025-02-17 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496148', 'tblTempUsageDetail_20' ) end [2025-02-17 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496148', 'tblTempVendorCDR_20' ) start [2025-02-17 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496148', 'tblTempVendorCDR_20' ) end [2025-02-17 13:49:20] Production.INFO: ProcessCDR(1,14496148,1,1,2) [2025-02-17 13:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496148', 'tblTempUsageDetail_20' ) start [2025-02-17 13:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496148', 'tblTempUsageDetail_20' ) end [2025-02-17 13:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:49:24] Production.INFO: ==1363== Releasing lock... [2025-02-17 13:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:49:24] Production.INFO: 45.5 MB #Memory Used# [2025-02-17 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:50:06 [end_date_ymd] => 2025-02-17 13:50:06 [RateCDR] => 1 ) [2025-02-17 13:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:50:06' and `end` < '2025-02-17 13:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:50:19] Production.INFO: count ==2331 [2025-02-17 13:50:20] Production.ERROR: pbx CDR StartTime 2025-02-17 10:50:06 - End Time 2025-02-17 13:50:06 [2025-02-17 13:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496153', 'tblTempUsageDetail_20' ) start [2025-02-17 13:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496153', 'tblTempUsageDetail_20' ) end [2025-02-17 13:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496153', 'tblTempVendorCDR_20' ) start [2025-02-17 13:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496153', 'tblTempVendorCDR_20' ) end [2025-02-17 13:50:20] Production.INFO: ProcessCDR(1,14496153,1,1,2) [2025-02-17 13:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496153', 'tblTempUsageDetail_20' ) start [2025-02-17 13:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496153', 'tblTempUsageDetail_20' ) end [2025-02-17 13:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:50:25] Production.INFO: ==1435== Releasing lock... [2025-02-17 13:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:50:25] Production.INFO: 45.5 MB #Memory Used# [2025-02-17 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:51:05 [end_date_ymd] => 2025-02-17 13:51:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 10:51:05' and `end` < '2025-02-17 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-02-17 13:51:18] Production.INFO: count ==2310 [2025-02-17 13:51:19] Production.ERROR: pbx CDR StartTime 2025-02-17 10:51:05 - End Time 2025-02-17 13:51:05 [2025-02-17 13:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496159', 'tblTempUsageDetail_20' ) start [2025-02-17 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496159', 'tblTempUsageDetail_20' ) end [2025-02-17 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496159', 'tblTempVendorCDR_20' ) start [2025-02-17 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496159', 'tblTempVendorCDR_20' ) end [2025-02-17 13:51:19] Production.INFO: ProcessCDR(1,14496159,1,1,2) [2025-02-17 13:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496159', 'tblTempUsageDetail_20' ) start [2025-02-17 13:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496159', 'tblTempUsageDetail_20' ) end [2025-02-17 13:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:51:23] Production.INFO: ==1541== Releasing lock... [2025-02-17 13:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:51:23] Production.INFO: 45.5 MB #Memory Used# [2025-02-17 13:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:52:06 [end_date_ymd] => 2025-02-17 13:52:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 10:52:06' and `end` < '2025-02-17 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-02-17 13:52:19] Production.INFO: count ==2296 [2025-02-17 13:52:20] Production.ERROR: pbx CDR StartTime 2025-02-17 10:52:06 - End Time 2025-02-17 13:52:06 [2025-02-17 13:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496164', 'tblTempUsageDetail_20' ) start [2025-02-17 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496164', 'tblTempUsageDetail_20' ) end [2025-02-17 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496164', 'tblTempVendorCDR_20' ) start [2025-02-17 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496164', 'tblTempVendorCDR_20' ) end [2025-02-17 13:52:20] Production.INFO: ProcessCDR(1,14496164,1,1,2) [2025-02-17 13:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496164', 'tblTempUsageDetail_20' ) start [2025-02-17 13:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496164', 'tblTempUsageDetail_20' ) end [2025-02-17 13:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:52:23] Production.INFO: ==1657== Releasing lock... [2025-02-17 13:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:52:23] Production.INFO: 45.25 MB #Memory Used# [2025-02-17 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:53:05 [end_date_ymd] => 2025-02-17 13:53:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 10:53:05' and `end` < '2025-02-17 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-02-17 13:53:18] Production.INFO: count ==2289 [2025-02-17 13:53:19] Production.ERROR: pbx CDR StartTime 2025-02-17 10:53:05 - End Time 2025-02-17 13:53:05 [2025-02-17 13:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496169', 'tblTempUsageDetail_20' ) start [2025-02-17 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496169', 'tblTempUsageDetail_20' ) end [2025-02-17 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496169', 'tblTempVendorCDR_20' ) start [2025-02-17 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496169', 'tblTempVendorCDR_20' ) end [2025-02-17 13:53:19] Production.INFO: ProcessCDR(1,14496169,1,1,2) [2025-02-17 13:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496169', 'tblTempUsageDetail_20' ) start [2025-02-17 13:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496169', 'tblTempUsageDetail_20' ) end [2025-02-17 13:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:53:24] Production.INFO: ==1729== Releasing lock... [2025-02-17 13:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:53:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-17 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:54:05 [end_date_ymd] => 2025-02-17 13:54:05 [RateCDR] => 1 ) [2025-02-17 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:54:05' and `end` < '2025-02-17 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:54:19] Production.INFO: count ==2272 [2025-02-17 13:54:19] Production.ERROR: pbx CDR StartTime 2025-02-17 10:54:05 - End Time 2025-02-17 13:54:05 [2025-02-17 13:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496174', 'tblTempUsageDetail_20' ) start [2025-02-17 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496174', 'tblTempUsageDetail_20' ) end [2025-02-17 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496174', 'tblTempVendorCDR_20' ) start [2025-02-17 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496174', 'tblTempVendorCDR_20' ) end [2025-02-17 13:54:19] Production.INFO: ProcessCDR(1,14496174,1,1,2) [2025-02-17 13:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496174', 'tblTempUsageDetail_20' ) start [2025-02-17 13:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496174', 'tblTempUsageDetail_20' ) end [2025-02-17 13:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:54:23] Production.INFO: ==1803== Releasing lock... [2025-02-17 13:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:54:23] Production.INFO: 45 MB #Memory Used# [2025-02-17 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:55:05 [end_date_ymd] => 2025-02-17 13:55:05 [RateCDR] => 1 ) [2025-02-17 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:55:05' and `end` < '2025-02-17 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:55:18] Production.INFO: count ==2252 [2025-02-17 13:55:19] Production.ERROR: pbx CDR StartTime 2025-02-17 10:55:05 - End Time 2025-02-17 13:55:05 [2025-02-17 13:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496179', 'tblTempUsageDetail_20' ) start [2025-02-17 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496179', 'tblTempUsageDetail_20' ) end [2025-02-17 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496179', 'tblTempVendorCDR_20' ) start [2025-02-17 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496179', 'tblTempVendorCDR_20' ) end [2025-02-17 13:55:19] Production.INFO: ProcessCDR(1,14496179,1,1,2) [2025-02-17 13:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496179', 'tblTempUsageDetail_20' ) start [2025-02-17 13:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496179', 'tblTempUsageDetail_20' ) end [2025-02-17 13:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:55:22] Production.INFO: ==1879== Releasing lock... [2025-02-17 13:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:55:22] Production.INFO: 45 MB #Memory Used# [2025-02-17 13:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:56:06 [end_date_ymd] => 2025-02-17 13:56:06 [RateCDR] => 1 ) [2025-02-17 13:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:56:06' and `end` < '2025-02-17 13:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:56:20] Production.INFO: count ==2260 [2025-02-17 13:56:21] Production.ERROR: pbx CDR StartTime 2025-02-17 10:56:06 - End Time 2025-02-17 13:56:06 [2025-02-17 13:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496184', 'tblTempUsageDetail_20' ) start [2025-02-17 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496184', 'tblTempUsageDetail_20' ) end [2025-02-17 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496184', 'tblTempVendorCDR_20' ) start [2025-02-17 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496184', 'tblTempVendorCDR_20' ) end [2025-02-17 13:56:21] Production.INFO: ProcessCDR(1,14496184,1,1,2) [2025-02-17 13:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496184', 'tblTempUsageDetail_20' ) start [2025-02-17 13:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496184', 'tblTempUsageDetail_20' ) end [2025-02-17 13:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:56:24] Production.INFO: ==1952== Releasing lock... [2025-02-17 13:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:56:24] Production.INFO: 45 MB #Memory Used# [2025-02-17 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:57:05 [end_date_ymd] => 2025-02-17 13:57:05 [RateCDR] => 1 ) [2025-02-17 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:57:05' and `end` < '2025-02-17 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:57:18] Production.INFO: count ==2259 [2025-02-17 13:57:19] Production.ERROR: pbx CDR StartTime 2025-02-17 10:57:05 - End Time 2025-02-17 13:57:05 [2025-02-17 13:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496189', 'tblTempUsageDetail_20' ) start [2025-02-17 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496189', 'tblTempUsageDetail_20' ) end [2025-02-17 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496189', 'tblTempVendorCDR_20' ) start [2025-02-17 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496189', 'tblTempVendorCDR_20' ) end [2025-02-17 13:57:19] Production.INFO: ProcessCDR(1,14496189,1,1,2) [2025-02-17 13:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496189', 'tblTempUsageDetail_20' ) start [2025-02-17 13:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496189', 'tblTempUsageDetail_20' ) end [2025-02-17 13:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:57:22] Production.INFO: ==2031== Releasing lock... [2025-02-17 13:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:57:22] Production.INFO: 45 MB #Memory Used# [2025-02-17 13:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:58:06 [end_date_ymd] => 2025-02-17 13:58:06 [RateCDR] => 1 ) [2025-02-17 13:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:58:06' and `end` < '2025-02-17 13:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:58:19] Production.INFO: count ==2258 [2025-02-17 13:58:20] Production.ERROR: pbx CDR StartTime 2025-02-17 10:58:06 - End Time 2025-02-17 13:58:06 [2025-02-17 13:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496194', 'tblTempUsageDetail_20' ) start [2025-02-17 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496194', 'tblTempUsageDetail_20' ) end [2025-02-17 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496194', 'tblTempVendorCDR_20' ) start [2025-02-17 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496194', 'tblTempVendorCDR_20' ) end [2025-02-17 13:58:20] Production.INFO: ProcessCDR(1,14496194,1,1,2) [2025-02-17 13:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496194', 'tblTempUsageDetail_20' ) start [2025-02-17 13:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496194', 'tblTempUsageDetail_20' ) end [2025-02-17 13:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:58:25] Production.INFO: ==2107== Releasing lock... [2025-02-17 13:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:58:25] Production.INFO: 45 MB #Memory Used# [2025-02-17 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 10:59:05 [end_date_ymd] => 2025-02-17 13:59:05 [RateCDR] => 1 ) [2025-02-17 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 10:59:05' and `end` < '2025-02-17 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 13:59:18] Production.INFO: count ==2273 [2025-02-17 13:59:19] Production.ERROR: pbx CDR StartTime 2025-02-17 10:59:05 - End Time 2025-02-17 13:59:05 [2025-02-17 13:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496199', 'tblTempUsageDetail_20' ) start [2025-02-17 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496199', 'tblTempUsageDetail_20' ) end [2025-02-17 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496199', 'tblTempVendorCDR_20' ) start [2025-02-17 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496199', 'tblTempVendorCDR_20' ) end [2025-02-17 13:59:19] Production.INFO: ProcessCDR(1,14496199,1,1,2) [2025-02-17 13:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 13:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 13:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496199', 'tblTempUsageDetail_20' ) start [2025-02-17 13:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496199', 'tblTempUsageDetail_20' ) end [2025-02-17 13:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 13:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 13:59:24] Production.INFO: ==2183== Releasing lock... [2025-02-17 13:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 13:59:24] Production.INFO: 45 MB #Memory Used# [2025-02-17 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:00:06 [end_date_ymd] => 2025-02-17 14:00:06 [RateCDR] => 1 ) [2025-02-17 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:00:06' and `end` < '2025-02-17 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:00:19] Production.INFO: count ==2243 [2025-02-17 14:00:20] Production.ERROR: pbx CDR StartTime 2025-02-17 11:00:06 - End Time 2025-02-17 14:00:06 [2025-02-17 14:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496205', 'tblTempUsageDetail_20' ) start [2025-02-17 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496205', 'tblTempUsageDetail_20' ) end [2025-02-17 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496205', 'tblTempVendorCDR_20' ) start [2025-02-17 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496205', 'tblTempVendorCDR_20' ) end [2025-02-17 14:00:20] Production.INFO: ProcessCDR(1,14496205,1,1,2) [2025-02-17 14:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496205', 'tblTempUsageDetail_20' ) start [2025-02-17 14:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496205', 'tblTempUsageDetail_20' ) end [2025-02-17 14:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:00:24] Production.INFO: ==2260== Releasing lock... [2025-02-17 14:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:00:24] Production.INFO: 45 MB #Memory Used# [2025-02-17 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:01:05 [end_date_ymd] => 2025-02-17 14:01:05 [RateCDR] => 1 ) [2025-02-17 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:01:05' and `end` < '2025-02-17 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:01:18] Production.INFO: count ==2230 [2025-02-17 14:01:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:01:05 - End Time 2025-02-17 14:01:05 [2025-02-17 14:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496210', 'tblTempUsageDetail_20' ) start [2025-02-17 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496210', 'tblTempUsageDetail_20' ) end [2025-02-17 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496210', 'tblTempVendorCDR_20' ) start [2025-02-17 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496210', 'tblTempVendorCDR_20' ) end [2025-02-17 14:01:19] Production.INFO: ProcessCDR(1,14496210,1,1,2) [2025-02-17 14:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496210', 'tblTempUsageDetail_20' ) start [2025-02-17 14:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496210', 'tblTempUsageDetail_20' ) end [2025-02-17 14:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:01:23] Production.INFO: ==2345== Releasing lock... [2025-02-17 14:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:01:23] Production.INFO: 44.75 MB #Memory Used# [2025-02-17 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:02:05 [end_date_ymd] => 2025-02-17 14:02:05 [RateCDR] => 1 ) [2025-02-17 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:02:05' and `end` < '2025-02-17 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:02:19] Production.INFO: count ==2223 [2025-02-17 14:02:20] Production.ERROR: pbx CDR StartTime 2025-02-17 11:02:05 - End Time 2025-02-17 14:02:05 [2025-02-17 14:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496215', 'tblTempUsageDetail_20' ) start [2025-02-17 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496215', 'tblTempUsageDetail_20' ) end [2025-02-17 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496215', 'tblTempVendorCDR_20' ) start [2025-02-17 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496215', 'tblTempVendorCDR_20' ) end [2025-02-17 14:02:20] Production.INFO: ProcessCDR(1,14496215,1,1,2) [2025-02-17 14:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496215', 'tblTempUsageDetail_20' ) start [2025-02-17 14:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496215', 'tblTempUsageDetail_20' ) end [2025-02-17 14:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:02:24] Production.INFO: ==2419== Releasing lock... [2025-02-17 14:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:02:24] Production.INFO: 44.75 MB #Memory Used# [2025-02-17 14:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:03:06 [end_date_ymd] => 2025-02-17 14:03:06 [RateCDR] => 1 ) [2025-02-17 14:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:03:06' and `end` < '2025-02-17 14:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:03:20] Production.INFO: count ==2225 [2025-02-17 14:03:21] Production.ERROR: pbx CDR StartTime 2025-02-17 11:03:06 - End Time 2025-02-17 14:03:06 [2025-02-17 14:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496220', 'tblTempUsageDetail_20' ) start [2025-02-17 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496220', 'tblTempUsageDetail_20' ) end [2025-02-17 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496220', 'tblTempVendorCDR_20' ) start [2025-02-17 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496220', 'tblTempVendorCDR_20' ) end [2025-02-17 14:03:21] Production.INFO: ProcessCDR(1,14496220,1,1,2) [2025-02-17 14:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496220', 'tblTempUsageDetail_20' ) start [2025-02-17 14:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496220', 'tblTempUsageDetail_20' ) end [2025-02-17 14:03:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:03:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:03:26] Production.INFO: ==2494== Releasing lock... [2025-02-17 14:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:03:26] Production.INFO: 45 MB #Memory Used# [2025-02-17 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:04:06 [end_date_ymd] => 2025-02-17 14:04:06 [RateCDR] => 1 ) [2025-02-17 14:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:04:06' and `end` < '2025-02-17 14:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:04:19] Production.INFO: count ==2224 [2025-02-17 14:04:20] Production.ERROR: pbx CDR StartTime 2025-02-17 11:04:06 - End Time 2025-02-17 14:04:06 [2025-02-17 14:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496225', 'tblTempUsageDetail_20' ) start [2025-02-17 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496225', 'tblTempUsageDetail_20' ) end [2025-02-17 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496225', 'tblTempVendorCDR_20' ) start [2025-02-17 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496225', 'tblTempVendorCDR_20' ) end [2025-02-17 14:04:20] Production.INFO: ProcessCDR(1,14496225,1,1,2) [2025-02-17 14:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496225', 'tblTempUsageDetail_20' ) start [2025-02-17 14:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496225', 'tblTempUsageDetail_20' ) end [2025-02-17 14:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:04:24] Production.INFO: ==2567== Releasing lock... [2025-02-17 14:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:04:24] Production.INFO: 44.75 MB #Memory Used# [2025-02-17 14:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:05:06 [end_date_ymd] => 2025-02-17 14:05:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 11:05:06' and `end` < '2025-02-17 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-02-17 14:05:19] Production.INFO: count ==2229 [2025-02-17 14:05:20] Production.ERROR: pbx CDR StartTime 2025-02-17 11:05:06 - End Time 2025-02-17 14:05:06 [2025-02-17 14:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496230', 'tblTempUsageDetail_20' ) start [2025-02-17 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496230', 'tblTempUsageDetail_20' ) end [2025-02-17 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496230', 'tblTempVendorCDR_20' ) start [2025-02-17 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496230', 'tblTempVendorCDR_20' ) end [2025-02-17 14:05:20] Production.INFO: ProcessCDR(1,14496230,1,1,2) [2025-02-17 14:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496230', 'tblTempUsageDetail_20' ) start [2025-02-17 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496230', 'tblTempUsageDetail_20' ) end [2025-02-17 14:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:05:25] Production.INFO: ==2640== Releasing lock... [2025-02-17 14:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:05:25] Production.INFO: 44.75 MB #Memory Used# [2025-02-17 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:06:06 [end_date_ymd] => 2025-02-17 14:06:06 [RateCDR] => 1 ) [2025-02-17 14:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:06:06' and `end` < '2025-02-17 14:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:06:19] Production.INFO: count ==2220 [2025-02-17 14:06:20] Production.ERROR: pbx CDR StartTime 2025-02-17 11:06:06 - End Time 2025-02-17 14:06:06 [2025-02-17 14:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496235', 'tblTempUsageDetail_20' ) start [2025-02-17 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496235', 'tblTempUsageDetail_20' ) end [2025-02-17 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496235', 'tblTempVendorCDR_20' ) start [2025-02-17 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496235', 'tblTempVendorCDR_20' ) end [2025-02-17 14:06:20] Production.INFO: ProcessCDR(1,14496235,1,1,2) [2025-02-17 14:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496235', 'tblTempUsageDetail_20' ) start [2025-02-17 14:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496235', 'tblTempUsageDetail_20' ) end [2025-02-17 14:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:06:23] Production.INFO: ==2713== Releasing lock... [2025-02-17 14:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:06:23] Production.INFO: 44.75 MB #Memory Used# [2025-02-17 14:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:07:06 [end_date_ymd] => 2025-02-17 14:07:06 [RateCDR] => 1 ) [2025-02-17 14:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:07:06' and `end` < '2025-02-17 14:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:07:19] Production.INFO: count ==2213 [2025-02-17 14:07:20] Production.ERROR: pbx CDR StartTime 2025-02-17 11:07:06 - End Time 2025-02-17 14:07:06 [2025-02-17 14:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496240', 'tblTempUsageDetail_20' ) start [2025-02-17 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496240', 'tblTempUsageDetail_20' ) end [2025-02-17 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496240', 'tblTempVendorCDR_20' ) start [2025-02-17 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496240', 'tblTempVendorCDR_20' ) end [2025-02-17 14:07:20] Production.INFO: ProcessCDR(1,14496240,1,1,2) [2025-02-17 14:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496240', 'tblTempUsageDetail_20' ) start [2025-02-17 14:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496240', 'tblTempUsageDetail_20' ) end [2025-02-17 14:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:07:24] Production.INFO: ==2784== Releasing lock... [2025-02-17 14:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:07:24] Production.INFO: 44.75 MB #Memory Used# [2025-02-17 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:08:06 [end_date_ymd] => 2025-02-17 14:08:06 [RateCDR] => 1 ) [2025-02-17 14:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:08:06' and `end` < '2025-02-17 14:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:08:20] Production.INFO: count ==2205 [2025-02-17 14:08:20] Production.ERROR: pbx CDR StartTime 2025-02-17 11:08:06 - End Time 2025-02-17 14:08:06 [2025-02-17 14:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496245', 'tblTempUsageDetail_20' ) start [2025-02-17 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496245', 'tblTempUsageDetail_20' ) end [2025-02-17 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496245', 'tblTempVendorCDR_20' ) start [2025-02-17 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496245', 'tblTempVendorCDR_20' ) end [2025-02-17 14:08:20] Production.INFO: ProcessCDR(1,14496245,1,1,2) [2025-02-17 14:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496245', 'tblTempUsageDetail_20' ) start [2025-02-17 14:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496245', 'tblTempUsageDetail_20' ) end [2025-02-17 14:08:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:08:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:08:25] Production.INFO: ==2897== Releasing lock... [2025-02-17 14:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:08:25] Production.INFO: 44.75 MB #Memory Used# [2025-02-17 14:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:09:06 [end_date_ymd] => 2025-02-17 14:09:06 [RateCDR] => 1 ) [2025-02-17 14:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:09:06' and `end` < '2025-02-17 14:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:09:19] Production.INFO: count ==2189 [2025-02-17 14:09:20] Production.ERROR: pbx CDR StartTime 2025-02-17 11:09:06 - End Time 2025-02-17 14:09:06 [2025-02-17 14:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496250', 'tblTempUsageDetail_20' ) start [2025-02-17 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496250', 'tblTempUsageDetail_20' ) end [2025-02-17 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496250', 'tblTempVendorCDR_20' ) start [2025-02-17 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496250', 'tblTempVendorCDR_20' ) end [2025-02-17 14:09:20] Production.INFO: ProcessCDR(1,14496250,1,1,2) [2025-02-17 14:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496250', 'tblTempUsageDetail_20' ) start [2025-02-17 14:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496250', 'tblTempUsageDetail_20' ) end [2025-02-17 14:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:09:23] Production.INFO: ==2970== Releasing lock... [2025-02-17 14:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:09:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-17 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:10:06 [end_date_ymd] => 2025-02-17 14:10:06 [RateCDR] => 1 ) [2025-02-17 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:10:06' and `end` < '2025-02-17 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:10:20] Production.INFO: count ==2184 [2025-02-17 14:10:21] Production.ERROR: pbx CDR StartTime 2025-02-17 11:10:06 - End Time 2025-02-17 14:10:06 [2025-02-17 14:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496256', 'tblTempUsageDetail_20' ) start [2025-02-17 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496256', 'tblTempUsageDetail_20' ) end [2025-02-17 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496256', 'tblTempVendorCDR_20' ) start [2025-02-17 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496256', 'tblTempVendorCDR_20' ) end [2025-02-17 14:10:21] Production.INFO: ProcessCDR(1,14496256,1,1,2) [2025-02-17 14:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496256', 'tblTempUsageDetail_20' ) start [2025-02-17 14:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496256', 'tblTempUsageDetail_20' ) end [2025-02-17 14:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:10:24] Production.INFO: ==3045== Releasing lock... [2025-02-17 14:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:10:24] Production.INFO: 44.5 MB #Memory Used# [2025-02-17 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:11:05 [end_date_ymd] => 2025-02-17 14:11:05 [RateCDR] => 1 ) [2025-02-17 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:11:05' and `end` < '2025-02-17 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:11:19] Production.INFO: count ==2183 [2025-02-17 14:11:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:11:05 - End Time 2025-02-17 14:11:05 [2025-02-17 14:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496261', 'tblTempUsageDetail_20' ) start [2025-02-17 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496261', 'tblTempUsageDetail_20' ) end [2025-02-17 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496261', 'tblTempVendorCDR_20' ) start [2025-02-17 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496261', 'tblTempVendorCDR_20' ) end [2025-02-17 14:11:19] Production.INFO: ProcessCDR(1,14496261,1,1,2) [2025-02-17 14:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496261', 'tblTempUsageDetail_20' ) start [2025-02-17 14:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496261', 'tblTempUsageDetail_20' ) end [2025-02-17 14:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:11:23] Production.INFO: ==3125== Releasing lock... [2025-02-17 14:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:11:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-17 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:12:06 [end_date_ymd] => 2025-02-17 14:12:06 [RateCDR] => 1 ) [2025-02-17 14:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:12:06' and `end` < '2025-02-17 14:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:12:19] Production.INFO: count ==2186 [2025-02-17 14:12:20] Production.ERROR: pbx CDR StartTime 2025-02-17 11:12:06 - End Time 2025-02-17 14:12:06 [2025-02-17 14:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496266', 'tblTempUsageDetail_20' ) start [2025-02-17 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496266', 'tblTempUsageDetail_20' ) end [2025-02-17 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496266', 'tblTempVendorCDR_20' ) start [2025-02-17 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496266', 'tblTempVendorCDR_20' ) end [2025-02-17 14:12:20] Production.INFO: ProcessCDR(1,14496266,1,1,2) [2025-02-17 14:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496266', 'tblTempUsageDetail_20' ) start [2025-02-17 14:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496266', 'tblTempUsageDetail_20' ) end [2025-02-17 14:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:12:23] Production.INFO: ==3198== Releasing lock... [2025-02-17 14:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:12:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-17 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:13:05 [end_date_ymd] => 2025-02-17 14:13:05 [RateCDR] => 1 ) [2025-02-17 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:13:05' and `end` < '2025-02-17 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:13:19] Production.INFO: count ==2190 [2025-02-17 14:13:20] Production.ERROR: pbx CDR StartTime 2025-02-17 11:13:05 - End Time 2025-02-17 14:13:05 [2025-02-17 14:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496271', 'tblTempUsageDetail_20' ) start [2025-02-17 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496271', 'tblTempUsageDetail_20' ) end [2025-02-17 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496271', 'tblTempVendorCDR_20' ) start [2025-02-17 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496271', 'tblTempVendorCDR_20' ) end [2025-02-17 14:13:20] Production.INFO: ProcessCDR(1,14496271,1,1,2) [2025-02-17 14:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496271', 'tblTempUsageDetail_20' ) start [2025-02-17 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496271', 'tblTempUsageDetail_20' ) end [2025-02-17 14:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:13:23] Production.INFO: ==3267== Releasing lock... [2025-02-17 14:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:13:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-17 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:14:05 [end_date_ymd] => 2025-02-17 14:14:05 [RateCDR] => 1 ) [2025-02-17 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:14:05' and `end` < '2025-02-17 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:14:20] Production.INFO: count ==2202 [2025-02-17 14:14:21] Production.ERROR: pbx CDR StartTime 2025-02-17 11:14:05 - End Time 2025-02-17 14:14:05 [2025-02-17 14:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496276', 'tblTempUsageDetail_20' ) start [2025-02-17 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496276', 'tblTempUsageDetail_20' ) end [2025-02-17 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496276', 'tblTempVendorCDR_20' ) start [2025-02-17 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496276', 'tblTempVendorCDR_20' ) end [2025-02-17 14:14:21] Production.INFO: ProcessCDR(1,14496276,1,1,2) [2025-02-17 14:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496276', 'tblTempUsageDetail_20' ) start [2025-02-17 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496276', 'tblTempUsageDetail_20' ) end [2025-02-17 14:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:14:26] Production.INFO: ==3338== Releasing lock... [2025-02-17 14:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:14:26] Production.INFO: 44.5 MB #Memory Used# [2025-02-17 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:15:05 [end_date_ymd] => 2025-02-17 14:15:05 [RateCDR] => 1 ) [2025-02-17 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:15:05' and `end` < '2025-02-17 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:15:18] Production.INFO: count ==2198 [2025-02-17 14:15:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:15:05 - End Time 2025-02-17 14:15:05 [2025-02-17 14:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496281', 'tblTempUsageDetail_20' ) start [2025-02-17 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496281', 'tblTempUsageDetail_20' ) end [2025-02-17 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496281', 'tblTempVendorCDR_20' ) start [2025-02-17 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496281', 'tblTempVendorCDR_20' ) end [2025-02-17 14:15:19] Production.INFO: ProcessCDR(1,14496281,1,1,2) [2025-02-17 14:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496281', 'tblTempUsageDetail_20' ) start [2025-02-17 14:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496281', 'tblTempUsageDetail_20' ) end [2025-02-17 14:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:15:24] Production.INFO: ==3411== Releasing lock... [2025-02-17 14:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:15:24] Production.INFO: 44.75 MB #Memory Used# [2025-02-17 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:16:05 [end_date_ymd] => 2025-02-17 14:16:05 [RateCDR] => 1 ) [2025-02-17 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:16:05' and `end` < '2025-02-17 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:16:19] Production.INFO: count ==2179 [2025-02-17 14:16:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:16:05 - End Time 2025-02-17 14:16:05 [2025-02-17 14:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496286', 'tblTempUsageDetail_20' ) start [2025-02-17 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496286', 'tblTempUsageDetail_20' ) end [2025-02-17 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496286', 'tblTempVendorCDR_20' ) start [2025-02-17 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496286', 'tblTempVendorCDR_20' ) end [2025-02-17 14:16:20] Production.INFO: ProcessCDR(1,14496286,1,1,2) [2025-02-17 14:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496286', 'tblTempUsageDetail_20' ) start [2025-02-17 14:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496286', 'tblTempUsageDetail_20' ) end [2025-02-17 14:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:16:23] Production.INFO: ==3486== Releasing lock... [2025-02-17 14:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:16:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-17 14:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:17:04 [end_date_ymd] => 2025-02-17 14:17:04 [RateCDR] => 1 ) [2025-02-17 14:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:17:04' and `end` < '2025-02-17 14:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:17:18] Production.INFO: count ==2179 [2025-02-17 14:17:18] Production.ERROR: pbx CDR StartTime 2025-02-17 11:17:04 - End Time 2025-02-17 14:17:04 [2025-02-17 14:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496291', 'tblTempUsageDetail_20' ) start [2025-02-17 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496291', 'tblTempUsageDetail_20' ) end [2025-02-17 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496291', 'tblTempVendorCDR_20' ) start [2025-02-17 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496291', 'tblTempVendorCDR_20' ) end [2025-02-17 14:17:18] Production.INFO: ProcessCDR(1,14496291,1,1,2) [2025-02-17 14:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496291', 'tblTempUsageDetail_20' ) start [2025-02-17 14:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496291', 'tblTempUsageDetail_20' ) end [2025-02-17 14:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:17:21] Production.INFO: ==3558== Releasing lock... [2025-02-17 14:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:17:21] Production.INFO: 44.5 MB #Memory Used# [2025-02-17 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:18:05 [end_date_ymd] => 2025-02-17 14:18:05 [RateCDR] => 1 ) [2025-02-17 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:18:05' and `end` < '2025-02-17 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:18:19] Production.INFO: count ==2178 [2025-02-17 14:18:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:18:05 - End Time 2025-02-17 14:18:05 [2025-02-17 14:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496296', 'tblTempUsageDetail_20' ) start [2025-02-17 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496296', 'tblTempUsageDetail_20' ) end [2025-02-17 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496296', 'tblTempVendorCDR_20' ) start [2025-02-17 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496296', 'tblTempVendorCDR_20' ) end [2025-02-17 14:18:20] Production.INFO: ProcessCDR(1,14496296,1,1,2) [2025-02-17 14:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496296', 'tblTempUsageDetail_20' ) start [2025-02-17 14:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496296', 'tblTempUsageDetail_20' ) end [2025-02-17 14:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:18:23] Production.INFO: ==3628== Releasing lock... [2025-02-17 14:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:18:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-17 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:19:05 [end_date_ymd] => 2025-02-17 14:19:05 [RateCDR] => 1 ) [2025-02-17 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:19:05' and `end` < '2025-02-17 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:19:19] Production.INFO: count ==2179 [2025-02-17 14:19:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:19:05 - End Time 2025-02-17 14:19:05 [2025-02-17 14:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496301', 'tblTempUsageDetail_20' ) start [2025-02-17 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496301', 'tblTempUsageDetail_20' ) end [2025-02-17 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496301', 'tblTempVendorCDR_20' ) start [2025-02-17 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496301', 'tblTempVendorCDR_20' ) end [2025-02-17 14:19:20] Production.INFO: ProcessCDR(1,14496301,1,1,2) [2025-02-17 14:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496301', 'tblTempUsageDetail_20' ) start [2025-02-17 14:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496301', 'tblTempUsageDetail_20' ) end [2025-02-17 14:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:19:24] Production.INFO: ==3700== Releasing lock... [2025-02-17 14:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:19:24] Production.INFO: 44.5 MB #Memory Used# [2025-02-17 14:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:20:07 [end_date_ymd] => 2025-02-17 14:20:07 [RateCDR] => 1 ) [2025-02-17 14:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:20:07' and `end` < '2025-02-17 14:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:20:20] Production.INFO: count ==2176 [2025-02-17 14:20:21] Production.ERROR: pbx CDR StartTime 2025-02-17 11:20:07 - End Time 2025-02-17 14:20:07 [2025-02-17 14:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496307', 'tblTempUsageDetail_20' ) start [2025-02-17 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496307', 'tblTempUsageDetail_20' ) end [2025-02-17 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496307', 'tblTempVendorCDR_20' ) start [2025-02-17 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496307', 'tblTempVendorCDR_20' ) end [2025-02-17 14:20:21] Production.INFO: ProcessCDR(1,14496307,1,1,2) [2025-02-17 14:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496307', 'tblTempUsageDetail_20' ) start [2025-02-17 14:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496307', 'tblTempUsageDetail_20' ) end [2025-02-17 14:20:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:20:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:20:26] Production.INFO: ==3775== Releasing lock... [2025-02-17 14:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:20:26] Production.INFO: 44.5 MB #Memory Used# [2025-02-17 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:21:05 [end_date_ymd] => 2025-02-17 14:21:05 [RateCDR] => 1 ) [2025-02-17 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:21:05' and `end` < '2025-02-17 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:21:19] Production.INFO: count ==2146 [2025-02-17 14:21:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:21:05 - End Time 2025-02-17 14:21:05 [2025-02-17 14:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496312', 'tblTempUsageDetail_20' ) start [2025-02-17 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496312', 'tblTempUsageDetail_20' ) end [2025-02-17 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496312', 'tblTempVendorCDR_20' ) start [2025-02-17 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496312', 'tblTempVendorCDR_20' ) end [2025-02-17 14:21:19] Production.INFO: ProcessCDR(1,14496312,1,1,2) [2025-02-17 14:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496312', 'tblTempUsageDetail_20' ) start [2025-02-17 14:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496312', 'tblTempUsageDetail_20' ) end [2025-02-17 14:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:21:23] Production.INFO: ==3848== Releasing lock... [2025-02-17 14:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:21:23] Production.INFO: 44.25 MB #Memory Used# [2025-02-17 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:22:05 [end_date_ymd] => 2025-02-17 14:22:05 [RateCDR] => 1 ) [2025-02-17 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:22:05' and `end` < '2025-02-17 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:22:19] Production.INFO: count ==2147 [2025-02-17 14:22:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:22:05 - End Time 2025-02-17 14:22:05 [2025-02-17 14:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496317', 'tblTempUsageDetail_20' ) start [2025-02-17 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496317', 'tblTempUsageDetail_20' ) end [2025-02-17 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496317', 'tblTempVendorCDR_20' ) start [2025-02-17 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496317', 'tblTempVendorCDR_20' ) end [2025-02-17 14:22:20] Production.INFO: ProcessCDR(1,14496317,1,1,2) [2025-02-17 14:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496317', 'tblTempUsageDetail_20' ) start [2025-02-17 14:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496317', 'tblTempUsageDetail_20' ) end [2025-02-17 14:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:22:24] Production.INFO: ==3920== Releasing lock... [2025-02-17 14:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:22:24] Production.INFO: 44.25 MB #Memory Used# [2025-02-17 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:23:05 [end_date_ymd] => 2025-02-17 14:23:05 [RateCDR] => 1 ) [2025-02-17 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:23:05' and `end` < '2025-02-17 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:23:18] Production.INFO: count ==2148 [2025-02-17 14:23:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:23:05 - End Time 2025-02-17 14:23:05 [2025-02-17 14:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496322', 'tblTempUsageDetail_20' ) start [2025-02-17 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496322', 'tblTempUsageDetail_20' ) end [2025-02-17 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496322', 'tblTempVendorCDR_20' ) start [2025-02-17 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496322', 'tblTempVendorCDR_20' ) end [2025-02-17 14:23:19] Production.INFO: ProcessCDR(1,14496322,1,1,2) [2025-02-17 14:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496322', 'tblTempUsageDetail_20' ) start [2025-02-17 14:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496322', 'tblTempUsageDetail_20' ) end [2025-02-17 14:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:23:24] Production.INFO: ==4031== Releasing lock... [2025-02-17 14:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:23:24] Production.INFO: 44.25 MB #Memory Used# [2025-02-17 14:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:24:06 [end_date_ymd] => 2025-02-17 14:24:06 [RateCDR] => 1 ) [2025-02-17 14:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:24:06' and `end` < '2025-02-17 14:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:24:19] Production.INFO: count ==2140 [2025-02-17 14:24:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:24:06 - End Time 2025-02-17 14:24:06 [2025-02-17 14:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496327', 'tblTempUsageDetail_20' ) start [2025-02-17 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496327', 'tblTempUsageDetail_20' ) end [2025-02-17 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496327', 'tblTempVendorCDR_20' ) start [2025-02-17 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496327', 'tblTempVendorCDR_20' ) end [2025-02-17 14:24:20] Production.INFO: ProcessCDR(1,14496327,1,1,2) [2025-02-17 14:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496327', 'tblTempUsageDetail_20' ) start [2025-02-17 14:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496327', 'tblTempUsageDetail_20' ) end [2025-02-17 14:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:24:23] Production.INFO: ==4111== Releasing lock... [2025-02-17 14:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:24:23] Production.INFO: 44.25 MB #Memory Used# [2025-02-17 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:25:05 [end_date_ymd] => 2025-02-17 14:25:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 11:25:05' and `end` < '2025-02-17 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-02-17 14:25:18] Production.INFO: count ==2132 [2025-02-17 14:25:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:25:05 - End Time 2025-02-17 14:25:05 [2025-02-17 14:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496332', 'tblTempUsageDetail_20' ) start [2025-02-17 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496332', 'tblTempUsageDetail_20' ) end [2025-02-17 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496332', 'tblTempVendorCDR_20' ) start [2025-02-17 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496332', 'tblTempVendorCDR_20' ) end [2025-02-17 14:25:19] Production.INFO: ProcessCDR(1,14496332,1,1,2) [2025-02-17 14:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496332', 'tblTempUsageDetail_20' ) start [2025-02-17 14:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496332', 'tblTempUsageDetail_20' ) end [2025-02-17 14:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:25:24] Production.INFO: ==4183== Releasing lock... [2025-02-17 14:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:25:24] Production.INFO: 44 MB #Memory Used# [2025-02-17 14:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:26:06 [end_date_ymd] => 2025-02-17 14:26:06 [RateCDR] => 1 ) [2025-02-17 14:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:26:06' and `end` < '2025-02-17 14:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:26:20] Production.INFO: count ==2120 [2025-02-17 14:26:20] Production.ERROR: pbx CDR StartTime 2025-02-17 11:26:06 - End Time 2025-02-17 14:26:06 [2025-02-17 14:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496337', 'tblTempUsageDetail_20' ) start [2025-02-17 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496337', 'tblTempUsageDetail_20' ) end [2025-02-17 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496337', 'tblTempVendorCDR_20' ) start [2025-02-17 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496337', 'tblTempVendorCDR_20' ) end [2025-02-17 14:26:21] Production.INFO: ProcessCDR(1,14496337,1,1,2) [2025-02-17 14:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496337', 'tblTempUsageDetail_20' ) start [2025-02-17 14:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496337', 'tblTempUsageDetail_20' ) end [2025-02-17 14:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:26:25] Production.INFO: ==4258== Releasing lock... [2025-02-17 14:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:26:25] Production.INFO: 44 MB #Memory Used# [2025-02-17 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:27:05 [end_date_ymd] => 2025-02-17 14:27:05 [RateCDR] => 1 ) [2025-02-17 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:27:05' and `end` < '2025-02-17 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:27:19] Production.INFO: count ==2112 [2025-02-17 14:27:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:27:05 - End Time 2025-02-17 14:27:05 [2025-02-17 14:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496342', 'tblTempUsageDetail_20' ) start [2025-02-17 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496342', 'tblTempUsageDetail_20' ) end [2025-02-17 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496342', 'tblTempVendorCDR_20' ) start [2025-02-17 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496342', 'tblTempVendorCDR_20' ) end [2025-02-17 14:27:19] Production.INFO: ProcessCDR(1,14496342,1,1,2) [2025-02-17 14:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496342', 'tblTempUsageDetail_20' ) start [2025-02-17 14:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496342', 'tblTempUsageDetail_20' ) end [2025-02-17 14:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:27:23] Production.INFO: ==4329== Releasing lock... [2025-02-17 14:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:27:23] Production.INFO: 44 MB #Memory Used# [2025-02-17 14:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:28:06 [end_date_ymd] => 2025-02-17 14:28:06 [RateCDR] => 1 ) [2025-02-17 14:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:28:06' and `end` < '2025-02-17 14:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:28:20] Production.INFO: count ==2109 [2025-02-17 14:28:21] Production.ERROR: pbx CDR StartTime 2025-02-17 11:28:06 - End Time 2025-02-17 14:28:06 [2025-02-17 14:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496347', 'tblTempUsageDetail_20' ) start [2025-02-17 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496347', 'tblTempUsageDetail_20' ) end [2025-02-17 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496347', 'tblTempVendorCDR_20' ) start [2025-02-17 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496347', 'tblTempVendorCDR_20' ) end [2025-02-17 14:28:21] Production.INFO: ProcessCDR(1,14496347,1,1,2) [2025-02-17 14:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496347', 'tblTempUsageDetail_20' ) start [2025-02-17 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496347', 'tblTempUsageDetail_20' ) end [2025-02-17 14:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:28:26] Production.INFO: ==4399== Releasing lock... [2025-02-17 14:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:28:26] Production.INFO: 44 MB #Memory Used# [2025-02-17 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:29:05 [end_date_ymd] => 2025-02-17 14:29:05 [RateCDR] => 1 ) [2025-02-17 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:29:05' and `end` < '2025-02-17 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:29:18] Production.INFO: count ==2107 [2025-02-17 14:29:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:29:05 - End Time 2025-02-17 14:29:05 [2025-02-17 14:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496352', 'tblTempUsageDetail_20' ) start [2025-02-17 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496352', 'tblTempUsageDetail_20' ) end [2025-02-17 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496352', 'tblTempVendorCDR_20' ) start [2025-02-17 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496352', 'tblTempVendorCDR_20' ) end [2025-02-17 14:29:19] Production.INFO: ProcessCDR(1,14496352,1,1,2) [2025-02-17 14:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496352', 'tblTempUsageDetail_20' ) start [2025-02-17 14:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496352', 'tblTempUsageDetail_20' ) end [2025-02-17 14:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:29:24] Production.INFO: ==4468== Releasing lock... [2025-02-17 14:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:29:24] Production.INFO: 44 MB #Memory Used# [2025-02-17 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:30:06 [end_date_ymd] => 2025-02-17 14:30:06 [RateCDR] => 1 ) [2025-02-17 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:30:06' and `end` < '2025-02-17 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:30:20] Production.INFO: count ==2109 [2025-02-17 14:30:20] Production.ERROR: pbx CDR StartTime 2025-02-17 11:30:06 - End Time 2025-02-17 14:30:06 [2025-02-17 14:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496358', 'tblTempUsageDetail_20' ) start [2025-02-17 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496358', 'tblTempUsageDetail_20' ) end [2025-02-17 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496358', 'tblTempVendorCDR_20' ) start [2025-02-17 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496358', 'tblTempVendorCDR_20' ) end [2025-02-17 14:30:20] Production.INFO: ProcessCDR(1,14496358,1,1,2) [2025-02-17 14:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496358', 'tblTempUsageDetail_20' ) start [2025-02-17 14:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496358', 'tblTempUsageDetail_20' ) end [2025-02-17 14:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:30:24] Production.INFO: ==4541== Releasing lock... [2025-02-17 14:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:30:24] Production.INFO: 44 MB #Memory Used# [2025-02-17 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:31:05 [end_date_ymd] => 2025-02-17 14:31:05 [RateCDR] => 1 ) [2025-02-17 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:31:05' and `end` < '2025-02-17 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:31:18] Production.INFO: count ==2132 [2025-02-17 14:31:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:31:05 - End Time 2025-02-17 14:31:05 [2025-02-17 14:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496363', 'tblTempUsageDetail_20' ) start [2025-02-17 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496363', 'tblTempUsageDetail_20' ) end [2025-02-17 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496363', 'tblTempVendorCDR_20' ) start [2025-02-17 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496363', 'tblTempVendorCDR_20' ) end [2025-02-17 14:31:19] Production.INFO: ProcessCDR(1,14496363,1,1,2) [2025-02-17 14:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496363', 'tblTempUsageDetail_20' ) start [2025-02-17 14:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496363', 'tblTempUsageDetail_20' ) end [2025-02-17 14:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:31:22] Production.INFO: ==4619== Releasing lock... [2025-02-17 14:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:31:22] Production.INFO: 44 MB #Memory Used# [2025-02-17 14:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:32:06 [end_date_ymd] => 2025-02-17 14:32:06 [RateCDR] => 1 ) [2025-02-17 14:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:32:06' and `end` < '2025-02-17 14:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:32:19] Production.INFO: count ==2120 [2025-02-17 14:32:20] Production.ERROR: pbx CDR StartTime 2025-02-17 11:32:06 - End Time 2025-02-17 14:32:06 [2025-02-17 14:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496368', 'tblTempUsageDetail_20' ) start [2025-02-17 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496368', 'tblTempUsageDetail_20' ) end [2025-02-17 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496368', 'tblTempVendorCDR_20' ) start [2025-02-17 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496368', 'tblTempVendorCDR_20' ) end [2025-02-17 14:32:20] Production.INFO: ProcessCDR(1,14496368,1,1,2) [2025-02-17 14:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496368', 'tblTempUsageDetail_20' ) start [2025-02-17 14:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496368', 'tblTempUsageDetail_20' ) end [2025-02-17 14:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:32:24] Production.INFO: ==4693== Releasing lock... [2025-02-17 14:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:32:24] Production.INFO: 44 MB #Memory Used# [2025-02-17 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:33:05 [end_date_ymd] => 2025-02-17 14:33:05 [RateCDR] => 1 ) [2025-02-17 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:33:05' and `end` < '2025-02-17 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:33:18] Production.INFO: count ==2122 [2025-02-17 14:33:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:33:05 - End Time 2025-02-17 14:33:05 [2025-02-17 14:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496373', 'tblTempUsageDetail_20' ) start [2025-02-17 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496373', 'tblTempUsageDetail_20' ) end [2025-02-17 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496373', 'tblTempVendorCDR_20' ) start [2025-02-17 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496373', 'tblTempVendorCDR_20' ) end [2025-02-17 14:33:19] Production.INFO: ProcessCDR(1,14496373,1,1,2) [2025-02-17 14:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496373', 'tblTempUsageDetail_20' ) start [2025-02-17 14:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496373', 'tblTempUsageDetail_20' ) end [2025-02-17 14:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:33:23] Production.INFO: ==4765== Releasing lock... [2025-02-17 14:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:33:23] Production.INFO: 44 MB #Memory Used# [2025-02-17 14:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:34:06 [end_date_ymd] => 2025-02-17 14:34:06 [RateCDR] => 1 ) [2025-02-17 14:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:34:06' and `end` < '2025-02-17 14:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:34:19] Production.INFO: count ==2127 [2025-02-17 14:34:20] Production.ERROR: pbx CDR StartTime 2025-02-17 11:34:06 - End Time 2025-02-17 14:34:06 [2025-02-17 14:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496378', 'tblTempUsageDetail_20' ) start [2025-02-17 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496378', 'tblTempUsageDetail_20' ) end [2025-02-17 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496378', 'tblTempVendorCDR_20' ) start [2025-02-17 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496378', 'tblTempVendorCDR_20' ) end [2025-02-17 14:34:20] Production.INFO: ProcessCDR(1,14496378,1,1,2) [2025-02-17 14:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496378', 'tblTempUsageDetail_20' ) start [2025-02-17 14:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496378', 'tblTempUsageDetail_20' ) end [2025-02-17 14:34:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:34:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:34:25] Production.INFO: ==4839== Releasing lock... [2025-02-17 14:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:34:25] Production.INFO: 44 MB #Memory Used# [2025-02-17 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:35:05 [end_date_ymd] => 2025-02-17 14:35:05 [RateCDR] => 1 ) [2025-02-17 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:35:05' and `end` < '2025-02-17 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:35:18] Production.INFO: count ==2132 [2025-02-17 14:35:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:35:05 - End Time 2025-02-17 14:35:05 [2025-02-17 14:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496383', 'tblTempUsageDetail_20' ) start [2025-02-17 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496383', 'tblTempUsageDetail_20' ) end [2025-02-17 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496383', 'tblTempVendorCDR_20' ) start [2025-02-17 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496383', 'tblTempVendorCDR_20' ) end [2025-02-17 14:35:19] Production.INFO: ProcessCDR(1,14496383,1,1,2) [2025-02-17 14:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496383', 'tblTempUsageDetail_20' ) start [2025-02-17 14:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496383', 'tblTempUsageDetail_20' ) end [2025-02-17 14:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:35:24] Production.INFO: ==4926== Releasing lock... [2025-02-17 14:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:35:24] Production.INFO: 44 MB #Memory Used# [2025-02-17 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:36:05 [end_date_ymd] => 2025-02-17 14:36:05 [RateCDR] => 1 ) [2025-02-17 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:36:05' and `end` < '2025-02-17 14:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:36:19] Production.INFO: count ==2128 [2025-02-17 14:36:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:36:05 - End Time 2025-02-17 14:36:05 [2025-02-17 14:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496388', 'tblTempUsageDetail_20' ) start [2025-02-17 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496388', 'tblTempUsageDetail_20' ) end [2025-02-17 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496388', 'tblTempVendorCDR_20' ) start [2025-02-17 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496388', 'tblTempVendorCDR_20' ) end [2025-02-17 14:36:19] Production.INFO: ProcessCDR(1,14496388,1,1,2) [2025-02-17 14:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496388', 'tblTempUsageDetail_20' ) start [2025-02-17 14:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496388', 'tblTempUsageDetail_20' ) end [2025-02-17 14:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:36:23] Production.INFO: ==5005== Releasing lock... [2025-02-17 14:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:36:23] Production.INFO: 44 MB #Memory Used# [2025-02-17 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:37:05 [end_date_ymd] => 2025-02-17 14:37:05 [RateCDR] => 1 ) [2025-02-17 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:37:05' and `end` < '2025-02-17 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:37:18] Production.INFO: count ==2130 [2025-02-17 14:37:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:37:05 - End Time 2025-02-17 14:37:05 [2025-02-17 14:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496393', 'tblTempUsageDetail_20' ) start [2025-02-17 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496393', 'tblTempUsageDetail_20' ) end [2025-02-17 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496393', 'tblTempVendorCDR_20' ) start [2025-02-17 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496393', 'tblTempVendorCDR_20' ) end [2025-02-17 14:37:19] Production.INFO: ProcessCDR(1,14496393,1,1,2) [2025-02-17 14:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496393', 'tblTempUsageDetail_20' ) start [2025-02-17 14:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496393', 'tblTempUsageDetail_20' ) end [2025-02-17 14:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:37:23] Production.INFO: ==5074== Releasing lock... [2025-02-17 14:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:37:23] Production.INFO: 44 MB #Memory Used# [2025-02-17 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:38:05 [end_date_ymd] => 2025-02-17 14:38:05 [RateCDR] => 1 ) [2025-02-17 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:38:05' and `end` < '2025-02-17 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:38:19] Production.INFO: count ==2122 [2025-02-17 14:38:20] Production.ERROR: pbx CDR StartTime 2025-02-17 11:38:05 - End Time 2025-02-17 14:38:05 [2025-02-17 14:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496398', 'tblTempUsageDetail_20' ) start [2025-02-17 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496398', 'tblTempUsageDetail_20' ) end [2025-02-17 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496398', 'tblTempVendorCDR_20' ) start [2025-02-17 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496398', 'tblTempVendorCDR_20' ) end [2025-02-17 14:38:20] Production.INFO: ProcessCDR(1,14496398,1,1,2) [2025-02-17 14:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496398', 'tblTempUsageDetail_20' ) start [2025-02-17 14:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496398', 'tblTempUsageDetail_20' ) end [2025-02-17 14:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:38:25] Production.INFO: ==5149== Releasing lock... [2025-02-17 14:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:38:25] Production.INFO: 44 MB #Memory Used# [2025-02-17 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:39:05 [end_date_ymd] => 2025-02-17 14:39:05 [RateCDR] => 1 ) [2025-02-17 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:39:05' and `end` < '2025-02-17 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:39:18] Production.INFO: count ==2098 [2025-02-17 14:39:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:39:05 - End Time 2025-02-17 14:39:05 [2025-02-17 14:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496403', 'tblTempUsageDetail_20' ) start [2025-02-17 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496403', 'tblTempUsageDetail_20' ) end [2025-02-17 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496403', 'tblTempVendorCDR_20' ) start [2025-02-17 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496403', 'tblTempVendorCDR_20' ) end [2025-02-17 14:39:19] Production.INFO: ProcessCDR(1,14496403,1,1,2) [2025-02-17 14:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496403', 'tblTempUsageDetail_20' ) start [2025-02-17 14:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496403', 'tblTempUsageDetail_20' ) end [2025-02-17 14:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:39:22] Production.INFO: ==5260== Releasing lock... [2025-02-17 14:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:39:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-17 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:40:06 [end_date_ymd] => 2025-02-17 14:40:06 [RateCDR] => 1 ) [2025-02-17 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:40:06' and `end` < '2025-02-17 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:40:19] Production.INFO: count ==2095 [2025-02-17 14:40:20] Production.ERROR: pbx CDR StartTime 2025-02-17 11:40:06 - End Time 2025-02-17 14:40:06 [2025-02-17 14:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496408', 'tblTempUsageDetail_20' ) start [2025-02-17 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496408', 'tblTempUsageDetail_20' ) end [2025-02-17 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496408', 'tblTempVendorCDR_20' ) start [2025-02-17 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496408', 'tblTempVendorCDR_20' ) end [2025-02-17 14:40:20] Production.INFO: ProcessCDR(1,14496408,1,1,2) [2025-02-17 14:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496408', 'tblTempUsageDetail_20' ) start [2025-02-17 14:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496408', 'tblTempUsageDetail_20' ) end [2025-02-17 14:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:40:23] Production.INFO: ==5340== Releasing lock... [2025-02-17 14:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:40:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-17 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:41:05 [end_date_ymd] => 2025-02-17 14:41:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 11:41:05' and `end` < '2025-02-17 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-02-17 14:41:18] Production.INFO: count ==2094 [2025-02-17 14:41:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:41:05 - End Time 2025-02-17 14:41:05 [2025-02-17 14:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496414', 'tblTempUsageDetail_20' ) start [2025-02-17 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496414', 'tblTempUsageDetail_20' ) end [2025-02-17 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496414', 'tblTempVendorCDR_20' ) start [2025-02-17 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496414', 'tblTempVendorCDR_20' ) end [2025-02-17 14:41:19] Production.INFO: ProcessCDR(1,14496414,1,1,2) [2025-02-17 14:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496414', 'tblTempUsageDetail_20' ) start [2025-02-17 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496414', 'tblTempUsageDetail_20' ) end [2025-02-17 14:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:41:22] Production.INFO: ==5416== Releasing lock... [2025-02-17 14:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:41:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-17 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:42:05 [end_date_ymd] => 2025-02-17 14:42:05 [RateCDR] => 1 ) [2025-02-17 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:42:05' and `end` < '2025-02-17 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:42:18] Production.INFO: count ==2094 [2025-02-17 14:42:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:42:05 - End Time 2025-02-17 14:42:05 [2025-02-17 14:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496419', 'tblTempUsageDetail_20' ) start [2025-02-17 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496419', 'tblTempUsageDetail_20' ) end [2025-02-17 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496419', 'tblTempVendorCDR_20' ) start [2025-02-17 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496419', 'tblTempVendorCDR_20' ) end [2025-02-17 14:42:19] Production.INFO: ProcessCDR(1,14496419,1,1,2) [2025-02-17 14:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496419', 'tblTempUsageDetail_20' ) start [2025-02-17 14:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496419', 'tblTempUsageDetail_20' ) end [2025-02-17 14:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:42:23] Production.INFO: ==5491== Releasing lock... [2025-02-17 14:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:42:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-17 14:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:43:06 [end_date_ymd] => 2025-02-17 14:43:06 [RateCDR] => 1 ) [2025-02-17 14:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:43:06' and `end` < '2025-02-17 14:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:43:19] Production.INFO: count ==2096 [2025-02-17 14:43:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:43:06 - End Time 2025-02-17 14:43:06 [2025-02-17 14:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496424', 'tblTempUsageDetail_20' ) start [2025-02-17 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496424', 'tblTempUsageDetail_20' ) end [2025-02-17 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496424', 'tblTempVendorCDR_20' ) start [2025-02-17 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496424', 'tblTempVendorCDR_20' ) end [2025-02-17 14:43:20] Production.INFO: ProcessCDR(1,14496424,1,1,2) [2025-02-17 14:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496424', 'tblTempUsageDetail_20' ) start [2025-02-17 14:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496424', 'tblTempUsageDetail_20' ) end [2025-02-17 14:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:43:24] Production.INFO: ==5564== Releasing lock... [2025-02-17 14:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:43:24] Production.INFO: 43.75 MB #Memory Used# [2025-02-17 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:44:05 [end_date_ymd] => 2025-02-17 14:44:05 [RateCDR] => 1 ) [2025-02-17 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:44:05' and `end` < '2025-02-17 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:44:19] Production.INFO: count ==2097 [2025-02-17 14:44:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:44:05 - End Time 2025-02-17 14:44:05 [2025-02-17 14:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496429', 'tblTempUsageDetail_20' ) start [2025-02-17 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496429', 'tblTempUsageDetail_20' ) end [2025-02-17 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496429', 'tblTempVendorCDR_20' ) start [2025-02-17 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496429', 'tblTempVendorCDR_20' ) end [2025-02-17 14:44:19] Production.INFO: ProcessCDR(1,14496429,1,1,2) [2025-02-17 14:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496429', 'tblTempUsageDetail_20' ) start [2025-02-17 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496429', 'tblTempUsageDetail_20' ) end [2025-02-17 14:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:44:23] Production.INFO: ==5633== Releasing lock... [2025-02-17 14:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:44:23] Production.INFO: 44.25 MB #Memory Used# [2025-02-17 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:45:05 [end_date_ymd] => 2025-02-17 14:45:05 [RateCDR] => 1 ) [2025-02-17 14:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:45:05' and `end` < '2025-02-17 14:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:45:18] Production.INFO: count ==2119 [2025-02-17 14:45:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:45:05 - End Time 2025-02-17 14:45:05 [2025-02-17 14:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496434', 'tblTempUsageDetail_20' ) start [2025-02-17 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496434', 'tblTempUsageDetail_20' ) end [2025-02-17 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496434', 'tblTempVendorCDR_20' ) start [2025-02-17 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496434', 'tblTempVendorCDR_20' ) end [2025-02-17 14:45:19] Production.INFO: ProcessCDR(1,14496434,1,1,2) [2025-02-17 14:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496434', 'tblTempUsageDetail_20' ) start [2025-02-17 14:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496434', 'tblTempUsageDetail_20' ) end [2025-02-17 14:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:45:23] Production.INFO: ==5710== Releasing lock... [2025-02-17 14:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:45:23] Production.INFO: 44 MB #Memory Used# [2025-02-17 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:46:05 [end_date_ymd] => 2025-02-17 14:46:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 11:46:05' and `end` < '2025-02-17 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-02-17 14:46:19] Production.INFO: count ==2120 [2025-02-17 14:46:20] Production.ERROR: pbx CDR StartTime 2025-02-17 11:46:05 - End Time 2025-02-17 14:46:05 [2025-02-17 14:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496439', 'tblTempUsageDetail_20' ) start [2025-02-17 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496439', 'tblTempUsageDetail_20' ) end [2025-02-17 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496439', 'tblTempVendorCDR_20' ) start [2025-02-17 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496439', 'tblTempVendorCDR_20' ) end [2025-02-17 14:46:20] Production.INFO: ProcessCDR(1,14496439,1,1,2) [2025-02-17 14:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496439', 'tblTempUsageDetail_20' ) start [2025-02-17 14:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496439', 'tblTempUsageDetail_20' ) end [2025-02-17 14:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:46:24] Production.INFO: ==5783== Releasing lock... [2025-02-17 14:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:46:24] Production.INFO: 44 MB #Memory Used# [2025-02-17 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:47:06 [end_date_ymd] => 2025-02-17 14:47:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 11:47:06' and `end` < '2025-02-17 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-02-17 14:47:19] Production.INFO: count ==2130 [2025-02-17 14:47:20] Production.ERROR: pbx CDR StartTime 2025-02-17 11:47:06 - End Time 2025-02-17 14:47:06 [2025-02-17 14:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496444', 'tblTempUsageDetail_20' ) start [2025-02-17 14:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496444', 'tblTempUsageDetail_20' ) end [2025-02-17 14:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496444', 'tblTempVendorCDR_20' ) start [2025-02-17 14:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496444', 'tblTempVendorCDR_20' ) end [2025-02-17 14:47:20] Production.INFO: ProcessCDR(1,14496444,1,1,2) [2025-02-17 14:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496444', 'tblTempUsageDetail_20' ) start [2025-02-17 14:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496444', 'tblTempUsageDetail_20' ) end [2025-02-17 14:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:47:25] Production.INFO: ==5864== Releasing lock... [2025-02-17 14:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:47:25] Production.INFO: 44 MB #Memory Used# [2025-02-17 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:48:05 [end_date_ymd] => 2025-02-17 14:48:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 11:48:05' and `end` < '2025-02-17 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-02-17 14:48:18] Production.INFO: count ==2133 [2025-02-17 14:48:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:48:05 - End Time 2025-02-17 14:48:05 [2025-02-17 14:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496449', 'tblTempUsageDetail_20' ) start [2025-02-17 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496449', 'tblTempUsageDetail_20' ) end [2025-02-17 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496449', 'tblTempVendorCDR_20' ) start [2025-02-17 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496449', 'tblTempVendorCDR_20' ) end [2025-02-17 14:48:19] Production.INFO: ProcessCDR(1,14496449,1,1,2) [2025-02-17 14:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496449', 'tblTempUsageDetail_20' ) start [2025-02-17 14:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496449', 'tblTempUsageDetail_20' ) end [2025-02-17 14:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:48:24] Production.INFO: ==5939== Releasing lock... [2025-02-17 14:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:48:24] Production.INFO: 44 MB #Memory Used# [2025-02-17 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:49:05 [end_date_ymd] => 2025-02-17 14:49:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 11:49:05' and `end` < '2025-02-17 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-02-17 14:49:19] Production.INFO: count ==2120 [2025-02-17 14:49:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:49:05 - End Time 2025-02-17 14:49:05 [2025-02-17 14:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496454', 'tblTempUsageDetail_20' ) start [2025-02-17 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496454', 'tblTempUsageDetail_20' ) end [2025-02-17 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496454', 'tblTempVendorCDR_20' ) start [2025-02-17 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496454', 'tblTempVendorCDR_20' ) end [2025-02-17 14:49:19] Production.INFO: ProcessCDR(1,14496454,1,1,2) [2025-02-17 14:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496454', 'tblTempUsageDetail_20' ) start [2025-02-17 14:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496454', 'tblTempUsageDetail_20' ) end [2025-02-17 14:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:49:24] Production.INFO: ==6013== Releasing lock... [2025-02-17 14:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:49:24] Production.INFO: 44 MB #Memory Used# [2025-02-17 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:50:06 [end_date_ymd] => 2025-02-17 14:50:06 [RateCDR] => 1 ) [2025-02-17 14:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:50:06' and `end` < '2025-02-17 14:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:50:19] Production.INFO: count ==2123 [2025-02-17 14:50:20] Production.ERROR: pbx CDR StartTime 2025-02-17 11:50:06 - End Time 2025-02-17 14:50:06 [2025-02-17 14:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496460', 'tblTempUsageDetail_20' ) start [2025-02-17 14:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496460', 'tblTempUsageDetail_20' ) end [2025-02-17 14:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496460', 'tblTempVendorCDR_20' ) start [2025-02-17 14:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496460', 'tblTempVendorCDR_20' ) end [2025-02-17 14:50:20] Production.INFO: ProcessCDR(1,14496460,1,1,2) [2025-02-17 14:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496460', 'tblTempUsageDetail_20' ) start [2025-02-17 14:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496460', 'tblTempUsageDetail_20' ) end [2025-02-17 14:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:50:24] Production.INFO: ==6095== Releasing lock... [2025-02-17 14:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:50:24] Production.INFO: 44 MB #Memory Used# [2025-02-17 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:51:05 [end_date_ymd] => 2025-02-17 14:51:05 [RateCDR] => 1 ) [2025-02-17 14:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:51:05' and `end` < '2025-02-17 14:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:51:19] Production.INFO: count ==2180 [2025-02-17 14:51:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:51:05 - End Time 2025-02-17 14:51:05 [2025-02-17 14:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496465', 'tblTempUsageDetail_20' ) start [2025-02-17 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496465', 'tblTempUsageDetail_20' ) end [2025-02-17 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496465', 'tblTempVendorCDR_20' ) start [2025-02-17 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496465', 'tblTempVendorCDR_20' ) end [2025-02-17 14:51:19] Production.INFO: ProcessCDR(1,14496465,1,1,2) [2025-02-17 14:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496465', 'tblTempUsageDetail_20' ) start [2025-02-17 14:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496465', 'tblTempUsageDetail_20' ) end [2025-02-17 14:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:51:24] Production.INFO: ==6169== Releasing lock... [2025-02-17 14:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:51:24] Production.INFO: 44.5 MB #Memory Used# [2025-02-17 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:52:05 [end_date_ymd] => 2025-02-17 14:52:05 [RateCDR] => 1 ) [2025-02-17 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:52:05' and `end` < '2025-02-17 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:52:18] Production.INFO: count ==2185 [2025-02-17 14:52:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:52:05 - End Time 2025-02-17 14:52:05 [2025-02-17 14:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496470', 'tblTempUsageDetail_20' ) start [2025-02-17 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496470', 'tblTempUsageDetail_20' ) end [2025-02-17 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496470', 'tblTempVendorCDR_20' ) start [2025-02-17 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496470', 'tblTempVendorCDR_20' ) end [2025-02-17 14:52:19] Production.INFO: ProcessCDR(1,14496470,1,1,2) [2025-02-17 14:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496470', 'tblTempUsageDetail_20' ) start [2025-02-17 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496470', 'tblTempUsageDetail_20' ) end [2025-02-17 14:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:52:22] Production.INFO: ==6243== Releasing lock... [2025-02-17 14:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:52:22] Production.INFO: 44.5 MB #Memory Used# [2025-02-17 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:53:05 [end_date_ymd] => 2025-02-17 14:53:05 [RateCDR] => 1 ) [2025-02-17 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:53:05' and `end` < '2025-02-17 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:53:18] Production.INFO: count ==2185 [2025-02-17 14:53:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:53:05 - End Time 2025-02-17 14:53:05 [2025-02-17 14:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496475', 'tblTempUsageDetail_20' ) start [2025-02-17 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496475', 'tblTempUsageDetail_20' ) end [2025-02-17 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496475', 'tblTempVendorCDR_20' ) start [2025-02-17 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496475', 'tblTempVendorCDR_20' ) end [2025-02-17 14:53:19] Production.INFO: ProcessCDR(1,14496475,1,1,2) [2025-02-17 14:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496475', 'tblTempUsageDetail_20' ) start [2025-02-17 14:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496475', 'tblTempUsageDetail_20' ) end [2025-02-17 14:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:53:23] Production.INFO: ==6323== Releasing lock... [2025-02-17 14:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:53:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-17 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:54:05 [end_date_ymd] => 2025-02-17 14:54:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 11:54:05' and `end` < '2025-02-17 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-02-17 14:54:19] Production.INFO: count ==2207 [2025-02-17 14:54:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:54:05 - End Time 2025-02-17 14:54:05 [2025-02-17 14:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496480', 'tblTempUsageDetail_20' ) start [2025-02-17 14:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496480', 'tblTempUsageDetail_20' ) end [2025-02-17 14:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496480', 'tblTempVendorCDR_20' ) start [2025-02-17 14:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496480', 'tblTempVendorCDR_20' ) end [2025-02-17 14:54:20] Production.INFO: ProcessCDR(1,14496480,1,1,2) [2025-02-17 14:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496480', 'tblTempUsageDetail_20' ) start [2025-02-17 14:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496480', 'tblTempUsageDetail_20' ) end [2025-02-17 14:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:54:23] Production.INFO: ==6436== Releasing lock... [2025-02-17 14:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:54:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-17 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:55:05 [end_date_ymd] => 2025-02-17 14:55:05 [RateCDR] => 1 ) [2025-02-17 14:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:55:05' and `end` < '2025-02-17 14:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:55:19] Production.INFO: count ==2228 [2025-02-17 14:55:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:55:05 - End Time 2025-02-17 14:55:05 [2025-02-17 14:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496485', 'tblTempUsageDetail_20' ) start [2025-02-17 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496485', 'tblTempUsageDetail_20' ) end [2025-02-17 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496485', 'tblTempVendorCDR_20' ) start [2025-02-17 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496485', 'tblTempVendorCDR_20' ) end [2025-02-17 14:55:19] Production.INFO: ProcessCDR(1,14496485,1,1,2) [2025-02-17 14:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496485', 'tblTempUsageDetail_20' ) start [2025-02-17 14:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496485', 'tblTempUsageDetail_20' ) end [2025-02-17 14:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:55:24] Production.INFO: ==6518== Releasing lock... [2025-02-17 14:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:55:24] Production.INFO: 44.75 MB #Memory Used# [2025-02-17 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:56:06 [end_date_ymd] => 2025-02-17 14:56:06 [RateCDR] => 1 ) [2025-02-17 14:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:56:06' and `end` < '2025-02-17 14:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:56:19] Production.INFO: count ==2240 [2025-02-17 14:56:20] Production.ERROR: pbx CDR StartTime 2025-02-17 11:56:06 - End Time 2025-02-17 14:56:06 [2025-02-17 14:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496490', 'tblTempUsageDetail_20' ) start [2025-02-17 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496490', 'tblTempUsageDetail_20' ) end [2025-02-17 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496490', 'tblTempVendorCDR_20' ) start [2025-02-17 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496490', 'tblTempVendorCDR_20' ) end [2025-02-17 14:56:20] Production.INFO: ProcessCDR(1,14496490,1,1,2) [2025-02-17 14:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496490', 'tblTempUsageDetail_20' ) start [2025-02-17 14:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496490', 'tblTempUsageDetail_20' ) end [2025-02-17 14:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:56:25] Production.INFO: ==6593== Releasing lock... [2025-02-17 14:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:56:25] Production.INFO: 45 MB #Memory Used# [2025-02-17 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:57:05 [end_date_ymd] => 2025-02-17 14:57:05 [RateCDR] => 1 ) [2025-02-17 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:57:05' and `end` < '2025-02-17 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:57:18] Production.INFO: count ==2260 [2025-02-17 14:57:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:57:05 - End Time 2025-02-17 14:57:05 [2025-02-17 14:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496495', 'tblTempUsageDetail_20' ) start [2025-02-17 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496495', 'tblTempUsageDetail_20' ) end [2025-02-17 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496495', 'tblTempVendorCDR_20' ) start [2025-02-17 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496495', 'tblTempVendorCDR_20' ) end [2025-02-17 14:57:19] Production.INFO: ProcessCDR(1,14496495,1,1,2) [2025-02-17 14:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496495', 'tblTempUsageDetail_20' ) start [2025-02-17 14:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496495', 'tblTempUsageDetail_20' ) end [2025-02-17 14:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:57:22] Production.INFO: ==6665== Releasing lock... [2025-02-17 14:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:57:22] Production.INFO: 45 MB #Memory Used# [2025-02-17 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:58:06 [end_date_ymd] => 2025-02-17 14:58:06 [RateCDR] => 1 ) [2025-02-17 14:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:58:06' and `end` < '2025-02-17 14:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:58:19] Production.INFO: count ==2261 [2025-02-17 14:58:20] Production.ERROR: pbx CDR StartTime 2025-02-17 11:58:06 - End Time 2025-02-17 14:58:06 [2025-02-17 14:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496500', 'tblTempUsageDetail_20' ) start [2025-02-17 14:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496500', 'tblTempUsageDetail_20' ) end [2025-02-17 14:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496500', 'tblTempVendorCDR_20' ) start [2025-02-17 14:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496500', 'tblTempVendorCDR_20' ) end [2025-02-17 14:58:20] Production.INFO: ProcessCDR(1,14496500,1,1,2) [2025-02-17 14:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496500', 'tblTempUsageDetail_20' ) start [2025-02-17 14:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496500', 'tblTempUsageDetail_20' ) end [2025-02-17 14:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:58:25] Production.INFO: ==6737== Releasing lock... [2025-02-17 14:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:58:25] Production.INFO: 45.25 MB #Memory Used# [2025-02-17 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 11:59:05 [end_date_ymd] => 2025-02-17 14:59:05 [RateCDR] => 1 ) [2025-02-17 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 11:59:05' and `end` < '2025-02-17 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 14:59:18] Production.INFO: count ==2303 [2025-02-17 14:59:19] Production.ERROR: pbx CDR StartTime 2025-02-17 11:59:05 - End Time 2025-02-17 14:59:05 [2025-02-17 14:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496505', 'tblTempUsageDetail_20' ) start [2025-02-17 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496505', 'tblTempUsageDetail_20' ) end [2025-02-17 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496505', 'tblTempVendorCDR_20' ) start [2025-02-17 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496505', 'tblTempVendorCDR_20' ) end [2025-02-17 14:59:19] Production.INFO: ProcessCDR(1,14496505,1,1,2) [2025-02-17 14:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 14:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 14:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496505', 'tblTempUsageDetail_20' ) start [2025-02-17 14:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496505', 'tblTempUsageDetail_20' ) end [2025-02-17 14:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 14:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 14:59:23] Production.INFO: ==6809== Releasing lock... [2025-02-17 14:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 14:59:23] Production.INFO: 45.25 MB #Memory Used# [2025-02-17 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:00:06 [end_date_ymd] => 2025-02-17 15:00:06 [RateCDR] => 1 ) [2025-02-17 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:00:06' and `end` < '2025-02-17 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:00:20] Production.INFO: count ==2323 [2025-02-17 15:00:21] Production.ERROR: pbx CDR StartTime 2025-02-17 12:00:06 - End Time 2025-02-17 15:00:06 [2025-02-17 15:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496510', 'tblTempUsageDetail_20' ) start [2025-02-17 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496510', 'tblTempUsageDetail_20' ) end [2025-02-17 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496510', 'tblTempVendorCDR_20' ) start [2025-02-17 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496510', 'tblTempVendorCDR_20' ) end [2025-02-17 15:00:21] Production.INFO: ProcessCDR(1,14496510,1,1,2) [2025-02-17 15:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496510', 'tblTempUsageDetail_20' ) start [2025-02-17 15:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496510', 'tblTempUsageDetail_20' ) end [2025-02-17 15:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:00:26] Production.INFO: ==6884== Releasing lock... [2025-02-17 15:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:00:26] Production.INFO: 45.5 MB #Memory Used# [2025-02-17 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:01:06 [end_date_ymd] => 2025-02-17 15:01:06 [RateCDR] => 1 ) [2025-02-17 15:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:01:06' and `end` < '2025-02-17 15:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:01:19] Production.INFO: count ==2321 [2025-02-17 15:01:20] Production.ERROR: pbx CDR StartTime 2025-02-17 12:01:06 - End Time 2025-02-17 15:01:06 [2025-02-17 15:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496516', 'tblTempUsageDetail_20' ) start [2025-02-17 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496516', 'tblTempUsageDetail_20' ) end [2025-02-17 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496516', 'tblTempVendorCDR_20' ) start [2025-02-17 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496516', 'tblTempVendorCDR_20' ) end [2025-02-17 15:01:20] Production.INFO: ProcessCDR(1,14496516,1,1,2) [2025-02-17 15:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496516', 'tblTempUsageDetail_20' ) start [2025-02-17 15:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496516', 'tblTempUsageDetail_20' ) end [2025-02-17 15:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:01:24] Production.INFO: ==6969== Releasing lock... [2025-02-17 15:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:01:24] Production.INFO: 45.5 MB #Memory Used# [2025-02-17 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:02:05 [end_date_ymd] => 2025-02-17 15:02:05 [RateCDR] => 1 ) [2025-02-17 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:02:05' and `end` < '2025-02-17 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:02:19] Production.INFO: count ==2332 [2025-02-17 15:02:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:02:05 - End Time 2025-02-17 15:02:05 [2025-02-17 15:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496519', 'tblTempUsageDetail_20' ) start [2025-02-17 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496519', 'tblTempUsageDetail_20' ) end [2025-02-17 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496519', 'tblTempVendorCDR_20' ) start [2025-02-17 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496519', 'tblTempVendorCDR_20' ) end [2025-02-17 15:02:19] Production.INFO: ProcessCDR(1,14496519,1,1,2) [2025-02-17 15:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496519', 'tblTempUsageDetail_20' ) start [2025-02-17 15:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496519', 'tblTempUsageDetail_20' ) end [2025-02-17 15:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:02:25] Production.INFO: ==7125== Releasing lock... [2025-02-17 15:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:02:25] Production.INFO: 45.5 MB #Memory Used# [2025-02-17 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:03:05 [end_date_ymd] => 2025-02-17 15:03:05 [RateCDR] => 1 ) [2025-02-17 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:03:05' and `end` < '2025-02-17 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:03:20] Production.INFO: count ==2338 [2025-02-17 15:03:21] Production.ERROR: pbx CDR StartTime 2025-02-17 12:03:05 - End Time 2025-02-17 15:03:05 [2025-02-17 15:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496526', 'tblTempUsageDetail_20' ) start [2025-02-17 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496526', 'tblTempUsageDetail_20' ) end [2025-02-17 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496526', 'tblTempVendorCDR_20' ) start [2025-02-17 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496526', 'tblTempVendorCDR_20' ) end [2025-02-17 15:03:21] Production.INFO: ProcessCDR(1,14496526,1,1,2) [2025-02-17 15:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496526', 'tblTempUsageDetail_20' ) start [2025-02-17 15:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496526', 'tblTempUsageDetail_20' ) end [2025-02-17 15:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:03:25] Production.INFO: ==7207== Releasing lock... [2025-02-17 15:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:03:25] Production.INFO: 45.5 MB #Memory Used# [2025-02-17 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:04:06 [end_date_ymd] => 2025-02-17 15:04:06 [RateCDR] => 1 ) [2025-02-17 15:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:04:06' and `end` < '2025-02-17 15:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:04:20] Production.INFO: count ==2352 [2025-02-17 15:04:20] Production.ERROR: pbx CDR StartTime 2025-02-17 12:04:06 - End Time 2025-02-17 15:04:06 [2025-02-17 15:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496531', 'tblTempUsageDetail_20' ) start [2025-02-17 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496531', 'tblTempUsageDetail_20' ) end [2025-02-17 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496531', 'tblTempVendorCDR_20' ) start [2025-02-17 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496531', 'tblTempVendorCDR_20' ) end [2025-02-17 15:04:21] Production.INFO: ProcessCDR(1,14496531,1,1,2) [2025-02-17 15:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496531', 'tblTempUsageDetail_20' ) start [2025-02-17 15:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496531', 'tblTempUsageDetail_20' ) end [2025-02-17 15:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:04:24] Production.INFO: ==7284== Releasing lock... [2025-02-17 15:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:04:24] Production.INFO: 45.75 MB #Memory Used# [2025-02-17 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:05:05 [end_date_ymd] => 2025-02-17 15:05:05 [RateCDR] => 1 ) [2025-02-17 15:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:05:05' and `end` < '2025-02-17 15:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:05:18] Production.INFO: count ==2443 [2025-02-17 15:05:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:05:05 - End Time 2025-02-17 15:05:05 [2025-02-17 15:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496536', 'tblTempUsageDetail_20' ) start [2025-02-17 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496536', 'tblTempUsageDetail_20' ) end [2025-02-17 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496536', 'tblTempVendorCDR_20' ) start [2025-02-17 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496536', 'tblTempVendorCDR_20' ) end [2025-02-17 15:05:19] Production.INFO: ProcessCDR(1,14496536,1,1,2) [2025-02-17 15:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496536', 'tblTempUsageDetail_20' ) start [2025-02-17 15:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496536', 'tblTempUsageDetail_20' ) end [2025-02-17 15:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:05:23] Production.INFO: ==7437== Releasing lock... [2025-02-17 15:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:05:23] Production.INFO: 46.5 MB #Memory Used# [2025-02-17 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:06:05 [end_date_ymd] => 2025-02-17 15:06:05 [RateCDR] => 1 ) [2025-02-17 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:06:05' and `end` < '2025-02-17 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:06:20] Production.INFO: count ==2447 [2025-02-17 15:06:21] Production.ERROR: pbx CDR StartTime 2025-02-17 12:06:05 - End Time 2025-02-17 15:06:05 [2025-02-17 15:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496541', 'tblTempUsageDetail_20' ) start [2025-02-17 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496541', 'tblTempUsageDetail_20' ) end [2025-02-17 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496541', 'tblTempVendorCDR_20' ) start [2025-02-17 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496541', 'tblTempVendorCDR_20' ) end [2025-02-17 15:06:21] Production.INFO: ProcessCDR(1,14496541,1,1,2) [2025-02-17 15:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496541', 'tblTempUsageDetail_20' ) start [2025-02-17 15:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496541', 'tblTempUsageDetail_20' ) end [2025-02-17 15:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:06:24] Production.INFO: ==7513== Releasing lock... [2025-02-17 15:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:06:24] Production.INFO: 46.5 MB #Memory Used# [2025-02-17 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:07:05 [end_date_ymd] => 2025-02-17 15:07:05 [RateCDR] => 1 ) [2025-02-17 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:07:05' and `end` < '2025-02-17 15:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:07:18] Production.INFO: count ==2450 [2025-02-17 15:07:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:07:05 - End Time 2025-02-17 15:07:05 [2025-02-17 15:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496546', 'tblTempUsageDetail_20' ) start [2025-02-17 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496546', 'tblTempUsageDetail_20' ) end [2025-02-17 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496546', 'tblTempVendorCDR_20' ) start [2025-02-17 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496546', 'tblTempVendorCDR_20' ) end [2025-02-17 15:07:19] Production.INFO: ProcessCDR(1,14496546,1,1,2) [2025-02-17 15:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496546', 'tblTempUsageDetail_20' ) start [2025-02-17 15:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496546', 'tblTempUsageDetail_20' ) end [2025-02-17 15:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:07:24] Production.INFO: ==7590== Releasing lock... [2025-02-17 15:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:07:24] Production.INFO: 46.5 MB #Memory Used# [2025-02-17 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:08:05 [end_date_ymd] => 2025-02-17 15:08:05 [RateCDR] => 1 ) [2025-02-17 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:08:05' and `end` < '2025-02-17 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:08:19] Production.INFO: count ==2434 [2025-02-17 15:08:20] Production.ERROR: pbx CDR StartTime 2025-02-17 12:08:05 - End Time 2025-02-17 15:08:05 [2025-02-17 15:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496551', 'tblTempUsageDetail_20' ) start [2025-02-17 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496551', 'tblTempUsageDetail_20' ) end [2025-02-17 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496551', 'tblTempVendorCDR_20' ) start [2025-02-17 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496551', 'tblTempVendorCDR_20' ) end [2025-02-17 15:08:20] Production.INFO: ProcessCDR(1,14496551,1,1,2) [2025-02-17 15:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496551', 'tblTempUsageDetail_20' ) start [2025-02-17 15:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496551', 'tblTempUsageDetail_20' ) end [2025-02-17 15:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:08:24] Production.INFO: ==7703== Releasing lock... [2025-02-17 15:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:08:24] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:09:05 [end_date_ymd] => 2025-02-17 15:09:05 [RateCDR] => 1 ) [2025-02-17 15:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:09:05' and `end` < '2025-02-17 15:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:09:18] Production.INFO: count ==2433 [2025-02-17 15:09:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:09:05 - End Time 2025-02-17 15:09:05 [2025-02-17 15:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496556', 'tblTempUsageDetail_20' ) start [2025-02-17 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496556', 'tblTempUsageDetail_20' ) end [2025-02-17 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496556', 'tblTempVendorCDR_20' ) start [2025-02-17 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496556', 'tblTempVendorCDR_20' ) end [2025-02-17 15:09:19] Production.INFO: ProcessCDR(1,14496556,1,1,2) [2025-02-17 15:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496556', 'tblTempUsageDetail_20' ) start [2025-02-17 15:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496556', 'tblTempUsageDetail_20' ) end [2025-02-17 15:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:09:22] Production.INFO: ==7860== Releasing lock... [2025-02-17 15:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:09:22] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:10:06 [end_date_ymd] => 2025-02-17 15:10:06 [RateCDR] => 1 ) [2025-02-17 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:10:06' and `end` < '2025-02-17 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:10:19] Production.INFO: count ==2473 [2025-02-17 15:10:20] Production.ERROR: pbx CDR StartTime 2025-02-17 12:10:06 - End Time 2025-02-17 15:10:06 [2025-02-17 15:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496562', 'tblTempUsageDetail_20' ) start [2025-02-17 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496562', 'tblTempUsageDetail_20' ) end [2025-02-17 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496562', 'tblTempVendorCDR_20' ) start [2025-02-17 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496562', 'tblTempVendorCDR_20' ) end [2025-02-17 15:10:20] Production.INFO: ProcessCDR(1,14496562,1,1,2) [2025-02-17 15:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496562', 'tblTempUsageDetail_20' ) start [2025-02-17 15:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496562', 'tblTempUsageDetail_20' ) end [2025-02-17 15:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:10:23] Production.INFO: ==7942== Releasing lock... [2025-02-17 15:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:10:23] Production.INFO: 46.5 MB #Memory Used# [2025-02-17 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:11:05 [end_date_ymd] => 2025-02-17 15:11:05 [RateCDR] => 1 ) [2025-02-17 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:11:05' and `end` < '2025-02-17 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:11:18] Production.INFO: count ==2465 [2025-02-17 15:11:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:11:05 - End Time 2025-02-17 15:11:05 [2025-02-17 15:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496567', 'tblTempUsageDetail_20' ) start [2025-02-17 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496567', 'tblTempUsageDetail_20' ) end [2025-02-17 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496567', 'tblTempVendorCDR_20' ) start [2025-02-17 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496567', 'tblTempVendorCDR_20' ) end [2025-02-17 15:11:19] Production.INFO: ProcessCDR(1,14496567,1,1,2) [2025-02-17 15:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496567', 'tblTempUsageDetail_20' ) start [2025-02-17 15:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496567', 'tblTempUsageDetail_20' ) end [2025-02-17 15:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:11:22] Production.INFO: ==8022== Releasing lock... [2025-02-17 15:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:11:22] Production.INFO: 46.5 MB #Memory Used# [2025-02-17 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:12:05 [end_date_ymd] => 2025-02-17 15:12:05 [RateCDR] => 1 ) [2025-02-17 15:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:12:05' and `end` < '2025-02-17 15:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:12:19] Production.INFO: count ==2466 [2025-02-17 15:12:20] Production.ERROR: pbx CDR StartTime 2025-02-17 12:12:05 - End Time 2025-02-17 15:12:05 [2025-02-17 15:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496572', 'tblTempUsageDetail_20' ) start [2025-02-17 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496572', 'tblTempUsageDetail_20' ) end [2025-02-17 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496572', 'tblTempVendorCDR_20' ) start [2025-02-17 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496572', 'tblTempVendorCDR_20' ) end [2025-02-17 15:12:20] Production.INFO: ProcessCDR(1,14496572,1,1,2) [2025-02-17 15:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496572', 'tblTempUsageDetail_20' ) start [2025-02-17 15:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496572', 'tblTempUsageDetail_20' ) end [2025-02-17 15:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:12:23] Production.INFO: ==8171== Releasing lock... [2025-02-17 15:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:12:23] Production.INFO: 46.5 MB #Memory Used# [2025-02-17 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:13:05 [end_date_ymd] => 2025-02-17 15:13:05 [RateCDR] => 1 ) [2025-02-17 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:13:05' and `end` < '2025-02-17 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:13:18] Production.INFO: count ==2465 [2025-02-17 15:13:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:13:05 - End Time 2025-02-17 15:13:05 [2025-02-17 15:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496577', 'tblTempUsageDetail_20' ) start [2025-02-17 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496577', 'tblTempUsageDetail_20' ) end [2025-02-17 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496577', 'tblTempVendorCDR_20' ) start [2025-02-17 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496577', 'tblTempVendorCDR_20' ) end [2025-02-17 15:13:19] Production.INFO: ProcessCDR(1,14496577,1,1,2) [2025-02-17 15:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496577', 'tblTempUsageDetail_20' ) start [2025-02-17 15:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496577', 'tblTempUsageDetail_20' ) end [2025-02-17 15:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:13:23] Production.INFO: ==8252== Releasing lock... [2025-02-17 15:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:13:23] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:14:05 [end_date_ymd] => 2025-02-17 15:14:05 [RateCDR] => 1 ) [2025-02-17 15:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:14:05' and `end` < '2025-02-17 15:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:14:19] Production.INFO: count ==2471 [2025-02-17 15:14:20] Production.ERROR: pbx CDR StartTime 2025-02-17 12:14:05 - End Time 2025-02-17 15:14:05 [2025-02-17 15:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496582', 'tblTempUsageDetail_20' ) start [2025-02-17 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496582', 'tblTempUsageDetail_20' ) end [2025-02-17 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496582', 'tblTempVendorCDR_20' ) start [2025-02-17 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496582', 'tblTempVendorCDR_20' ) end [2025-02-17 15:14:20] Production.INFO: ProcessCDR(1,14496582,1,1,2) [2025-02-17 15:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496582', 'tblTempUsageDetail_20' ) start [2025-02-17 15:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496582', 'tblTempUsageDetail_20' ) end [2025-02-17 15:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:14:25] Production.INFO: ==8336== Releasing lock... [2025-02-17 15:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:14:25] Production.INFO: 46.5 MB #Memory Used# [2025-02-17 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:15:05 [end_date_ymd] => 2025-02-17 15:15:05 [RateCDR] => 1 ) [2025-02-17 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:15:05' and `end` < '2025-02-17 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:15:19] Production.INFO: count ==2467 [2025-02-17 15:15:20] Production.ERROR: pbx CDR StartTime 2025-02-17 12:15:05 - End Time 2025-02-17 15:15:05 [2025-02-17 15:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496587', 'tblTempUsageDetail_20' ) start [2025-02-17 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496587', 'tblTempUsageDetail_20' ) end [2025-02-17 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496587', 'tblTempVendorCDR_20' ) start [2025-02-17 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496587', 'tblTempVendorCDR_20' ) end [2025-02-17 15:15:20] Production.INFO: ProcessCDR(1,14496587,1,1,2) [2025-02-17 15:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496587', 'tblTempUsageDetail_20' ) start [2025-02-17 15:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496587', 'tblTempUsageDetail_20' ) end [2025-02-17 15:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:15:24] Production.INFO: ==8495== Releasing lock... [2025-02-17 15:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:15:24] Production.INFO: 46.5 MB #Memory Used# [2025-02-17 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:16:05 [end_date_ymd] => 2025-02-17 15:16:05 [RateCDR] => 1 ) [2025-02-17 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:16:05' and `end` < '2025-02-17 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:16:18] Production.INFO: count ==2474 [2025-02-17 15:16:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:16:05 - End Time 2025-02-17 15:16:05 [2025-02-17 15:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496592', 'tblTempUsageDetail_20' ) start [2025-02-17 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496592', 'tblTempUsageDetail_20' ) end [2025-02-17 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496592', 'tblTempVendorCDR_20' ) start [2025-02-17 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496592', 'tblTempVendorCDR_20' ) end [2025-02-17 15:16:19] Production.INFO: ProcessCDR(1,14496592,1,1,2) [2025-02-17 15:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496592', 'tblTempUsageDetail_20' ) start [2025-02-17 15:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496592', 'tblTempUsageDetail_20' ) end [2025-02-17 15:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:16:24] Production.INFO: ==8568== Releasing lock... [2025-02-17 15:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:16:24] Production.INFO: 46.5 MB #Memory Used# [2025-02-17 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:17:05 [end_date_ymd] => 2025-02-17 15:17:05 [RateCDR] => 1 ) [2025-02-17 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:17:05' and `end` < '2025-02-17 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:17:19] Production.INFO: count ==2460 [2025-02-17 15:17:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:17:05 - End Time 2025-02-17 15:17:05 [2025-02-17 15:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496597', 'tblTempUsageDetail_20' ) start [2025-02-17 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496597', 'tblTempUsageDetail_20' ) end [2025-02-17 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496597', 'tblTempVendorCDR_20' ) start [2025-02-17 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496597', 'tblTempVendorCDR_20' ) end [2025-02-17 15:17:20] Production.INFO: ProcessCDR(1,14496597,1,1,2) [2025-02-17 15:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496597', 'tblTempUsageDetail_20' ) start [2025-02-17 15:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496597', 'tblTempUsageDetail_20' ) end [2025-02-17 15:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:17:24] Production.INFO: ==8645== Releasing lock... [2025-02-17 15:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:17:24] Production.INFO: 46.5 MB #Memory Used# [2025-02-17 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:18:05 [end_date_ymd] => 2025-02-17 15:18:05 [RateCDR] => 1 ) [2025-02-17 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:18:05' and `end` < '2025-02-17 15:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:18:19] Production.INFO: count ==2454 [2025-02-17 15:18:20] Production.ERROR: pbx CDR StartTime 2025-02-17 12:18:05 - End Time 2025-02-17 15:18:05 [2025-02-17 15:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496602', 'tblTempUsageDetail_20' ) start [2025-02-17 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496602', 'tblTempUsageDetail_20' ) end [2025-02-17 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496602', 'tblTempVendorCDR_20' ) start [2025-02-17 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496602', 'tblTempVendorCDR_20' ) end [2025-02-17 15:18:20] Production.INFO: ProcessCDR(1,14496602,1,1,2) [2025-02-17 15:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496602', 'tblTempUsageDetail_20' ) start [2025-02-17 15:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496602', 'tblTempUsageDetail_20' ) end [2025-02-17 15:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:18:24] Production.INFO: ==8722== Releasing lock... [2025-02-17 15:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:18:24] Production.INFO: 46.5 MB #Memory Used# [2025-02-17 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:19:05 [end_date_ymd] => 2025-02-17 15:19:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 12:19:05' and `end` < '2025-02-17 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-02-17 15:19:20] Production.INFO: count ==2449 [2025-02-17 15:19:20] Production.ERROR: pbx CDR StartTime 2025-02-17 12:19:05 - End Time 2025-02-17 15:19:05 [2025-02-17 15:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496607', 'tblTempUsageDetail_20' ) start [2025-02-17 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496607', 'tblTempUsageDetail_20' ) end [2025-02-17 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496607', 'tblTempVendorCDR_20' ) start [2025-02-17 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496607', 'tblTempVendorCDR_20' ) end [2025-02-17 15:19:21] Production.INFO: ProcessCDR(1,14496607,1,1,2) [2025-02-17 15:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496607', 'tblTempUsageDetail_20' ) start [2025-02-17 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496607', 'tblTempUsageDetail_20' ) end [2025-02-17 15:19:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:19:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:19:26] Production.INFO: ==8801== Releasing lock... [2025-02-17 15:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:19:26] Production.INFO: 46.5 MB #Memory Used# [2025-02-17 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:20:06 [end_date_ymd] => 2025-02-17 15:20:06 [RateCDR] => 1 ) [2025-02-17 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:20:06' and `end` < '2025-02-17 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:20:19] Production.INFO: count ==2452 [2025-02-17 15:20:20] Production.ERROR: pbx CDR StartTime 2025-02-17 12:20:06 - End Time 2025-02-17 15:20:06 [2025-02-17 15:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496613', 'tblTempUsageDetail_20' ) start [2025-02-17 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496613', 'tblTempUsageDetail_20' ) end [2025-02-17 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496613', 'tblTempVendorCDR_20' ) start [2025-02-17 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496613', 'tblTempVendorCDR_20' ) end [2025-02-17 15:20:20] Production.INFO: ProcessCDR(1,14496613,1,1,2) [2025-02-17 15:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496613', 'tblTempUsageDetail_20' ) start [2025-02-17 15:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496613', 'tblTempUsageDetail_20' ) end [2025-02-17 15:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:20:25] Production.INFO: ==8877== Releasing lock... [2025-02-17 15:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:20:25] Production.INFO: 46.5 MB #Memory Used# [2025-02-17 15:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:21:06 [end_date_ymd] => 2025-02-17 15:21:06 [RateCDR] => 1 ) [2025-02-17 15:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:21:06' and `end` < '2025-02-17 15:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:21:19] Production.INFO: count ==2447 [2025-02-17 15:21:20] Production.ERROR: pbx CDR StartTime 2025-02-17 12:21:06 - End Time 2025-02-17 15:21:06 [2025-02-17 15:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496618', 'tblTempUsageDetail_20' ) start [2025-02-17 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496618', 'tblTempUsageDetail_20' ) end [2025-02-17 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496618', 'tblTempVendorCDR_20' ) start [2025-02-17 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496618', 'tblTempVendorCDR_20' ) end [2025-02-17 15:21:20] Production.INFO: ProcessCDR(1,14496618,1,1,2) [2025-02-17 15:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496618', 'tblTempUsageDetail_20' ) start [2025-02-17 15:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496618', 'tblTempUsageDetail_20' ) end [2025-02-17 15:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:21:25] Production.INFO: ==8953== Releasing lock... [2025-02-17 15:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:21:25] Production.INFO: 46.5 MB #Memory Used# [2025-02-17 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:22:05 [end_date_ymd] => 2025-02-17 15:22:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 12:22:05' and `end` < '2025-02-17 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-02-17 15:22:19] Production.INFO: count ==2441 [2025-02-17 15:22:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:22:05 - End Time 2025-02-17 15:22:05 [2025-02-17 15:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496623', 'tblTempUsageDetail_20' ) start [2025-02-17 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496623', 'tblTempUsageDetail_20' ) end [2025-02-17 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496623', 'tblTempVendorCDR_20' ) start [2025-02-17 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496623', 'tblTempVendorCDR_20' ) end [2025-02-17 15:22:20] Production.INFO: ProcessCDR(1,14496623,1,1,2) [2025-02-17 15:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496623', 'tblTempUsageDetail_20' ) start [2025-02-17 15:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496623', 'tblTempUsageDetail_20' ) end [2025-02-17 15:22:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:22:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:22:25] Production.INFO: ==9028== Releasing lock... [2025-02-17 15:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:22:25] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:23:05 [end_date_ymd] => 2025-02-17 15:23:05 [RateCDR] => 1 ) [2025-02-17 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:23:05' and `end` < '2025-02-17 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:23:19] Production.INFO: count ==2430 [2025-02-17 15:23:20] Production.ERROR: pbx CDR StartTime 2025-02-17 12:23:05 - End Time 2025-02-17 15:23:05 [2025-02-17 15:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496628', 'tblTempUsageDetail_20' ) start [2025-02-17 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496628', 'tblTempUsageDetail_20' ) end [2025-02-17 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496628', 'tblTempVendorCDR_20' ) start [2025-02-17 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496628', 'tblTempVendorCDR_20' ) end [2025-02-17 15:23:20] Production.INFO: ProcessCDR(1,14496628,1,1,2) [2025-02-17 15:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496628', 'tblTempUsageDetail_20' ) start [2025-02-17 15:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496628', 'tblTempUsageDetail_20' ) end [2025-02-17 15:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:23:23] Production.INFO: ==9105== Releasing lock... [2025-02-17 15:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:23:23] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:24:05 [end_date_ymd] => 2025-02-17 15:24:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 12:24:05' and `end` < '2025-02-17 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-02-17 15:24:18] Production.INFO: count ==2446 [2025-02-17 15:24:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:24:05 - End Time 2025-02-17 15:24:05 [2025-02-17 15:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496633', 'tblTempUsageDetail_20' ) start [2025-02-17 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496633', 'tblTempUsageDetail_20' ) end [2025-02-17 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496633', 'tblTempVendorCDR_20' ) start [2025-02-17 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496633', 'tblTempVendorCDR_20' ) end [2025-02-17 15:24:19] Production.INFO: ProcessCDR(1,14496633,1,1,2) [2025-02-17 15:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496633', 'tblTempUsageDetail_20' ) start [2025-02-17 15:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496633', 'tblTempUsageDetail_20' ) end [2025-02-17 15:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:24:23] Production.INFO: ==9181== Releasing lock... [2025-02-17 15:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:24:23] Production.INFO: 46.5 MB #Memory Used# [2025-02-17 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:25:05 [end_date_ymd] => 2025-02-17 15:25:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 12:25:05' and `end` < '2025-02-17 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-02-17 15:25:19] Production.INFO: count ==2446 [2025-02-17 15:25:20] Production.ERROR: pbx CDR StartTime 2025-02-17 12:25:05 - End Time 2025-02-17 15:25:05 [2025-02-17 15:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496638', 'tblTempUsageDetail_20' ) start [2025-02-17 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496638', 'tblTempUsageDetail_20' ) end [2025-02-17 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496638', 'tblTempVendorCDR_20' ) start [2025-02-17 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496638', 'tblTempVendorCDR_20' ) end [2025-02-17 15:25:20] Production.INFO: ProcessCDR(1,14496638,1,1,2) [2025-02-17 15:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496638', 'tblTempUsageDetail_20' ) start [2025-02-17 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496638', 'tblTempUsageDetail_20' ) end [2025-02-17 15:25:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:25:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:25:25] Production.INFO: ==9298== Releasing lock... [2025-02-17 15:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:25:25] Production.INFO: 46.5 MB #Memory Used# [2025-02-17 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:26:05 [end_date_ymd] => 2025-02-17 15:26:05 [RateCDR] => 1 ) [2025-02-17 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:26:05' and `end` < '2025-02-17 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:26:19] Production.INFO: count ==2429 [2025-02-17 15:26:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:26:05 - End Time 2025-02-17 15:26:05 [2025-02-17 15:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496643', 'tblTempUsageDetail_20' ) start [2025-02-17 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496643', 'tblTempUsageDetail_20' ) end [2025-02-17 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496643', 'tblTempVendorCDR_20' ) start [2025-02-17 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496643', 'tblTempVendorCDR_20' ) end [2025-02-17 15:26:20] Production.INFO: ProcessCDR(1,14496643,1,1,2) [2025-02-17 15:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496643', 'tblTempUsageDetail_20' ) start [2025-02-17 15:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496643', 'tblTempUsageDetail_20' ) end [2025-02-17 15:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:26:25] Production.INFO: ==9377== Releasing lock... [2025-02-17 15:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:26:25] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:27:05 [end_date_ymd] => 2025-02-17 15:27:05 [RateCDR] => 1 ) [2025-02-17 15:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:27:05' and `end` < '2025-02-17 15:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:27:19] Production.INFO: count ==2431 [2025-02-17 15:27:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:27:05 - End Time 2025-02-17 15:27:05 [2025-02-17 15:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496648', 'tblTempUsageDetail_20' ) start [2025-02-17 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496648', 'tblTempUsageDetail_20' ) end [2025-02-17 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496648', 'tblTempVendorCDR_20' ) start [2025-02-17 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496648', 'tblTempVendorCDR_20' ) end [2025-02-17 15:27:19] Production.INFO: ProcessCDR(1,14496648,1,1,2) [2025-02-17 15:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496648', 'tblTempUsageDetail_20' ) start [2025-02-17 15:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496648', 'tblTempUsageDetail_20' ) end [2025-02-17 15:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:27:24] Production.INFO: ==9451== Releasing lock... [2025-02-17 15:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:27:24] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:28:05 [end_date_ymd] => 2025-02-17 15:28:05 [RateCDR] => 1 ) [2025-02-17 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:28:05' and `end` < '2025-02-17 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:28:18] Production.INFO: count ==2432 [2025-02-17 15:28:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:28:05 - End Time 2025-02-17 15:28:05 [2025-02-17 15:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496653', 'tblTempUsageDetail_20' ) start [2025-02-17 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496653', 'tblTempUsageDetail_20' ) end [2025-02-17 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496653', 'tblTempVendorCDR_20' ) start [2025-02-17 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496653', 'tblTempVendorCDR_20' ) end [2025-02-17 15:28:19] Production.INFO: ProcessCDR(1,14496653,1,1,2) [2025-02-17 15:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496653', 'tblTempUsageDetail_20' ) start [2025-02-17 15:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496653', 'tblTempUsageDetail_20' ) end [2025-02-17 15:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:28:24] Production.INFO: ==9530== Releasing lock... [2025-02-17 15:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:28:24] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:29:05 [end_date_ymd] => 2025-02-17 15:29:05 [RateCDR] => 1 ) [2025-02-17 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:29:05' and `end` < '2025-02-17 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:29:19] Production.INFO: count ==2420 [2025-02-17 15:29:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:29:05 - End Time 2025-02-17 15:29:05 [2025-02-17 15:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496658', 'tblTempUsageDetail_20' ) start [2025-02-17 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496658', 'tblTempUsageDetail_20' ) end [2025-02-17 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496658', 'tblTempVendorCDR_20' ) start [2025-02-17 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496658', 'tblTempVendorCDR_20' ) end [2025-02-17 15:29:19] Production.INFO: ProcessCDR(1,14496658,1,1,2) [2025-02-17 15:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496658', 'tblTempUsageDetail_20' ) start [2025-02-17 15:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496658', 'tblTempUsageDetail_20' ) end [2025-02-17 15:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:29:24] Production.INFO: ==9603== Releasing lock... [2025-02-17 15:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:29:24] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:30:06 [end_date_ymd] => 2025-02-17 15:30:06 [RateCDR] => 1 ) [2025-02-17 15:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:30:06' and `end` < '2025-02-17 15:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:30:19] Production.INFO: count ==2418 [2025-02-17 15:30:20] Production.ERROR: pbx CDR StartTime 2025-02-17 12:30:06 - End Time 2025-02-17 15:30:06 [2025-02-17 15:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496664', 'tblTempUsageDetail_20' ) start [2025-02-17 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496664', 'tblTempUsageDetail_20' ) end [2025-02-17 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496664', 'tblTempVendorCDR_20' ) start [2025-02-17 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496664', 'tblTempVendorCDR_20' ) end [2025-02-17 15:30:20] Production.INFO: ProcessCDR(1,14496664,1,1,2) [2025-02-17 15:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496664', 'tblTempUsageDetail_20' ) start [2025-02-17 15:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496664', 'tblTempUsageDetail_20' ) end [2025-02-17 15:30:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:30:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:30:26] Production.INFO: ==9680== Releasing lock... [2025-02-17 15:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:30:26] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:31:05 [end_date_ymd] => 2025-02-17 15:31:05 [RateCDR] => 1 ) [2025-02-17 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:31:05' and `end` < '2025-02-17 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:31:18] Production.INFO: count ==2430 [2025-02-17 15:31:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:31:05 - End Time 2025-02-17 15:31:05 [2025-02-17 15:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496669', 'tblTempUsageDetail_20' ) start [2025-02-17 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496669', 'tblTempUsageDetail_20' ) end [2025-02-17 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496669', 'tblTempVendorCDR_20' ) start [2025-02-17 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496669', 'tblTempVendorCDR_20' ) end [2025-02-17 15:31:19] Production.INFO: ProcessCDR(1,14496669,1,1,2) [2025-02-17 15:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496669', 'tblTempUsageDetail_20' ) start [2025-02-17 15:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496669', 'tblTempUsageDetail_20' ) end [2025-02-17 15:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:31:23] Production.INFO: ==9756== Releasing lock... [2025-02-17 15:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:31:23] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 15:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:32:04 [end_date_ymd] => 2025-02-17 15:32:04 [RateCDR] => 1 ) [2025-02-17 15:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:32:04' and `end` < '2025-02-17 15:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:32:18] Production.INFO: count ==2428 [2025-02-17 15:32:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:32:04 - End Time 2025-02-17 15:32:04 [2025-02-17 15:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496674', 'tblTempUsageDetail_20' ) start [2025-02-17 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496674', 'tblTempUsageDetail_20' ) end [2025-02-17 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496674', 'tblTempVendorCDR_20' ) start [2025-02-17 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496674', 'tblTempVendorCDR_20' ) end [2025-02-17 15:32:19] Production.INFO: ProcessCDR(1,14496674,1,1,2) [2025-02-17 15:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496674', 'tblTempUsageDetail_20' ) start [2025-02-17 15:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496674', 'tblTempUsageDetail_20' ) end [2025-02-17 15:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:32:22] Production.INFO: ==9827== Releasing lock... [2025-02-17 15:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:32:22] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:33:05 [end_date_ymd] => 2025-02-17 15:33:05 [RateCDR] => 1 ) [2025-02-17 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:33:05' and `end` < '2025-02-17 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:33:18] Production.INFO: count ==2445 [2025-02-17 15:33:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:33:05 - End Time 2025-02-17 15:33:05 [2025-02-17 15:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496679', 'tblTempUsageDetail_20' ) start [2025-02-17 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496679', 'tblTempUsageDetail_20' ) end [2025-02-17 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496679', 'tblTempVendorCDR_20' ) start [2025-02-17 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496679', 'tblTempVendorCDR_20' ) end [2025-02-17 15:33:19] Production.INFO: ProcessCDR(1,14496679,1,1,2) [2025-02-17 15:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496679', 'tblTempUsageDetail_20' ) start [2025-02-17 15:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496679', 'tblTempUsageDetail_20' ) end [2025-02-17 15:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:33:24] Production.INFO: ==9903== Releasing lock... [2025-02-17 15:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:33:24] Production.INFO: 46.5 MB #Memory Used# [2025-02-17 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:34:05 [end_date_ymd] => 2025-02-17 15:34:05 [RateCDR] => 1 ) [2025-02-17 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:34:05' and `end` < '2025-02-17 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:34:19] Production.INFO: count ==2439 [2025-02-17 15:34:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:34:05 - End Time 2025-02-17 15:34:05 [2025-02-17 15:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496684', 'tblTempUsageDetail_20' ) start [2025-02-17 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496684', 'tblTempUsageDetail_20' ) end [2025-02-17 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496684', 'tblTempVendorCDR_20' ) start [2025-02-17 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496684', 'tblTempVendorCDR_20' ) end [2025-02-17 15:34:19] Production.INFO: ProcessCDR(1,14496684,1,1,2) [2025-02-17 15:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496684', 'tblTempUsageDetail_20' ) start [2025-02-17 15:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496684', 'tblTempUsageDetail_20' ) end [2025-02-17 15:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:34:24] Production.INFO: ==9985== Releasing lock... [2025-02-17 15:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:34:24] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:35:05 [end_date_ymd] => 2025-02-17 15:35:05 [RateCDR] => 1 ) [2025-02-17 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:35:05' and `end` < '2025-02-17 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:35:18] Production.INFO: count ==2429 [2025-02-17 15:35:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:35:05 - End Time 2025-02-17 15:35:05 [2025-02-17 15:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496689', 'tblTempUsageDetail_20' ) start [2025-02-17 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496689', 'tblTempUsageDetail_20' ) end [2025-02-17 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496689', 'tblTempVendorCDR_20' ) start [2025-02-17 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496689', 'tblTempVendorCDR_20' ) end [2025-02-17 15:35:19] Production.INFO: ProcessCDR(1,14496689,1,1,2) [2025-02-17 15:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496689', 'tblTempUsageDetail_20' ) start [2025-02-17 15:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496689', 'tblTempUsageDetail_20' ) end [2025-02-17 15:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:35:24] Production.INFO: ==10064== Releasing lock... [2025-02-17 15:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:35:24] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:36:05 [end_date_ymd] => 2025-02-17 15:36:05 [RateCDR] => 1 ) [2025-02-17 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:36:05' and `end` < '2025-02-17 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:36:19] Production.INFO: count ==2413 [2025-02-17 15:36:20] Production.ERROR: pbx CDR StartTime 2025-02-17 12:36:05 - End Time 2025-02-17 15:36:05 [2025-02-17 15:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496694', 'tblTempUsageDetail_20' ) start [2025-02-17 15:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496694', 'tblTempUsageDetail_20' ) end [2025-02-17 15:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496694', 'tblTempVendorCDR_20' ) start [2025-02-17 15:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496694', 'tblTempVendorCDR_20' ) end [2025-02-17 15:36:20] Production.INFO: ProcessCDR(1,14496694,1,1,2) [2025-02-17 15:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496694', 'tblTempUsageDetail_20' ) start [2025-02-17 15:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496694', 'tblTempUsageDetail_20' ) end [2025-02-17 15:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:36:23] Production.INFO: ==10139== Releasing lock... [2025-02-17 15:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:36:23] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:37:05 [end_date_ymd] => 2025-02-17 15:37:05 [RateCDR] => 1 ) [2025-02-17 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:37:05' and `end` < '2025-02-17 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:37:19] Production.INFO: count ==2394 [2025-02-17 15:37:20] Production.ERROR: pbx CDR StartTime 2025-02-17 12:37:05 - End Time 2025-02-17 15:37:05 [2025-02-17 15:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496699', 'tblTempUsageDetail_20' ) start [2025-02-17 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496699', 'tblTempUsageDetail_20' ) end [2025-02-17 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496699', 'tblTempVendorCDR_20' ) start [2025-02-17 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496699', 'tblTempVendorCDR_20' ) end [2025-02-17 15:37:20] Production.INFO: ProcessCDR(1,14496699,1,1,2) [2025-02-17 15:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496699', 'tblTempUsageDetail_20' ) start [2025-02-17 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496699', 'tblTempUsageDetail_20' ) end [2025-02-17 15:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:37:23] Production.INFO: ==10214== Releasing lock... [2025-02-17 15:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:37:23] Production.INFO: 46 MB #Memory Used# [2025-02-17 15:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:38:04 [end_date_ymd] => 2025-02-17 15:38:04 [RateCDR] => 1 ) [2025-02-17 15:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:38:04' and `end` < '2025-02-17 15:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:38:17] Production.INFO: count ==2403 [2025-02-17 15:38:18] Production.ERROR: pbx CDR StartTime 2025-02-17 12:38:04 - End Time 2025-02-17 15:38:04 [2025-02-17 15:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496704', 'tblTempUsageDetail_20' ) start [2025-02-17 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496704', 'tblTempUsageDetail_20' ) end [2025-02-17 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496704', 'tblTempVendorCDR_20' ) start [2025-02-17 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496704', 'tblTempVendorCDR_20' ) end [2025-02-17 15:38:18] Production.INFO: ProcessCDR(1,14496704,1,1,2) [2025-02-17 15:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496704', 'tblTempUsageDetail_20' ) start [2025-02-17 15:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496704', 'tblTempUsageDetail_20' ) end [2025-02-17 15:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:38:23] Production.INFO: ==10294== Releasing lock... [2025-02-17 15:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:38:23] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:39:05 [end_date_ymd] => 2025-02-17 15:39:05 [RateCDR] => 1 ) [2025-02-17 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:39:05' and `end` < '2025-02-17 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:39:18] Production.INFO: count ==2379 [2025-02-17 15:39:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:39:05 - End Time 2025-02-17 15:39:05 [2025-02-17 15:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496709', 'tblTempUsageDetail_20' ) start [2025-02-17 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496709', 'tblTempUsageDetail_20' ) end [2025-02-17 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496709', 'tblTempVendorCDR_20' ) start [2025-02-17 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496709', 'tblTempVendorCDR_20' ) end [2025-02-17 15:39:19] Production.INFO: ProcessCDR(1,14496709,1,1,2) [2025-02-17 15:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496709', 'tblTempUsageDetail_20' ) start [2025-02-17 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496709', 'tblTempUsageDetail_20' ) end [2025-02-17 15:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:39:22] Production.INFO: ==10365== Releasing lock... [2025-02-17 15:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:39:22] Production.INFO: 46 MB #Memory Used# [2025-02-17 15:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:40:07 [end_date_ymd] => 2025-02-17 15:40:07 [RateCDR] => 1 ) [2025-02-17 15:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:40:07' and `end` < '2025-02-17 15:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:40:20] Production.INFO: count ==2374 [2025-02-17 15:40:21] Production.ERROR: pbx CDR StartTime 2025-02-17 12:40:07 - End Time 2025-02-17 15:40:07 [2025-02-17 15:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496715', 'tblTempUsageDetail_20' ) start [2025-02-17 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496715', 'tblTempUsageDetail_20' ) end [2025-02-17 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496715', 'tblTempVendorCDR_20' ) start [2025-02-17 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496715', 'tblTempVendorCDR_20' ) end [2025-02-17 15:40:21] Production.INFO: ProcessCDR(1,14496715,1,1,2) [2025-02-17 15:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496715', 'tblTempUsageDetail_20' ) start [2025-02-17 15:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496715', 'tblTempUsageDetail_20' ) end [2025-02-17 15:40:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:40:25] Production.INFO: ==10489== Releasing lock... [2025-02-17 15:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:40:25] Production.INFO: 45.75 MB #Memory Used# [2025-02-17 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:41:05 [end_date_ymd] => 2025-02-17 15:41:05 [RateCDR] => 1 ) [2025-02-17 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:41:05' and `end` < '2025-02-17 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:41:18] Production.INFO: count ==2369 [2025-02-17 15:41:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:41:05 - End Time 2025-02-17 15:41:05 [2025-02-17 15:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496720', 'tblTempUsageDetail_20' ) start [2025-02-17 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496720', 'tblTempUsageDetail_20' ) end [2025-02-17 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496720', 'tblTempVendorCDR_20' ) start [2025-02-17 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496720', 'tblTempVendorCDR_20' ) end [2025-02-17 15:41:19] Production.INFO: ProcessCDR(1,14496720,1,1,2) [2025-02-17 15:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496720', 'tblTempUsageDetail_20' ) start [2025-02-17 15:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496720', 'tblTempUsageDetail_20' ) end [2025-02-17 15:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:41:24] Production.INFO: ==10575== Releasing lock... [2025-02-17 15:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:41:24] Production.INFO: 45.75 MB #Memory Used# [2025-02-17 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:42:05 [end_date_ymd] => 2025-02-17 15:42:05 [RateCDR] => 1 ) [2025-02-17 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:42:05' and `end` < '2025-02-17 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:42:18] Production.INFO: count ==2359 [2025-02-17 15:42:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:42:05 - End Time 2025-02-17 15:42:05 [2025-02-17 15:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496725', 'tblTempUsageDetail_20' ) start [2025-02-17 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496725', 'tblTempUsageDetail_20' ) end [2025-02-17 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496725', 'tblTempVendorCDR_20' ) start [2025-02-17 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496725', 'tblTempVendorCDR_20' ) end [2025-02-17 15:42:19] Production.INFO: ProcessCDR(1,14496725,1,1,2) [2025-02-17 15:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496725', 'tblTempUsageDetail_20' ) start [2025-02-17 15:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496725', 'tblTempUsageDetail_20' ) end [2025-02-17 15:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:42:24] Production.INFO: ==10657== Releasing lock... [2025-02-17 15:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:42:24] Production.INFO: 46 MB #Memory Used# [2025-02-17 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:43:05 [end_date_ymd] => 2025-02-17 15:43:05 [RateCDR] => 1 ) [2025-02-17 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:43:05' and `end` < '2025-02-17 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:43:18] Production.INFO: count ==2371 [2025-02-17 15:43:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:43:05 - End Time 2025-02-17 15:43:05 [2025-02-17 15:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496730', 'tblTempUsageDetail_20' ) start [2025-02-17 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496730', 'tblTempUsageDetail_20' ) end [2025-02-17 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496730', 'tblTempVendorCDR_20' ) start [2025-02-17 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496730', 'tblTempVendorCDR_20' ) end [2025-02-17 15:43:19] Production.INFO: ProcessCDR(1,14496730,1,1,2) [2025-02-17 15:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496730', 'tblTempUsageDetail_20' ) start [2025-02-17 15:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496730', 'tblTempUsageDetail_20' ) end [2025-02-17 15:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:43:22] Production.INFO: ==10735== Releasing lock... [2025-02-17 15:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:43:22] Production.INFO: 45.75 MB #Memory Used# [2025-02-17 15:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:44:06 [end_date_ymd] => 2025-02-17 15:44:06 [RateCDR] => 1 ) [2025-02-17 15:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:44:06' and `end` < '2025-02-17 15:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:44:19] Production.INFO: count ==2369 [2025-02-17 15:44:20] Production.ERROR: pbx CDR StartTime 2025-02-17 12:44:06 - End Time 2025-02-17 15:44:06 [2025-02-17 15:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496735', 'tblTempUsageDetail_20' ) start [2025-02-17 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496735', 'tblTempUsageDetail_20' ) end [2025-02-17 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496735', 'tblTempVendorCDR_20' ) start [2025-02-17 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496735', 'tblTempVendorCDR_20' ) end [2025-02-17 15:44:20] Production.INFO: ProcessCDR(1,14496735,1,1,2) [2025-02-17 15:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496735', 'tblTempUsageDetail_20' ) start [2025-02-17 15:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496735', 'tblTempUsageDetail_20' ) end [2025-02-17 15:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:44:23] Production.INFO: ==10812== Releasing lock... [2025-02-17 15:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:44:23] Production.INFO: 46 MB #Memory Used# [2025-02-17 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:45:05 [end_date_ymd] => 2025-02-17 15:45:05 [RateCDR] => 1 ) [2025-02-17 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:45:05' and `end` < '2025-02-17 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:45:19] Production.INFO: count ==2357 [2025-02-17 15:45:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:45:05 - End Time 2025-02-17 15:45:05 [2025-02-17 15:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496740', 'tblTempUsageDetail_20' ) start [2025-02-17 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496740', 'tblTempUsageDetail_20' ) end [2025-02-17 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496740', 'tblTempVendorCDR_20' ) start [2025-02-17 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496740', 'tblTempVendorCDR_20' ) end [2025-02-17 15:45:19] Production.INFO: ProcessCDR(1,14496740,1,1,2) [2025-02-17 15:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496740', 'tblTempUsageDetail_20' ) start [2025-02-17 15:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496740', 'tblTempUsageDetail_20' ) end [2025-02-17 15:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:45:23] Production.INFO: ==10892== Releasing lock... [2025-02-17 15:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:45:23] Production.INFO: 45.75 MB #Memory Used# [2025-02-17 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:46:05 [end_date_ymd] => 2025-02-17 15:46:05 [RateCDR] => 1 ) [2025-02-17 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:46:05' and `end` < '2025-02-17 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:46:19] Production.INFO: count ==2346 [2025-02-17 15:46:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:46:05 - End Time 2025-02-17 15:46:05 [2025-02-17 15:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496745', 'tblTempUsageDetail_20' ) start [2025-02-17 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496745', 'tblTempUsageDetail_20' ) end [2025-02-17 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496745', 'tblTempVendorCDR_20' ) start [2025-02-17 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496745', 'tblTempVendorCDR_20' ) end [2025-02-17 15:46:19] Production.INFO: ProcessCDR(1,14496745,1,1,2) [2025-02-17 15:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496745', 'tblTempUsageDetail_20' ) start [2025-02-17 15:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496745', 'tblTempUsageDetail_20' ) end [2025-02-17 15:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:46:24] Production.INFO: ==10972== Releasing lock... [2025-02-17 15:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:46:24] Production.INFO: 45.75 MB #Memory Used# [2025-02-17 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:47:05 [end_date_ymd] => 2025-02-17 15:47:05 [RateCDR] => 1 ) [2025-02-17 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:47:05' and `end` < '2025-02-17 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:47:19] Production.INFO: count ==2354 [2025-02-17 15:47:20] Production.ERROR: pbx CDR StartTime 2025-02-17 12:47:05 - End Time 2025-02-17 15:47:05 [2025-02-17 15:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496750', 'tblTempUsageDetail_20' ) start [2025-02-17 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496750', 'tblTempUsageDetail_20' ) end [2025-02-17 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496750', 'tblTempVendorCDR_20' ) start [2025-02-17 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496750', 'tblTempVendorCDR_20' ) end [2025-02-17 15:47:20] Production.INFO: ProcessCDR(1,14496750,1,1,2) [2025-02-17 15:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496750', 'tblTempUsageDetail_20' ) start [2025-02-17 15:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496750', 'tblTempUsageDetail_20' ) end [2025-02-17 15:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:47:23] Production.INFO: ==11053== Releasing lock... [2025-02-17 15:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:47:23] Production.INFO: 45.75 MB #Memory Used# [2025-02-17 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:48:05 [end_date_ymd] => 2025-02-17 15:48:05 [RateCDR] => 1 ) [2025-02-17 15:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:48:05' and `end` < '2025-02-17 15:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:48:19] Production.INFO: count ==2361 [2025-02-17 15:48:20] Production.ERROR: pbx CDR StartTime 2025-02-17 12:48:05 - End Time 2025-02-17 15:48:05 [2025-02-17 15:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496755', 'tblTempUsageDetail_20' ) start [2025-02-17 15:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496755', 'tblTempUsageDetail_20' ) end [2025-02-17 15:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496755', 'tblTempVendorCDR_20' ) start [2025-02-17 15:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496755', 'tblTempVendorCDR_20' ) end [2025-02-17 15:48:20] Production.INFO: ProcessCDR(1,14496755,1,1,2) [2025-02-17 15:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496755', 'tblTempUsageDetail_20' ) start [2025-02-17 15:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496755', 'tblTempUsageDetail_20' ) end [2025-02-17 15:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:48:23] Production.INFO: ==11129== Releasing lock... [2025-02-17 15:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:48:23] Production.INFO: 45.75 MB #Memory Used# [2025-02-17 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:49:05 [end_date_ymd] => 2025-02-17 15:49:05 [RateCDR] => 1 ) [2025-02-17 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:49:05' and `end` < '2025-02-17 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:49:19] Production.INFO: count ==2369 [2025-02-17 15:49:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:49:05 - End Time 2025-02-17 15:49:05 [2025-02-17 15:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496760', 'tblTempUsageDetail_20' ) start [2025-02-17 15:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496760', 'tblTempUsageDetail_20' ) end [2025-02-17 15:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496760', 'tblTempVendorCDR_20' ) start [2025-02-17 15:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496760', 'tblTempVendorCDR_20' ) end [2025-02-17 15:49:20] Production.INFO: ProcessCDR(1,14496760,1,1,2) [2025-02-17 15:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496760', 'tblTempUsageDetail_20' ) start [2025-02-17 15:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496760', 'tblTempUsageDetail_20' ) end [2025-02-17 15:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:49:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:49:25] Production.INFO: ==11214== Releasing lock... [2025-02-17 15:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:49:25] Production.INFO: 45.75 MB #Memory Used# [2025-02-17 15:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:50:07 [end_date_ymd] => 2025-02-17 15:50:07 [RateCDR] => 1 ) [2025-02-17 15:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:50:07' and `end` < '2025-02-17 15:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:50:20] Production.INFO: count ==2377 [2025-02-17 15:50:21] Production.ERROR: pbx CDR StartTime 2025-02-17 12:50:07 - End Time 2025-02-17 15:50:07 [2025-02-17 15:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496766', 'tblTempUsageDetail_20' ) start [2025-02-17 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496766', 'tblTempUsageDetail_20' ) end [2025-02-17 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496766', 'tblTempVendorCDR_20' ) start [2025-02-17 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496766', 'tblTempVendorCDR_20' ) end [2025-02-17 15:50:21] Production.INFO: ProcessCDR(1,14496766,1,1,2) [2025-02-17 15:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496766', 'tblTempUsageDetail_20' ) start [2025-02-17 15:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496766', 'tblTempUsageDetail_20' ) end [2025-02-17 15:50:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:50:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:50:26] Production.INFO: ==11299== Releasing lock... [2025-02-17 15:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:50:26] Production.INFO: 46 MB #Memory Used# [2025-02-17 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:51:05 [end_date_ymd] => 2025-02-17 15:51:05 [RateCDR] => 1 ) [2025-02-17 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:51:05' and `end` < '2025-02-17 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:51:20] Production.INFO: count ==2378 [2025-02-17 15:51:20] Production.ERROR: pbx CDR StartTime 2025-02-17 12:51:05 - End Time 2025-02-17 15:51:05 [2025-02-17 15:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496771', 'tblTempUsageDetail_20' ) start [2025-02-17 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496771', 'tblTempUsageDetail_20' ) end [2025-02-17 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496771', 'tblTempVendorCDR_20' ) start [2025-02-17 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496771', 'tblTempVendorCDR_20' ) end [2025-02-17 15:51:21] Production.INFO: ProcessCDR(1,14496771,1,1,2) [2025-02-17 15:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496771', 'tblTempUsageDetail_20' ) start [2025-02-17 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496771', 'tblTempUsageDetail_20' ) end [2025-02-17 15:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:51:26] Production.INFO: ==11381== Releasing lock... [2025-02-17 15:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:51:26] Production.INFO: 46 MB #Memory Used# [2025-02-17 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:52:05 [end_date_ymd] => 2025-02-17 15:52:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 12:52:05' and `end` < '2025-02-17 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-02-17 15:52:19] Production.INFO: count ==2415 [2025-02-17 15:52:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:52:05 - End Time 2025-02-17 15:52:05 [2025-02-17 15:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496776', 'tblTempUsageDetail_20' ) start [2025-02-17 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496776', 'tblTempUsageDetail_20' ) end [2025-02-17 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496776', 'tblTempVendorCDR_20' ) start [2025-02-17 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496776', 'tblTempVendorCDR_20' ) end [2025-02-17 15:52:20] Production.INFO: ProcessCDR(1,14496776,1,1,2) [2025-02-17 15:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496776', 'tblTempUsageDetail_20' ) start [2025-02-17 15:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496776', 'tblTempUsageDetail_20' ) end [2025-02-17 15:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:52:23] Production.INFO: ==11461== Releasing lock... [2025-02-17 15:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:52:23] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:53:05 [end_date_ymd] => 2025-02-17 15:53:05 [RateCDR] => 1 ) [2025-02-17 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:53:05' and `end` < '2025-02-17 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:53:19] Production.INFO: count ==2418 [2025-02-17 15:53:20] Production.ERROR: pbx CDR StartTime 2025-02-17 12:53:05 - End Time 2025-02-17 15:53:05 [2025-02-17 15:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496781', 'tblTempUsageDetail_20' ) start [2025-02-17 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496781', 'tblTempUsageDetail_20' ) end [2025-02-17 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496781', 'tblTempVendorCDR_20' ) start [2025-02-17 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496781', 'tblTempVendorCDR_20' ) end [2025-02-17 15:53:20] Production.INFO: ProcessCDR(1,14496781,1,1,2) [2025-02-17 15:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496781', 'tblTempUsageDetail_20' ) start [2025-02-17 15:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496781', 'tblTempUsageDetail_20' ) end [2025-02-17 15:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:53:24] Production.INFO: ==11550== Releasing lock... [2025-02-17 15:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:53:24] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:54:05 [end_date_ymd] => 2025-02-17 15:54:05 [RateCDR] => 1 ) [2025-02-17 15:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:54:05' and `end` < '2025-02-17 15:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:54:19] Production.INFO: count ==2420 [2025-02-17 15:54:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:54:05 - End Time 2025-02-17 15:54:05 [2025-02-17 15:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496786', 'tblTempUsageDetail_20' ) start [2025-02-17 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496786', 'tblTempUsageDetail_20' ) end [2025-02-17 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496786', 'tblTempVendorCDR_20' ) start [2025-02-17 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496786', 'tblTempVendorCDR_20' ) end [2025-02-17 15:54:19] Production.INFO: ProcessCDR(1,14496786,1,1,2) [2025-02-17 15:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496786', 'tblTempUsageDetail_20' ) start [2025-02-17 15:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496786', 'tblTempUsageDetail_20' ) end [2025-02-17 15:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:54:23] Production.INFO: ==11631== Releasing lock... [2025-02-17 15:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:54:23] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:55:05 [end_date_ymd] => 2025-02-17 15:55:05 [RateCDR] => 1 ) [2025-02-17 15:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:55:05' and `end` < '2025-02-17 15:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:55:18] Production.INFO: count ==2424 [2025-02-17 15:55:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:55:05 - End Time 2025-02-17 15:55:05 [2025-02-17 15:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496791', 'tblTempUsageDetail_20' ) start [2025-02-17 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496791', 'tblTempUsageDetail_20' ) end [2025-02-17 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496791', 'tblTempVendorCDR_20' ) start [2025-02-17 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496791', 'tblTempVendorCDR_20' ) end [2025-02-17 15:55:19] Production.INFO: ProcessCDR(1,14496791,1,1,2) [2025-02-17 15:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496791', 'tblTempUsageDetail_20' ) start [2025-02-17 15:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496791', 'tblTempUsageDetail_20' ) end [2025-02-17 15:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:55:24] Production.INFO: ==11710== Releasing lock... [2025-02-17 15:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:55:24] Production.INFO: 46.5 MB #Memory Used# [2025-02-17 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:56:05 [end_date_ymd] => 2025-02-17 15:56:05 [RateCDR] => 1 ) [2025-02-17 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:56:05' and `end` < '2025-02-17 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:56:19] Production.INFO: count ==2421 [2025-02-17 15:56:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:56:05 - End Time 2025-02-17 15:56:05 [2025-02-17 15:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496796', 'tblTempUsageDetail_20' ) start [2025-02-17 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496796', 'tblTempUsageDetail_20' ) end [2025-02-17 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496796', 'tblTempVendorCDR_20' ) start [2025-02-17 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496796', 'tblTempVendorCDR_20' ) end [2025-02-17 15:56:19] Production.INFO: ProcessCDR(1,14496796,1,1,2) [2025-02-17 15:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496796', 'tblTempUsageDetail_20' ) start [2025-02-17 15:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496796', 'tblTempUsageDetail_20' ) end [2025-02-17 15:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:56:23] Production.INFO: ==11835== Releasing lock... [2025-02-17 15:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:56:23] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:57:05 [end_date_ymd] => 2025-02-17 15:57:05 [RateCDR] => 1 ) [2025-02-17 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 12:57:05' and `end` < '2025-02-17 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 15:57:19] Production.INFO: count ==2424 [2025-02-17 15:57:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:57:05 - End Time 2025-02-17 15:57:05 [2025-02-17 15:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496801', 'tblTempUsageDetail_20' ) start [2025-02-17 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496801', 'tblTempUsageDetail_20' ) end [2025-02-17 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496801', 'tblTempVendorCDR_20' ) start [2025-02-17 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496801', 'tblTempVendorCDR_20' ) end [2025-02-17 15:57:19] Production.INFO: ProcessCDR(1,14496801,1,1,2) [2025-02-17 15:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496801', 'tblTempUsageDetail_20' ) start [2025-02-17 15:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496801', 'tblTempUsageDetail_20' ) end [2025-02-17 15:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:57:23] Production.INFO: ==11913== Releasing lock... [2025-02-17 15:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:57:23] Production.INFO: 46.5 MB #Memory Used# [2025-02-17 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:58:05 [end_date_ymd] => 2025-02-17 15:58:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 12:58:05' and `end` < '2025-02-17 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-02-17 15:58:20] Production.INFO: count ==2412 [2025-02-17 15:58:20] Production.ERROR: pbx CDR StartTime 2025-02-17 12:58:05 - End Time 2025-02-17 15:58:05 [2025-02-17 15:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496806', 'tblTempUsageDetail_20' ) start [2025-02-17 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496806', 'tblTempUsageDetail_20' ) end [2025-02-17 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496806', 'tblTempVendorCDR_20' ) start [2025-02-17 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496806', 'tblTempVendorCDR_20' ) end [2025-02-17 15:58:20] Production.INFO: ProcessCDR(1,14496806,1,1,2) [2025-02-17 15:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496806', 'tblTempUsageDetail_20' ) start [2025-02-17 15:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496806', 'tblTempUsageDetail_20' ) end [2025-02-17 15:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:58:25] Production.INFO: ==11993== Releasing lock... [2025-02-17 15:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:58:25] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 12:59:05 [end_date_ymd] => 2025-02-17 15:59:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 12:59:05' and `end` < '2025-02-17 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-02-17 15:59:18] Production.INFO: count ==2404 [2025-02-17 15:59:19] Production.ERROR: pbx CDR StartTime 2025-02-17 12:59:05 - End Time 2025-02-17 15:59:05 [2025-02-17 15:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496811', 'tblTempUsageDetail_20' ) start [2025-02-17 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496811', 'tblTempUsageDetail_20' ) end [2025-02-17 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496811', 'tblTempVendorCDR_20' ) start [2025-02-17 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496811', 'tblTempVendorCDR_20' ) end [2025-02-17 15:59:19] Production.INFO: ProcessCDR(1,14496811,1,1,2) [2025-02-17 15:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 15:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 15:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496811', 'tblTempUsageDetail_20' ) start [2025-02-17 15:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496811', 'tblTempUsageDetail_20' ) end [2025-02-17 15:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 15:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 15:59:22] Production.INFO: ==12072== Releasing lock... [2025-02-17 15:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 15:59:22] Production.INFO: 45.75 MB #Memory Used# [2025-02-17 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:00:06 [end_date_ymd] => 2025-02-17 16:00:06 [RateCDR] => 1 ) [2025-02-17 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:00:06' and `end` < '2025-02-17 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:00:19] Production.INFO: count ==2393 [2025-02-17 16:00:20] Production.ERROR: pbx CDR StartTime 2025-02-17 13:00:06 - End Time 2025-02-17 16:00:06 [2025-02-17 16:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496817', 'tblTempUsageDetail_20' ) start [2025-02-17 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496817', 'tblTempUsageDetail_20' ) end [2025-02-17 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496817', 'tblTempVendorCDR_20' ) start [2025-02-17 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496817', 'tblTempVendorCDR_20' ) end [2025-02-17 16:00:20] Production.INFO: ProcessCDR(1,14496817,1,1,2) [2025-02-17 16:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496817', 'tblTempUsageDetail_20' ) start [2025-02-17 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496817', 'tblTempUsageDetail_20' ) end [2025-02-17 16:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:00:23] Production.INFO: ==12157== Releasing lock... [2025-02-17 16:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:00:23] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:01:05 [end_date_ymd] => 2025-02-17 16:01:05 [RateCDR] => 1 ) [2025-02-17 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:01:05' and `end` < '2025-02-17 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:01:19] Production.INFO: count ==2428 [2025-02-17 16:01:19] Production.ERROR: pbx CDR StartTime 2025-02-17 13:01:05 - End Time 2025-02-17 16:01:05 [2025-02-17 16:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496822', 'tblTempUsageDetail_20' ) start [2025-02-17 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496822', 'tblTempUsageDetail_20' ) end [2025-02-17 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496822', 'tblTempVendorCDR_20' ) start [2025-02-17 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496822', 'tblTempVendorCDR_20' ) end [2025-02-17 16:01:19] Production.INFO: ProcessCDR(1,14496822,1,1,2) [2025-02-17 16:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496822', 'tblTempUsageDetail_20' ) start [2025-02-17 16:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496822', 'tblTempUsageDetail_20' ) end [2025-02-17 16:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:01:24] Production.INFO: ==12247== Releasing lock... [2025-02-17 16:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:01:24] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:02:06 [end_date_ymd] => 2025-02-17 16:02:06 [RateCDR] => 1 ) [2025-02-17 16:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:02:06' and `end` < '2025-02-17 16:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:02:19] Production.INFO: count ==2401 [2025-02-17 16:02:20] Production.ERROR: pbx CDR StartTime 2025-02-17 13:02:06 - End Time 2025-02-17 16:02:06 [2025-02-17 16:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496827', 'tblTempUsageDetail_20' ) start [2025-02-17 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496827', 'tblTempUsageDetail_20' ) end [2025-02-17 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496827', 'tblTempVendorCDR_20' ) start [2025-02-17 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496827', 'tblTempVendorCDR_20' ) end [2025-02-17 16:02:20] Production.INFO: ProcessCDR(1,14496827,1,1,2) [2025-02-17 16:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496827', 'tblTempUsageDetail_20' ) start [2025-02-17 16:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496827', 'tblTempUsageDetail_20' ) end [2025-02-17 16:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:02:23] Production.INFO: ==12333== Releasing lock... [2025-02-17 16:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:02:23] Production.INFO: 45.75 MB #Memory Used# [2025-02-17 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:03:05 [end_date_ymd] => 2025-02-17 16:03:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 13:03:05' and `end` < '2025-02-17 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-02-17 16:03:18] Production.INFO: count ==2398 [2025-02-17 16:03:19] Production.ERROR: pbx CDR StartTime 2025-02-17 13:03:05 - End Time 2025-02-17 16:03:05 [2025-02-17 16:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496832', 'tblTempUsageDetail_20' ) start [2025-02-17 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496832', 'tblTempUsageDetail_20' ) end [2025-02-17 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496832', 'tblTempVendorCDR_20' ) start [2025-02-17 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496832', 'tblTempVendorCDR_20' ) end [2025-02-17 16:03:19] Production.INFO: ProcessCDR(1,14496832,1,1,2) [2025-02-17 16:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496832', 'tblTempUsageDetail_20' ) start [2025-02-17 16:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496832', 'tblTempUsageDetail_20' ) end [2025-02-17 16:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:03:22] Production.INFO: ==12418== Releasing lock... [2025-02-17 16:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:03:22] Production.INFO: 46 MB #Memory Used# [2025-02-17 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:04:05 [end_date_ymd] => 2025-02-17 16:04:05 [RateCDR] => 1 ) [2025-02-17 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:04:05' and `end` < '2025-02-17 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:04:23] Production.INFO: count ==2407 [2025-02-17 16:04:23] Production.ERROR: pbx CDR StartTime 2025-02-17 13:04:05 - End Time 2025-02-17 16:04:05 [2025-02-17 16:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496837', 'tblTempUsageDetail_20' ) start [2025-02-17 16:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496837', 'tblTempUsageDetail_20' ) end [2025-02-17 16:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496837', 'tblTempVendorCDR_20' ) start [2025-02-17 16:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496837', 'tblTempVendorCDR_20' ) end [2025-02-17 16:04:24] Production.INFO: ProcessCDR(1,14496837,1,1,2) [2025-02-17 16:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496837', 'tblTempUsageDetail_20' ) start [2025-02-17 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496837', 'tblTempUsageDetail_20' ) end [2025-02-17 16:04:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:04:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:04:27] Production.INFO: ==12508== Releasing lock... [2025-02-17 16:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:04:27] Production.INFO: 46 MB #Memory Used# [2025-02-17 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:05:05 [end_date_ymd] => 2025-02-17 16:05:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 13:05:05' and `end` < '2025-02-17 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-02-17 16:05:18] Production.INFO: count ==2408 [2025-02-17 16:05:19] Production.ERROR: pbx CDR StartTime 2025-02-17 13:05:05 - End Time 2025-02-17 16:05:05 [2025-02-17 16:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496842', 'tblTempUsageDetail_20' ) start [2025-02-17 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496842', 'tblTempUsageDetail_20' ) end [2025-02-17 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496842', 'tblTempVendorCDR_20' ) start [2025-02-17 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496842', 'tblTempVendorCDR_20' ) end [2025-02-17 16:05:19] Production.INFO: ProcessCDR(1,14496842,1,1,2) [2025-02-17 16:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496842', 'tblTempUsageDetail_20' ) start [2025-02-17 16:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496842', 'tblTempUsageDetail_20' ) end [2025-02-17 16:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:05:22] Production.INFO: ==12585== Releasing lock... [2025-02-17 16:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:05:22] Production.INFO: 46 MB #Memory Used# [2025-02-17 16:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:06:04 [end_date_ymd] => 2025-02-17 16:06:04 [RateCDR] => 1 ) [2025-02-17 16:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:06:04' and `end` < '2025-02-17 16: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-02-17 16:06:19] Production.INFO: count ==2404 [2025-02-17 16:06:20] Production.ERROR: pbx CDR StartTime 2025-02-17 13:06:04 - End Time 2025-02-17 16:06:04 [2025-02-17 16:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496847', 'tblTempUsageDetail_20' ) start [2025-02-17 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496847', 'tblTempUsageDetail_20' ) end [2025-02-17 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496847', 'tblTempVendorCDR_20' ) start [2025-02-17 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496847', 'tblTempVendorCDR_20' ) end [2025-02-17 16:06:20] Production.INFO: ProcessCDR(1,14496847,1,1,2) [2025-02-17 16:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496847', 'tblTempUsageDetail_20' ) start [2025-02-17 16:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496847', 'tblTempUsageDetail_20' ) end [2025-02-17 16:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:06:23] Production.INFO: ==12682== Releasing lock... [2025-02-17 16:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:06:23] Production.INFO: 46 MB #Memory Used# [2025-02-17 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:07:06 [end_date_ymd] => 2025-02-17 16:07:06 [RateCDR] => 1 ) [2025-02-17 16:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:07:06' and `end` < '2025-02-17 16:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:07:22] Production.INFO: count ==2396 [2025-02-17 16:07:22] Production.ERROR: pbx CDR StartTime 2025-02-17 13:07:06 - End Time 2025-02-17 16:07:06 [2025-02-17 16:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496852', 'tblTempUsageDetail_20' ) start [2025-02-17 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496852', 'tblTempUsageDetail_20' ) end [2025-02-17 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496852', 'tblTempVendorCDR_20' ) start [2025-02-17 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496852', 'tblTempVendorCDR_20' ) end [2025-02-17 16:07:22] Production.INFO: ProcessCDR(1,14496852,1,1,2) [2025-02-17 16:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496852', 'tblTempUsageDetail_20' ) start [2025-02-17 16:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496852', 'tblTempUsageDetail_20' ) end [2025-02-17 16:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:07:25] Production.INFO: ==12780== Releasing lock... [2025-02-17 16:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:07:25] Production.INFO: 46 MB #Memory Used# [2025-02-17 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:08:05 [end_date_ymd] => 2025-02-17 16:08:05 [RateCDR] => 1 ) [2025-02-17 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:08:05' and `end` < '2025-02-17 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:08:19] Production.INFO: count ==2398 [2025-02-17 16:08:19] Production.ERROR: pbx CDR StartTime 2025-02-17 13:08:05 - End Time 2025-02-17 16:08:05 [2025-02-17 16:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496857', 'tblTempUsageDetail_20' ) start [2025-02-17 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496857', 'tblTempUsageDetail_20' ) end [2025-02-17 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496857', 'tblTempVendorCDR_20' ) start [2025-02-17 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496857', 'tblTempVendorCDR_20' ) end [2025-02-17 16:08:19] Production.INFO: ProcessCDR(1,14496857,1,1,2) [2025-02-17 16:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496857', 'tblTempUsageDetail_20' ) start [2025-02-17 16:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496857', 'tblTempUsageDetail_20' ) end [2025-02-17 16:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:08:24] Production.INFO: ==12866== Releasing lock... [2025-02-17 16:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:08:24] Production.INFO: 46 MB #Memory Used# [2025-02-17 16:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:09:06 [end_date_ymd] => 2025-02-17 16:09:06 [RateCDR] => 1 ) [2025-02-17 16:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:09:06' and `end` < '2025-02-17 16:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:09:21] Production.INFO: count ==2414 [2025-02-17 16:09:22] Production.ERROR: pbx CDR StartTime 2025-02-17 13:09:06 - End Time 2025-02-17 16:09:06 [2025-02-17 16:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496862', 'tblTempUsageDetail_20' ) start [2025-02-17 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496862', 'tblTempUsageDetail_20' ) end [2025-02-17 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496862', 'tblTempVendorCDR_20' ) start [2025-02-17 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496862', 'tblTempVendorCDR_20' ) end [2025-02-17 16:09:22] Production.INFO: ProcessCDR(1,14496862,1,1,2) [2025-02-17 16:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496862', 'tblTempUsageDetail_20' ) start [2025-02-17 16:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496862', 'tblTempUsageDetail_20' ) end [2025-02-17 16:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:09:25] Production.INFO: ==12960== Releasing lock... [2025-02-17 16:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:09:25] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 16:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:10:05 [end_date_ymd] => 2025-02-17 16:10:05 [RateCDR] => 1 ) [2025-02-17 16:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:10:05' and `end` < '2025-02-17 16:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:10:19] Production.INFO: count ==2434 [2025-02-17 16:10:20] Production.ERROR: pbx CDR StartTime 2025-02-17 13:10:05 - End Time 2025-02-17 16:10:05 [2025-02-17 16:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496867', 'tblTempUsageDetail_20' ) start [2025-02-17 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496867', 'tblTempUsageDetail_20' ) end [2025-02-17 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496867', 'tblTempVendorCDR_20' ) start [2025-02-17 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496867', 'tblTempVendorCDR_20' ) end [2025-02-17 16:10:20] Production.INFO: ProcessCDR(1,14496867,1,1,2) [2025-02-17 16:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496867', 'tblTempUsageDetail_20' ) start [2025-02-17 16:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496867', 'tblTempUsageDetail_20' ) end [2025-02-17 16:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:10:23] Production.INFO: ==13052== Releasing lock... [2025-02-17 16:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:10:23] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:11:05 [end_date_ymd] => 2025-02-17 16:11:05 [RateCDR] => 1 ) [2025-02-17 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:11:05' and `end` < '2025-02-17 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:11:19] Production.INFO: count ==2385 [2025-02-17 16:11:19] Production.ERROR: pbx CDR StartTime 2025-02-17 13:11:05 - End Time 2025-02-17 16:11:05 [2025-02-17 16:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496873', 'tblTempUsageDetail_20' ) start [2025-02-17 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496873', 'tblTempUsageDetail_20' ) end [2025-02-17 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496873', 'tblTempVendorCDR_20' ) start [2025-02-17 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496873', 'tblTempVendorCDR_20' ) end [2025-02-17 16:11:19] Production.INFO: ProcessCDR(1,14496873,1,1,2) [2025-02-17 16:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496873', 'tblTempUsageDetail_20' ) start [2025-02-17 16:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496873', 'tblTempUsageDetail_20' ) end [2025-02-17 16:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:11:24] Production.INFO: ==13184== Releasing lock... [2025-02-17 16:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:11:24] Production.INFO: 46 MB #Memory Used# [2025-02-17 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:12:05 [end_date_ymd] => 2025-02-17 16:12:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 13:12:05' and `end` < '2025-02-17 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-02-17 16:12:18] Production.INFO: count ==2392 [2025-02-17 16:12:19] Production.ERROR: pbx CDR StartTime 2025-02-17 13:12:05 - End Time 2025-02-17 16:12:05 [2025-02-17 16:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496878', 'tblTempUsageDetail_20' ) start [2025-02-17 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496878', 'tblTempUsageDetail_20' ) end [2025-02-17 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496878', 'tblTempVendorCDR_20' ) start [2025-02-17 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496878', 'tblTempVendorCDR_20' ) end [2025-02-17 16:12:19] Production.INFO: ProcessCDR(1,14496878,1,1,2) [2025-02-17 16:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496878', 'tblTempUsageDetail_20' ) start [2025-02-17 16:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496878', 'tblTempUsageDetail_20' ) end [2025-02-17 16:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:12:24] Production.INFO: ==13284== Releasing lock... [2025-02-17 16:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:12:24] Production.INFO: 46 MB #Memory Used# [2025-02-17 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:13:05 [end_date_ymd] => 2025-02-17 16:13:05 [RateCDR] => 1 ) [2025-02-17 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:13:05' and `end` < '2025-02-17 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:13:20] Production.INFO: count ==2395 [2025-02-17 16:13:21] Production.ERROR: pbx CDR StartTime 2025-02-17 13:13:05 - End Time 2025-02-17 16:13:05 [2025-02-17 16:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496883', 'tblTempUsageDetail_20' ) start [2025-02-17 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496883', 'tblTempUsageDetail_20' ) end [2025-02-17 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496883', 'tblTempVendorCDR_20' ) start [2025-02-17 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496883', 'tblTempVendorCDR_20' ) end [2025-02-17 16:13:21] Production.INFO: ProcessCDR(1,14496883,1,1,2) [2025-02-17 16:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496883', 'tblTempUsageDetail_20' ) start [2025-02-17 16:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496883', 'tblTempUsageDetail_20' ) end [2025-02-17 16:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:13:26] Production.INFO: ==13371== Releasing lock... [2025-02-17 16:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:13:26] Production.INFO: 46 MB #Memory Used# [2025-02-17 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:14:05 [end_date_ymd] => 2025-02-17 16:14:05 [RateCDR] => 1 ) [2025-02-17 16:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:14:05' and `end` < '2025-02-17 16:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:14:18] Production.INFO: count ==2397 [2025-02-17 16:14:19] Production.ERROR: pbx CDR StartTime 2025-02-17 13:14:05 - End Time 2025-02-17 16:14:05 [2025-02-17 16:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496888', 'tblTempUsageDetail_20' ) start [2025-02-17 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496888', 'tblTempUsageDetail_20' ) end [2025-02-17 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496888', 'tblTempVendorCDR_20' ) start [2025-02-17 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496888', 'tblTempVendorCDR_20' ) end [2025-02-17 16:14:19] Production.INFO: ProcessCDR(1,14496888,1,1,2) [2025-02-17 16:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496888', 'tblTempUsageDetail_20' ) start [2025-02-17 16:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496888', 'tblTempUsageDetail_20' ) end [2025-02-17 16:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:14:24] Production.INFO: ==13455== Releasing lock... [2025-02-17 16:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:14:24] Production.INFO: 46 MB #Memory Used# [2025-02-17 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:15:05 [end_date_ymd] => 2025-02-17 16:15:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 13:15:05' and `end` < '2025-02-17 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-02-17 16:15:18] Production.INFO: count ==2407 [2025-02-17 16:15:19] Production.ERROR: pbx CDR StartTime 2025-02-17 13:15:05 - End Time 2025-02-17 16:15:05 [2025-02-17 16:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496893', 'tblTempUsageDetail_20' ) start [2025-02-17 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496893', 'tblTempUsageDetail_20' ) end [2025-02-17 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496893', 'tblTempVendorCDR_20' ) start [2025-02-17 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496893', 'tblTempVendorCDR_20' ) end [2025-02-17 16:15:19] Production.INFO: ProcessCDR(1,14496893,1,1,2) [2025-02-17 16:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496893', 'tblTempUsageDetail_20' ) start [2025-02-17 16:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496893', 'tblTempUsageDetail_20' ) end [2025-02-17 16:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:15:24] Production.INFO: ==13550== Releasing lock... [2025-02-17 16:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:15:24] Production.INFO: 45.75 MB #Memory Used# [2025-02-17 16:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:16:04 [end_date_ymd] => 2025-02-17 16:16:04 [RateCDR] => 1 ) [2025-02-17 16:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:16:04' and `end` < '2025-02-17 16:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:16:18] Production.INFO: count ==2426 [2025-02-17 16:16:19] Production.ERROR: pbx CDR StartTime 2025-02-17 13:16:04 - End Time 2025-02-17 16:16:04 [2025-02-17 16:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496898', 'tblTempUsageDetail_20' ) start [2025-02-17 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496898', 'tblTempUsageDetail_20' ) end [2025-02-17 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496898', 'tblTempVendorCDR_20' ) start [2025-02-17 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496898', 'tblTempVendorCDR_20' ) end [2025-02-17 16:16:19] Production.INFO: ProcessCDR(1,14496898,1,1,2) [2025-02-17 16:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496898', 'tblTempUsageDetail_20' ) start [2025-02-17 16:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496898', 'tblTempUsageDetail_20' ) end [2025-02-17 16:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:16:23] Production.INFO: ==13642== Releasing lock... [2025-02-17 16:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:16:23] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:17:05 [end_date_ymd] => 2025-02-17 16:17:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 13:17:05' and `end` < '2025-02-17 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-02-17 16:17:20] Production.INFO: count ==2441 [2025-02-17 16:17:20] Production.ERROR: pbx CDR StartTime 2025-02-17 13:17:05 - End Time 2025-02-17 16:17:05 [2025-02-17 16:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496903', 'tblTempUsageDetail_20' ) start [2025-02-17 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496903', 'tblTempUsageDetail_20' ) end [2025-02-17 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496903', 'tblTempVendorCDR_20' ) start [2025-02-17 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496903', 'tblTempVendorCDR_20' ) end [2025-02-17 16:17:21] Production.INFO: ProcessCDR(1,14496903,1,1,2) [2025-02-17 16:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496903', 'tblTempUsageDetail_20' ) start [2025-02-17 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496903', 'tblTempUsageDetail_20' ) end [2025-02-17 16:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:17:26] Production.INFO: ==13731== Releasing lock... [2025-02-17 16:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:17:26] Production.INFO: 46.25 MB #Memory Used# [2025-02-17 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:18:05 [end_date_ymd] => 2025-02-17 16:18:05 [RateCDR] => 1 ) [2025-02-17 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:18:05' and `end` < '2025-02-17 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:18:19] Production.INFO: count ==2458 [2025-02-17 16:18:20] Production.ERROR: pbx CDR StartTime 2025-02-17 13:18:05 - End Time 2025-02-17 16:18:05 [2025-02-17 16:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496908', 'tblTempUsageDetail_20' ) start [2025-02-17 16:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496908', 'tblTempUsageDetail_20' ) end [2025-02-17 16:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496908', 'tblTempVendorCDR_20' ) start [2025-02-17 16:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496908', 'tblTempVendorCDR_20' ) end [2025-02-17 16:18:20] Production.INFO: ProcessCDR(1,14496908,1,1,2) [2025-02-17 16:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496908', 'tblTempUsageDetail_20' ) start [2025-02-17 16:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496908', 'tblTempUsageDetail_20' ) end [2025-02-17 16:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:18:25] Production.INFO: ==13832== Releasing lock... [2025-02-17 16:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:18:25] Production.INFO: 46.5 MB #Memory Used# [2025-02-17 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:19:05 [end_date_ymd] => 2025-02-17 16:19:05 [RateCDR] => 1 ) [2025-02-17 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:19:05' and `end` < '2025-02-17 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:19:18] Production.INFO: count ==2450 [2025-02-17 16:19:19] Production.ERROR: pbx CDR StartTime 2025-02-17 13:19:05 - End Time 2025-02-17 16:19:05 [2025-02-17 16:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496913', 'tblTempUsageDetail_20' ) start [2025-02-17 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496913', 'tblTempUsageDetail_20' ) end [2025-02-17 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496913', 'tblTempVendorCDR_20' ) start [2025-02-17 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496913', 'tblTempVendorCDR_20' ) end [2025-02-17 16:19:19] Production.INFO: ProcessCDR(1,14496913,1,1,2) [2025-02-17 16:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496913', 'tblTempUsageDetail_20' ) start [2025-02-17 16:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496913', 'tblTempUsageDetail_20' ) end [2025-02-17 16:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:19:24] Production.INFO: ==13920== Releasing lock... [2025-02-17 16:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:19:24] Production.INFO: 46.5 MB #Memory Used# [2025-02-17 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:20:06 [end_date_ymd] => 2025-02-17 16:20:06 [RateCDR] => 1 ) [2025-02-17 16:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:20:06' and `end` < '2025-02-17 16:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:20:23] Production.INFO: count ==2452 [2025-02-17 16:20:24] Production.ERROR: pbx CDR StartTime 2025-02-17 13:20:06 - End Time 2025-02-17 16:20:06 [2025-02-17 16:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496919', 'tblTempUsageDetail_20' ) start [2025-02-17 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496919', 'tblTempUsageDetail_20' ) end [2025-02-17 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496919', 'tblTempVendorCDR_20' ) start [2025-02-17 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496919', 'tblTempVendorCDR_20' ) end [2025-02-17 16:20:24] Production.INFO: ProcessCDR(1,14496919,1,1,2) [2025-02-17 16:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496919', 'tblTempUsageDetail_20' ) start [2025-02-17 16:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496919', 'tblTempUsageDetail_20' ) end [2025-02-17 16:20:29] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:20:29] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:20:29] Production.INFO: ==14012== Releasing lock... [2025-02-17 16:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:20:29] Production.INFO: 46.5 MB #Memory Used# [2025-02-17 16:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:21:06 [end_date_ymd] => 2025-02-17 16:21:06 [RateCDR] => 1 ) [2025-02-17 16:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:21:06' and `end` < '2025-02-17 16:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:21:19] Production.INFO: count ==2495 [2025-02-17 16:21:20] Production.ERROR: pbx CDR StartTime 2025-02-17 13:21:06 - End Time 2025-02-17 16:21:06 [2025-02-17 16:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496924', 'tblTempUsageDetail_20' ) start [2025-02-17 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496924', 'tblTempUsageDetail_20' ) end [2025-02-17 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496924', 'tblTempVendorCDR_20' ) start [2025-02-17 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496924', 'tblTempVendorCDR_20' ) end [2025-02-17 16:21:20] Production.INFO: ProcessCDR(1,14496924,1,1,2) [2025-02-17 16:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496924', 'tblTempUsageDetail_20' ) start [2025-02-17 16:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496924', 'tblTempUsageDetail_20' ) end [2025-02-17 16:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:21:25] Production.INFO: ==14099== Releasing lock... [2025-02-17 16:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:21:25] Production.INFO: 46.75 MB #Memory Used# [2025-02-17 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:22:05 [end_date_ymd] => 2025-02-17 16:22:05 [RateCDR] => 1 ) [2025-02-17 16:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:22:05' and `end` < '2025-02-17 16:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:22:19] Production.INFO: count ==2493 [2025-02-17 16:22:20] Production.ERROR: pbx CDR StartTime 2025-02-17 13:22:05 - End Time 2025-02-17 16:22:05 [2025-02-17 16:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496929', 'tblTempUsageDetail_20' ) start [2025-02-17 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496929', 'tblTempUsageDetail_20' ) end [2025-02-17 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496929', 'tblTempVendorCDR_20' ) start [2025-02-17 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496929', 'tblTempVendorCDR_20' ) end [2025-02-17 16:22:20] Production.INFO: ProcessCDR(1,14496929,1,1,2) [2025-02-17 16:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496929', 'tblTempUsageDetail_20' ) start [2025-02-17 16:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496929', 'tblTempUsageDetail_20' ) end [2025-02-17 16:22:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:22:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:22:25] Production.INFO: ==14192== Releasing lock... [2025-02-17 16:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:22:25] Production.INFO: 46.75 MB #Memory Used# [2025-02-17 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:23:05 [end_date_ymd] => 2025-02-17 16:23:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 13:23:05' and `end` < '2025-02-17 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-02-17 16:23:18] Production.INFO: count ==2491 [2025-02-17 16:23:19] Production.ERROR: pbx CDR StartTime 2025-02-17 13:23:05 - End Time 2025-02-17 16:23:05 [2025-02-17 16:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496934', 'tblTempUsageDetail_20' ) start [2025-02-17 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496934', 'tblTempUsageDetail_20' ) end [2025-02-17 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496934', 'tblTempVendorCDR_20' ) start [2025-02-17 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496934', 'tblTempVendorCDR_20' ) end [2025-02-17 16:23:19] Production.INFO: ProcessCDR(1,14496934,1,1,2) [2025-02-17 16:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496934', 'tblTempUsageDetail_20' ) start [2025-02-17 16:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496934', 'tblTempUsageDetail_20' ) end [2025-02-17 16:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:23:24] Production.INFO: ==14279== Releasing lock... [2025-02-17 16:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:23:24] Production.INFO: 46.75 MB #Memory Used# [2025-02-17 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:24:05 [end_date_ymd] => 2025-02-17 16:24:05 [RateCDR] => 1 ) [2025-02-17 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:24:05' and `end` < '2025-02-17 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:24:23] Production.INFO: count ==2489 [2025-02-17 16:24:24] Production.ERROR: pbx CDR StartTime 2025-02-17 13:24:05 - End Time 2025-02-17 16:24:05 [2025-02-17 16:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496939', 'tblTempUsageDetail_20' ) start [2025-02-17 16:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496939', 'tblTempUsageDetail_20' ) end [2025-02-17 16:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496939', 'tblTempVendorCDR_20' ) start [2025-02-17 16:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496939', 'tblTempVendorCDR_20' ) end [2025-02-17 16:24:24] Production.INFO: ProcessCDR(1,14496939,1,1,2) [2025-02-17 16:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496939', 'tblTempUsageDetail_20' ) start [2025-02-17 16:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496939', 'tblTempUsageDetail_20' ) end [2025-02-17 16:24:29] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:24:29] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:24:29] Production.INFO: ==14372== Releasing lock... [2025-02-17 16:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:24:29] Production.INFO: 46.75 MB #Memory Used# [2025-02-17 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:25:05 [end_date_ymd] => 2025-02-17 16:25:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 13:25:05' and `end` < '2025-02-17 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-02-17 16:25:20] Production.INFO: count ==2531 [2025-02-17 16:25:21] Production.ERROR: pbx CDR StartTime 2025-02-17 13:25:05 - End Time 2025-02-17 16:25:05 [2025-02-17 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496944', 'tblTempUsageDetail_20' ) start [2025-02-17 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496944', 'tblTempUsageDetail_20' ) end [2025-02-17 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496944', 'tblTempVendorCDR_20' ) start [2025-02-17 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496944', 'tblTempVendorCDR_20' ) end [2025-02-17 16:25:21] Production.INFO: ProcessCDR(1,14496944,1,1,2) [2025-02-17 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496944', 'tblTempUsageDetail_20' ) start [2025-02-17 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496944', 'tblTempUsageDetail_20' ) end [2025-02-17 16:25:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:25:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:25:26] Production.INFO: ==14456== Releasing lock... [2025-02-17 16:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:25:26] Production.INFO: 47 MB #Memory Used# [2025-02-17 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:26:05 [end_date_ymd] => 2025-02-17 16:26:05 [RateCDR] => 1 ) [2025-02-17 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:26:05' and `end` < '2025-02-17 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:26:19] Production.INFO: count ==2529 [2025-02-17 16:26:20] Production.ERROR: pbx CDR StartTime 2025-02-17 13:26:05 - End Time 2025-02-17 16:26:05 [2025-02-17 16:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496949', 'tblTempUsageDetail_20' ) start [2025-02-17 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496949', 'tblTempUsageDetail_20' ) end [2025-02-17 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496949', 'tblTempVendorCDR_20' ) start [2025-02-17 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496949', 'tblTempVendorCDR_20' ) end [2025-02-17 16:26:20] Production.INFO: ProcessCDR(1,14496949,1,1,2) [2025-02-17 16:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496949', 'tblTempUsageDetail_20' ) start [2025-02-17 16:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496949', 'tblTempUsageDetail_20' ) end [2025-02-17 16:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:26:25] Production.INFO: ==14547== Releasing lock... [2025-02-17 16:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:26:25] Production.INFO: 47 MB #Memory Used# [2025-02-17 16:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:27:04 [end_date_ymd] => 2025-02-17 16:27:04 [RateCDR] => 1 ) [2025-02-17 16:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:27:04' and `end` < '2025-02-17 16:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:27:18] Production.INFO: count ==2552 [2025-02-17 16:27:19] Production.ERROR: pbx CDR StartTime 2025-02-17 13:27:04 - End Time 2025-02-17 16:27:04 [2025-02-17 16:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496954', 'tblTempUsageDetail_20' ) start [2025-02-17 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496954', 'tblTempUsageDetail_20' ) end [2025-02-17 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496954', 'tblTempVendorCDR_20' ) start [2025-02-17 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496954', 'tblTempVendorCDR_20' ) end [2025-02-17 16:27:19] Production.INFO: ProcessCDR(1,14496954,1,1,2) [2025-02-17 16:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496954', 'tblTempUsageDetail_20' ) start [2025-02-17 16:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496954', 'tblTempUsageDetail_20' ) end [2025-02-17 16:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:27:24] Production.INFO: ==14670== Releasing lock... [2025-02-17 16:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:27:24] Production.INFO: 47.25 MB #Memory Used# [2025-02-17 16:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:28:05 [end_date_ymd] => 2025-02-17 16:28:05 [RateCDR] => 1 ) [2025-02-17 16:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:28:05' and `end` < '2025-02-17 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:28:19] Production.INFO: count ==2546 [2025-02-17 16:28:20] Production.ERROR: pbx CDR StartTime 2025-02-17 13:28:05 - End Time 2025-02-17 16:28:05 [2025-02-17 16:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496959', 'tblTempUsageDetail_20' ) start [2025-02-17 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496959', 'tblTempUsageDetail_20' ) end [2025-02-17 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496959', 'tblTempVendorCDR_20' ) start [2025-02-17 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496959', 'tblTempVendorCDR_20' ) end [2025-02-17 16:28:20] Production.INFO: ProcessCDR(1,14496959,1,1,2) [2025-02-17 16:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496959', 'tblTempUsageDetail_20' ) start [2025-02-17 16:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496959', 'tblTempUsageDetail_20' ) end [2025-02-17 16:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:28:25] Production.INFO: ==14762== Releasing lock... [2025-02-17 16:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:28:25] Production.INFO: 47.25 MB #Memory Used# [2025-02-17 16:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:29:06 [end_date_ymd] => 2025-02-17 16:29:06 [RateCDR] => 1 ) [2025-02-17 16:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:29:06' and `end` < '2025-02-17 16:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:29:19] Production.INFO: count ==2523 [2025-02-17 16:29:20] Production.ERROR: pbx CDR StartTime 2025-02-17 13:29:06 - End Time 2025-02-17 16:29:06 [2025-02-17 16:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496964', 'tblTempUsageDetail_20' ) start [2025-02-17 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496964', 'tblTempUsageDetail_20' ) end [2025-02-17 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496964', 'tblTempVendorCDR_20' ) start [2025-02-17 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496964', 'tblTempVendorCDR_20' ) end [2025-02-17 16:29:20] Production.INFO: ProcessCDR(1,14496964,1,1,2) [2025-02-17 16:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496964', 'tblTempUsageDetail_20' ) start [2025-02-17 16:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496964', 'tblTempUsageDetail_20' ) end [2025-02-17 16:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:29:25] Production.INFO: ==14840== Releasing lock... [2025-02-17 16:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:29:25] Production.INFO: 47 MB #Memory Used# [2025-02-17 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:30:06 [end_date_ymd] => 2025-02-17 16:30:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 13:30:06' and `end` < '2025-02-17 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-02-17 16:30:23] Production.INFO: count ==2507 [2025-02-17 16:30:24] Production.ERROR: pbx CDR StartTime 2025-02-17 13:30:06 - End Time 2025-02-17 16:30:06 [2025-02-17 16:30:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496969', 'tblTempUsageDetail_20' ) start [2025-02-17 16:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496969', 'tblTempUsageDetail_20' ) end [2025-02-17 16:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496969', 'tblTempVendorCDR_20' ) start [2025-02-17 16:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496969', 'tblTempVendorCDR_20' ) end [2025-02-17 16:30:24] Production.INFO: ProcessCDR(1,14496969,1,1,2) [2025-02-17 16:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:30:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:30:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496969', 'tblTempUsageDetail_20' ) start [2025-02-17 16:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496969', 'tblTempUsageDetail_20' ) end [2025-02-17 16:30:29] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:30:29] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:30:29] Production.INFO: ==14930== Releasing lock... [2025-02-17 16:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:30:29] Production.INFO: 46.75 MB #Memory Used# [2025-02-17 16:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:31:06 [end_date_ymd] => 2025-02-17 16:31:06 [RateCDR] => 1 ) [2025-02-17 16:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:31:06' and `end` < '2025-02-17 16:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:31:29] Production.INFO: count ==2541 [2025-02-17 16:31:30] Production.ERROR: pbx CDR StartTime 2025-02-17 13:31:06 - End Time 2025-02-17 16:31:06 [2025-02-17 16:31:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496975', 'tblTempUsageDetail_20' ) start [2025-02-17 16:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496975', 'tblTempUsageDetail_20' ) end [2025-02-17 16:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496975', 'tblTempVendorCDR_20' ) start [2025-02-17 16:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496975', 'tblTempVendorCDR_20' ) end [2025-02-17 16:31:30] Production.INFO: ProcessCDR(1,14496975,1,1,2) [2025-02-17 16:31:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:31:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:31:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:31:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496975', 'tblTempUsageDetail_20' ) start [2025-02-17 16:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496975', 'tblTempUsageDetail_20' ) end [2025-02-17 16:31:34] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:31:34] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:31:34] Production.INFO: ==15028== Releasing lock... [2025-02-17 16:31:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:31:34] Production.INFO: 47 MB #Memory Used# [2025-02-17 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:32:05 [end_date_ymd] => 2025-02-17 16:32:05 [RateCDR] => 1 ) [2025-02-17 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:32:05' and `end` < '2025-02-17 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:32:23] Production.INFO: count ==2539 [2025-02-17 16:32:24] Production.ERROR: pbx CDR StartTime 2025-02-17 13:32:05 - End Time 2025-02-17 16:32:05 [2025-02-17 16:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496980', 'tblTempUsageDetail_20' ) start [2025-02-17 16:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496980', 'tblTempUsageDetail_20' ) end [2025-02-17 16:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496980', 'tblTempVendorCDR_20' ) start [2025-02-17 16:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496980', 'tblTempVendorCDR_20' ) end [2025-02-17 16:32:24] Production.INFO: ProcessCDR(1,14496980,1,1,2) [2025-02-17 16:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496980', 'tblTempUsageDetail_20' ) start [2025-02-17 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496980', 'tblTempUsageDetail_20' ) end [2025-02-17 16:32:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:32:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:32:27] Production.INFO: ==15120== Releasing lock... [2025-02-17 16:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:32:27] Production.INFO: 47 MB #Memory Used# [2025-02-17 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:33:05 [end_date_ymd] => 2025-02-17 16:33:05 [RateCDR] => 1 ) [2025-02-17 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:33:05' and `end` < '2025-02-17 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:33:22] Production.INFO: count ==2545 [2025-02-17 16:33:22] Production.ERROR: pbx CDR StartTime 2025-02-17 13:33:05 - End Time 2025-02-17 16:33:05 [2025-02-17 16:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496985', 'tblTempUsageDetail_20' ) start [2025-02-17 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496985', 'tblTempUsageDetail_20' ) end [2025-02-17 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496985', 'tblTempVendorCDR_20' ) start [2025-02-17 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496985', 'tblTempVendorCDR_20' ) end [2025-02-17 16:33:22] Production.INFO: ProcessCDR(1,14496985,1,1,2) [2025-02-17 16:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496985', 'tblTempUsageDetail_20' ) start [2025-02-17 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496985', 'tblTempUsageDetail_20' ) end [2025-02-17 16:33:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:33:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:33:27] Production.INFO: ==15215== Releasing lock... [2025-02-17 16:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:33:27] Production.INFO: 47.5 MB #Memory Used# [2025-02-17 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:34:05 [end_date_ymd] => 2025-02-17 16:34:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 13:34:05' and `end` < '2025-02-17 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-02-17 16:34:18] Production.INFO: count ==2567 [2025-02-17 16:34:19] Production.ERROR: pbx CDR StartTime 2025-02-17 13:34:05 - End Time 2025-02-17 16:34:05 [2025-02-17 16:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496990', 'tblTempUsageDetail_20' ) start [2025-02-17 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496990', 'tblTempUsageDetail_20' ) end [2025-02-17 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496990', 'tblTempVendorCDR_20' ) start [2025-02-17 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496990', 'tblTempVendorCDR_20' ) end [2025-02-17 16:34:19] Production.INFO: ProcessCDR(1,14496990,1,1,2) [2025-02-17 16:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496990', 'tblTempUsageDetail_20' ) start [2025-02-17 16:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496990', 'tblTempUsageDetail_20' ) end [2025-02-17 16:34:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:34:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:34:25] Production.INFO: ==15299== Releasing lock... [2025-02-17 16:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:34:25] Production.INFO: 47.25 MB #Memory Used# [2025-02-17 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:35:05 [end_date_ymd] => 2025-02-17 16:35:05 [RateCDR] => 1 ) [2025-02-17 16:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:35:05' and `end` < '2025-02-17 16:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:35:19] Production.INFO: count ==2587 [2025-02-17 16:35:20] Production.ERROR: pbx CDR StartTime 2025-02-17 13:35:05 - End Time 2025-02-17 16:35:05 [2025-02-17 16:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496995', 'tblTempUsageDetail_20' ) start [2025-02-17 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14496995', 'tblTempUsageDetail_20' ) end [2025-02-17 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496995', 'tblTempVendorCDR_20' ) start [2025-02-17 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14496995', 'tblTempVendorCDR_20' ) end [2025-02-17 16:35:20] Production.INFO: ProcessCDR(1,14496995,1,1,2) [2025-02-17 16:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14496995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14496995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14496995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14496995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496995', 'tblTempUsageDetail_20' ) start [2025-02-17 16:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14496995', 'tblTempUsageDetail_20' ) end [2025-02-17 16:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:35:25] Production.INFO: ==15389== Releasing lock... [2025-02-17 16:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:35:25] Production.INFO: 47.5 MB #Memory Used# [2025-02-17 16:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:36:06 [end_date_ymd] => 2025-02-17 16:36:06 [RateCDR] => 1 ) [2025-02-17 16:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:36:06' and `end` < '2025-02-17 16:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:36:19] Production.INFO: count ==2586 [2025-02-17 16:36:20] Production.ERROR: pbx CDR StartTime 2025-02-17 13:36:06 - End Time 2025-02-17 16:36:06 [2025-02-17 16:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497000', 'tblTempUsageDetail_20' ) start [2025-02-17 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497000', 'tblTempUsageDetail_20' ) end [2025-02-17 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497000', 'tblTempVendorCDR_20' ) start [2025-02-17 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497000', 'tblTempVendorCDR_20' ) end [2025-02-17 16:36:20] Production.INFO: ProcessCDR(1,14497000,1,1,2) [2025-02-17 16:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497000', 'tblTempUsageDetail_20' ) start [2025-02-17 16:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497000', 'tblTempUsageDetail_20' ) end [2025-02-17 16:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:36:25] Production.INFO: ==15478== Releasing lock... [2025-02-17 16:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:36:25] Production.INFO: 47.5 MB #Memory Used# [2025-02-17 16:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:37:06 [end_date_ymd] => 2025-02-17 16:37:06 [RateCDR] => 1 ) [2025-02-17 16:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:37:06' and `end` < '2025-02-17 16:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:37:19] Production.INFO: count ==2584 [2025-02-17 16:37:20] Production.ERROR: pbx CDR StartTime 2025-02-17 13:37:06 - End Time 2025-02-17 16:37:06 [2025-02-17 16:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497005', 'tblTempUsageDetail_20' ) start [2025-02-17 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497005', 'tblTempUsageDetail_20' ) end [2025-02-17 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497005', 'tblTempVendorCDR_20' ) start [2025-02-17 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497005', 'tblTempVendorCDR_20' ) end [2025-02-17 16:37:20] Production.INFO: ProcessCDR(1,14497005,1,1,2) [2025-02-17 16:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497005', 'tblTempUsageDetail_20' ) start [2025-02-17 16:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497005', 'tblTempUsageDetail_20' ) end [2025-02-17 16:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:37:25] Production.INFO: ==15567== Releasing lock... [2025-02-17 16:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:37:25] Production.INFO: 47.5 MB #Memory Used# [2025-02-17 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:38:06 [end_date_ymd] => 2025-02-17 16:38:06 [RateCDR] => 1 ) [2025-02-17 16:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:38:06' and `end` < '2025-02-17 16:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:38:21] Production.INFO: count ==2589 [2025-02-17 16:38:22] Production.ERROR: pbx CDR StartTime 2025-02-17 13:38:06 - End Time 2025-02-17 16:38:06 [2025-02-17 16:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497010', 'tblTempUsageDetail_20' ) start [2025-02-17 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497010', 'tblTempUsageDetail_20' ) end [2025-02-17 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497010', 'tblTempVendorCDR_20' ) start [2025-02-17 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497010', 'tblTempVendorCDR_20' ) end [2025-02-17 16:38:22] Production.INFO: ProcessCDR(1,14497010,1,1,2) [2025-02-17 16:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497010', 'tblTempUsageDetail_20' ) start [2025-02-17 16:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497010', 'tblTempUsageDetail_20' ) end [2025-02-17 16:38:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:38:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:38:27] Production.INFO: ==15651== Releasing lock... [2025-02-17 16:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:38:27] Production.INFO: 47.5 MB #Memory Used# [2025-02-17 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:39:05 [end_date_ymd] => 2025-02-17 16:39:05 [RateCDR] => 1 ) [2025-02-17 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:39:05' and `end` < '2025-02-17 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:39:19] Production.INFO: count ==2587 [2025-02-17 16:39:20] Production.ERROR: pbx CDR StartTime 2025-02-17 13:39:05 - End Time 2025-02-17 16:39:05 [2025-02-17 16:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497015', 'tblTempUsageDetail_20' ) start [2025-02-17 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497015', 'tblTempUsageDetail_20' ) end [2025-02-17 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497015', 'tblTempVendorCDR_20' ) start [2025-02-17 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497015', 'tblTempVendorCDR_20' ) end [2025-02-17 16:39:20] Production.INFO: ProcessCDR(1,14497015,1,1,2) [2025-02-17 16:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497015', 'tblTempUsageDetail_20' ) start [2025-02-17 16:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497015', 'tblTempUsageDetail_20' ) end [2025-02-17 16:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:39:25] Production.INFO: ==15737== Releasing lock... [2025-02-17 16:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:39:25] Production.INFO: 47.5 MB #Memory Used# [2025-02-17 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:40:06 [end_date_ymd] => 2025-02-17 16:40:06 [RateCDR] => 1 ) [2025-02-17 16:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:40:06' and `end` < '2025-02-17 16:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:40:21] Production.INFO: count ==2585 [2025-02-17 16:40:22] Production.ERROR: pbx CDR StartTime 2025-02-17 13:40:06 - End Time 2025-02-17 16:40:06 [2025-02-17 16:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497021', 'tblTempUsageDetail_20' ) start [2025-02-17 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497021', 'tblTempUsageDetail_20' ) end [2025-02-17 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497021', 'tblTempVendorCDR_20' ) start [2025-02-17 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497021', 'tblTempVendorCDR_20' ) end [2025-02-17 16:40:22] Production.INFO: ProcessCDR(1,14497021,1,1,2) [2025-02-17 16:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497021', 'tblTempUsageDetail_20' ) start [2025-02-17 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497021', 'tblTempUsageDetail_20' ) end [2025-02-17 16:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:40:27] Production.INFO: ==15827== Releasing lock... [2025-02-17 16:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:40:27] Production.INFO: 47.5 MB #Memory Used# [2025-02-17 16:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:41:06 [end_date_ymd] => 2025-02-17 16:41:06 [RateCDR] => 1 ) [2025-02-17 16:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:41:06' and `end` < '2025-02-17 16:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:41:20] Production.INFO: count ==2621 [2025-02-17 16:41:21] Production.ERROR: pbx CDR StartTime 2025-02-17 13:41:06 - End Time 2025-02-17 16:41:06 [2025-02-17 16:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497026', 'tblTempUsageDetail_20' ) start [2025-02-17 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497026', 'tblTempUsageDetail_20' ) end [2025-02-17 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497026', 'tblTempVendorCDR_20' ) start [2025-02-17 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497026', 'tblTempVendorCDR_20' ) end [2025-02-17 16:41:21] Production.INFO: ProcessCDR(1,14497026,1,1,2) [2025-02-17 16:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497026', 'tblTempUsageDetail_20' ) start [2025-02-17 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497026', 'tblTempUsageDetail_20' ) end [2025-02-17 16:41:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:41:26] Production.INFO: ==15912== Releasing lock... [2025-02-17 16:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:41:26] Production.INFO: 47.75 MB #Memory Used# [2025-02-17 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:42:05 [end_date_ymd] => 2025-02-17 16:42:05 [RateCDR] => 1 ) [2025-02-17 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:42:05' and `end` < '2025-02-17 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:42:18] Production.INFO: count ==2631 [2025-02-17 16:42:19] Production.ERROR: pbx CDR StartTime 2025-02-17 13:42:05 - End Time 2025-02-17 16:42:05 [2025-02-17 16:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497031', 'tblTempUsageDetail_20' ) start [2025-02-17 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497031', 'tblTempUsageDetail_20' ) end [2025-02-17 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497031', 'tblTempVendorCDR_20' ) start [2025-02-17 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497031', 'tblTempVendorCDR_20' ) end [2025-02-17 16:42:19] Production.INFO: ProcessCDR(1,14497031,1,1,2) [2025-02-17 16:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497031', 'tblTempUsageDetail_20' ) start [2025-02-17 16:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497031', 'tblTempUsageDetail_20' ) end [2025-02-17 16:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:42:23] Production.INFO: ==16031== Releasing lock... [2025-02-17 16:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:42:23] Production.INFO: 47.75 MB #Memory Used# [2025-02-17 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:43:05 [end_date_ymd] => 2025-02-17 16:43:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 13:43:05' and `end` < '2025-02-17 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-02-17 16:43:19] Production.INFO: count ==2650 [2025-02-17 16:43:20] Production.ERROR: pbx CDR StartTime 2025-02-17 13:43:05 - End Time 2025-02-17 16:43:05 [2025-02-17 16:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497036', 'tblTempUsageDetail_20' ) start [2025-02-17 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497036', 'tblTempUsageDetail_20' ) end [2025-02-17 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497036', 'tblTempVendorCDR_20' ) start [2025-02-17 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497036', 'tblTempVendorCDR_20' ) end [2025-02-17 16:43:20] Production.INFO: ProcessCDR(1,14497036,1,1,2) [2025-02-17 16:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497036', 'tblTempUsageDetail_20' ) start [2025-02-17 16:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497036', 'tblTempUsageDetail_20' ) end [2025-02-17 16:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:43:25] Production.INFO: ==16119== Releasing lock... [2025-02-17 16:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:43:25] Production.INFO: 48 MB #Memory Used# [2025-02-17 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:44:05 [end_date_ymd] => 2025-02-17 16:44:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 13:44:05' and `end` < '2025-02-17 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-02-17 16:44:19] Production.INFO: count ==2672 [2025-02-17 16:44:20] Production.ERROR: pbx CDR StartTime 2025-02-17 13:44:05 - End Time 2025-02-17 16:44:05 [2025-02-17 16:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497041', 'tblTempUsageDetail_20' ) start [2025-02-17 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497041', 'tblTempUsageDetail_20' ) end [2025-02-17 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497041', 'tblTempVendorCDR_20' ) start [2025-02-17 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497041', 'tblTempVendorCDR_20' ) end [2025-02-17 16:44:20] Production.INFO: ProcessCDR(1,14497041,1,1,2) [2025-02-17 16:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497041', 'tblTempUsageDetail_20' ) start [2025-02-17 16:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497041', 'tblTempUsageDetail_20' ) end [2025-02-17 16:44:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:44:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:44:25] Production.INFO: ==16196== Releasing lock... [2025-02-17 16:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:44:25] Production.INFO: 48 MB #Memory Used# [2025-02-17 16:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:45:06 [end_date_ymd] => 2025-02-17 16:45:06 [RateCDR] => 1 ) [2025-02-17 16:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:45:06' and `end` < '2025-02-17 16:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:45:19] Production.INFO: count ==2691 [2025-02-17 16:45:20] Production.ERROR: pbx CDR StartTime 2025-02-17 13:45:06 - End Time 2025-02-17 16:45:06 [2025-02-17 16:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497046', 'tblTempUsageDetail_20' ) start [2025-02-17 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497046', 'tblTempUsageDetail_20' ) end [2025-02-17 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497046', 'tblTempVendorCDR_20' ) start [2025-02-17 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497046', 'tblTempVendorCDR_20' ) end [2025-02-17 16:45:20] Production.INFO: ProcessCDR(1,14497046,1,1,2) [2025-02-17 16:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497046', 'tblTempUsageDetail_20' ) start [2025-02-17 16:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497046', 'tblTempUsageDetail_20' ) end [2025-02-17 16:45:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:45:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:45:25] Production.INFO: ==16278== Releasing lock... [2025-02-17 16:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:45:25] Production.INFO: 48.25 MB #Memory Used# [2025-02-17 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:46:05 [end_date_ymd] => 2025-02-17 16:46:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 13:46:05' and `end` < '2025-02-17 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-02-17 16:46:20] Production.INFO: count ==2773 [2025-02-17 16:46:21] Production.ERROR: pbx CDR StartTime 2025-02-17 13:46:05 - End Time 2025-02-17 16:46:05 [2025-02-17 16:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497051', 'tblTempUsageDetail_20' ) start [2025-02-17 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497051', 'tblTempUsageDetail_20' ) end [2025-02-17 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497051', 'tblTempVendorCDR_20' ) start [2025-02-17 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497051', 'tblTempVendorCDR_20' ) end [2025-02-17 16:46:21] Production.INFO: ProcessCDR(1,14497051,1,1,2) [2025-02-17 16:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497051', 'tblTempUsageDetail_20' ) start [2025-02-17 16:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497051', 'tblTempUsageDetail_20' ) end [2025-02-17 16:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:46:26] Production.INFO: ==16359== Releasing lock... [2025-02-17 16:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:46:26] Production.INFO: 48.75 MB #Memory Used# [2025-02-17 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:47:05 [end_date_ymd] => 2025-02-17 16:47:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 13:47:05' and `end` < '2025-02-17 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-02-17 16:47:18] Production.INFO: count ==2780 [2025-02-17 16:47:19] Production.ERROR: pbx CDR StartTime 2025-02-17 13:47:05 - End Time 2025-02-17 16:47:05 [2025-02-17 16:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497056', 'tblTempUsageDetail_20' ) start [2025-02-17 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497056', 'tblTempUsageDetail_20' ) end [2025-02-17 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497056', 'tblTempVendorCDR_20' ) start [2025-02-17 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497056', 'tblTempVendorCDR_20' ) end [2025-02-17 16:47:19] Production.INFO: ProcessCDR(1,14497056,1,1,2) [2025-02-17 16:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497056', 'tblTempUsageDetail_20' ) start [2025-02-17 16:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497056', 'tblTempUsageDetail_20' ) end [2025-02-17 16:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:47:23] Production.INFO: ==16436== Releasing lock... [2025-02-17 16:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:47:23] Production.INFO: 48.75 MB #Memory Used# [2025-02-17 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:48:05 [end_date_ymd] => 2025-02-17 16:48:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 13:48:05' and `end` < '2025-02-17 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-02-17 16:48:19] Production.INFO: count ==2783 [2025-02-17 16:48:20] Production.ERROR: pbx CDR StartTime 2025-02-17 13:48:05 - End Time 2025-02-17 16:48:05 [2025-02-17 16:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497061', 'tblTempUsageDetail_20' ) start [2025-02-17 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497061', 'tblTempUsageDetail_20' ) end [2025-02-17 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497061', 'tblTempVendorCDR_20' ) start [2025-02-17 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497061', 'tblTempVendorCDR_20' ) end [2025-02-17 16:48:20] Production.INFO: ProcessCDR(1,14497061,1,1,2) [2025-02-17 16:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497061', 'tblTempUsageDetail_20' ) start [2025-02-17 16:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497061', 'tblTempUsageDetail_20' ) end [2025-02-17 16:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:48:23] Production.INFO: ==16513== Releasing lock... [2025-02-17 16:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:48:23] Production.INFO: 48.75 MB #Memory Used# [2025-02-17 16:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:49:06 [end_date_ymd] => 2025-02-17 16:49:06 [RateCDR] => 1 ) [2025-02-17 16:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:49:06' and `end` < '2025-02-17 16:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:49:19] Production.INFO: count ==2785 [2025-02-17 16:49:20] Production.ERROR: pbx CDR StartTime 2025-02-17 13:49:06 - End Time 2025-02-17 16:49:06 [2025-02-17 16:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497066', 'tblTempUsageDetail_20' ) start [2025-02-17 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497066', 'tblTempUsageDetail_20' ) end [2025-02-17 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497066', 'tblTempVendorCDR_20' ) start [2025-02-17 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497066', 'tblTempVendorCDR_20' ) end [2025-02-17 16:49:20] Production.INFO: ProcessCDR(1,14497066,1,1,2) [2025-02-17 16:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497066', 'tblTempUsageDetail_20' ) start [2025-02-17 16:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497066', 'tblTempUsageDetail_20' ) end [2025-02-17 16:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:49:23] Production.INFO: ==16590== Releasing lock... [2025-02-17 16:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:49:23] Production.INFO: 49 MB #Memory Used# [2025-02-17 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:50:05 [end_date_ymd] => 2025-02-17 16:50:05 [RateCDR] => 1 ) [2025-02-17 16:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:50:05' and `end` < '2025-02-17 16:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:50:18] Production.INFO: count ==2807 [2025-02-17 16:50:19] Production.ERROR: pbx CDR StartTime 2025-02-17 13:50:05 - End Time 2025-02-17 16:50:05 [2025-02-17 16:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497072', 'tblTempUsageDetail_20' ) start [2025-02-17 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497072', 'tblTempUsageDetail_20' ) end [2025-02-17 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497072', 'tblTempVendorCDR_20' ) start [2025-02-17 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497072', 'tblTempVendorCDR_20' ) end [2025-02-17 16:50:20] Production.INFO: ProcessCDR(1,14497072,1,1,2) [2025-02-17 16:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497072', 'tblTempUsageDetail_20' ) start [2025-02-17 16:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497072', 'tblTempUsageDetail_20' ) end [2025-02-17 16:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:50:24] Production.INFO: ==16670== Releasing lock... [2025-02-17 16:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:50:24] Production.INFO: 49 MB #Memory Used# [2025-02-17 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:51:05 [end_date_ymd] => 2025-02-17 16:51:05 [RateCDR] => 1 ) [2025-02-17 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:51:05' and `end` < '2025-02-17 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:51:19] Production.INFO: count ==2842 [2025-02-17 16:51:20] Production.ERROR: pbx CDR StartTime 2025-02-17 13:51:05 - End Time 2025-02-17 16:51:05 [2025-02-17 16:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497077', 'tblTempUsageDetail_20' ) start [2025-02-17 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497077', 'tblTempUsageDetail_20' ) end [2025-02-17 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497077', 'tblTempVendorCDR_20' ) start [2025-02-17 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497077', 'tblTempVendorCDR_20' ) end [2025-02-17 16:51:20] Production.INFO: ProcessCDR(1,14497077,1,1,2) [2025-02-17 16:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497077', 'tblTempUsageDetail_20' ) start [2025-02-17 16:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497077', 'tblTempUsageDetail_20' ) end [2025-02-17 16:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:51:25] Production.INFO: ==16754== Releasing lock... [2025-02-17 16:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:51:25] Production.INFO: 49 MB #Memory Used# [2025-02-17 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:52:05 [end_date_ymd] => 2025-02-17 16:52:05 [RateCDR] => 1 ) [2025-02-17 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:52:05' and `end` < '2025-02-17 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:52:18] Production.INFO: count ==2845 [2025-02-17 16:52:19] Production.ERROR: pbx CDR StartTime 2025-02-17 13:52:05 - End Time 2025-02-17 16:52:05 [2025-02-17 16:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497082', 'tblTempUsageDetail_20' ) start [2025-02-17 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497082', 'tblTempUsageDetail_20' ) end [2025-02-17 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497082', 'tblTempVendorCDR_20' ) start [2025-02-17 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497082', 'tblTempVendorCDR_20' ) end [2025-02-17 16:52:19] Production.INFO: ProcessCDR(1,14497082,1,1,2) [2025-02-17 16:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497082', 'tblTempUsageDetail_20' ) start [2025-02-17 16:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497082', 'tblTempUsageDetail_20' ) end [2025-02-17 16:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:52:24] Production.INFO: ==16826== Releasing lock... [2025-02-17 16:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:52:24] Production.INFO: 49 MB #Memory Used# [2025-02-17 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:53:05 [end_date_ymd] => 2025-02-17 16:53:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 13:53:05' and `end` < '2025-02-17 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-02-17 16:53:19] Production.INFO: count ==2853 [2025-02-17 16:53:20] Production.ERROR: pbx CDR StartTime 2025-02-17 13:53:05 - End Time 2025-02-17 16:53:05 [2025-02-17 16:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497087', 'tblTempUsageDetail_20' ) start [2025-02-17 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497087', 'tblTempUsageDetail_20' ) end [2025-02-17 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497087', 'tblTempVendorCDR_20' ) start [2025-02-17 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497087', 'tblTempVendorCDR_20' ) end [2025-02-17 16:53:20] Production.INFO: ProcessCDR(1,14497087,1,1,2) [2025-02-17 16:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497087', 'tblTempUsageDetail_20' ) start [2025-02-17 16:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497087', 'tblTempUsageDetail_20' ) end [2025-02-17 16:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:53:23] Production.INFO: ==16901== Releasing lock... [2025-02-17 16:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:53:23] Production.INFO: 49 MB #Memory Used# [2025-02-17 16:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:54:04 [end_date_ymd] => 2025-02-17 16:54:04 [RateCDR] => 1 ) [2025-02-17 16:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:54:04' and `end` < '2025-02-17 16:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:54:18] Production.INFO: count ==2857 [2025-02-17 16:54:19] Production.ERROR: pbx CDR StartTime 2025-02-17 13:54:04 - End Time 2025-02-17 16:54:04 [2025-02-17 16:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497092', 'tblTempUsageDetail_20' ) start [2025-02-17 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497092', 'tblTempUsageDetail_20' ) end [2025-02-17 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497092', 'tblTempVendorCDR_20' ) start [2025-02-17 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497092', 'tblTempVendorCDR_20' ) end [2025-02-17 16:54:19] Production.INFO: ProcessCDR(1,14497092,1,1,2) [2025-02-17 16:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497092', 'tblTempUsageDetail_20' ) start [2025-02-17 16:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497092', 'tblTempUsageDetail_20' ) end [2025-02-17 16:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:54:24] Production.INFO: ==16974== Releasing lock... [2025-02-17 16:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:54:24] Production.INFO: 49.25 MB #Memory Used# [2025-02-17 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:55:05 [end_date_ymd] => 2025-02-17 16:55:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 13:55:05' and `end` < '2025-02-17 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-02-17 16:55:19] Production.INFO: count ==2856 [2025-02-17 16:55:20] Production.ERROR: pbx CDR StartTime 2025-02-17 13:55:05 - End Time 2025-02-17 16:55:05 [2025-02-17 16:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497097', 'tblTempUsageDetail_20' ) start [2025-02-17 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497097', 'tblTempUsageDetail_20' ) end [2025-02-17 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497097', 'tblTempVendorCDR_20' ) start [2025-02-17 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497097', 'tblTempVendorCDR_20' ) end [2025-02-17 16:55:20] Production.INFO: ProcessCDR(1,14497097,1,1,2) [2025-02-17 16:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497097', 'tblTempUsageDetail_20' ) start [2025-02-17 16:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497097', 'tblTempUsageDetail_20' ) end [2025-02-17 16:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:55:23] Production.INFO: ==17047== Releasing lock... [2025-02-17 16:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:55:23] Production.INFO: 49 MB #Memory Used# [2025-02-17 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:56:05 [end_date_ymd] => 2025-02-17 16:56:05 [RateCDR] => 1 ) [2025-02-17 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:56:05' and `end` < '2025-02-17 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:56:18] Production.INFO: count ==2851 [2025-02-17 16:56:19] Production.ERROR: pbx CDR StartTime 2025-02-17 13:56:05 - End Time 2025-02-17 16:56:05 [2025-02-17 16:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497102', 'tblTempUsageDetail_20' ) start [2025-02-17 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497102', 'tblTempUsageDetail_20' ) end [2025-02-17 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497102', 'tblTempVendorCDR_20' ) start [2025-02-17 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497102', 'tblTempVendorCDR_20' ) end [2025-02-17 16:56:19] Production.INFO: ProcessCDR(1,14497102,1,1,2) [2025-02-17 16:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497102', 'tblTempUsageDetail_20' ) start [2025-02-17 16:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497102', 'tblTempUsageDetail_20' ) end [2025-02-17 16:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:56:24] Production.INFO: ==17122== Releasing lock... [2025-02-17 16:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:56:24] Production.INFO: 49.25 MB #Memory Used# [2025-02-17 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:57:05 [end_date_ymd] => 2025-02-17 16:57:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 13:57:05' and `end` < '2025-02-17 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-02-17 16:57:20] Production.INFO: count ==2853 [2025-02-17 16:57:21] Production.ERROR: pbx CDR StartTime 2025-02-17 13:57:05 - End Time 2025-02-17 16:57:05 [2025-02-17 16:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497107', 'tblTempUsageDetail_20' ) start [2025-02-17 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497107', 'tblTempUsageDetail_20' ) end [2025-02-17 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497107', 'tblTempVendorCDR_20' ) start [2025-02-17 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497107', 'tblTempVendorCDR_20' ) end [2025-02-17 16:57:21] Production.INFO: ProcessCDR(1,14497107,1,1,2) [2025-02-17 16:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497107', 'tblTempUsageDetail_20' ) start [2025-02-17 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497107', 'tblTempUsageDetail_20' ) end [2025-02-17 16:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:57:26] Production.INFO: ==17193== Releasing lock... [2025-02-17 16:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:57:26] Production.INFO: 49.25 MB #Memory Used# [2025-02-17 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:58:05 [end_date_ymd] => 2025-02-17 16:58:05 [RateCDR] => 1 ) [2025-02-17 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 13:58:05' and `end` < '2025-02-17 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 16:58:21] Production.INFO: count ==2839 [2025-02-17 16:58:22] Production.ERROR: pbx CDR StartTime 2025-02-17 13:58:05 - End Time 2025-02-17 16:58:05 [2025-02-17 16:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497112', 'tblTempUsageDetail_20' ) start [2025-02-17 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497112', 'tblTempUsageDetail_20' ) end [2025-02-17 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497112', 'tblTempVendorCDR_20' ) start [2025-02-17 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497112', 'tblTempVendorCDR_20' ) end [2025-02-17 16:58:22] Production.INFO: ProcessCDR(1,14497112,1,1,2) [2025-02-17 16:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497112', 'tblTempUsageDetail_20' ) start [2025-02-17 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497112', 'tblTempUsageDetail_20' ) end [2025-02-17 16:58:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:58:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:58:26] Production.INFO: ==17307== Releasing lock... [2025-02-17 16:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:58:26] Production.INFO: 49 MB #Memory Used# [2025-02-17 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 13:59:05 [end_date_ymd] => 2025-02-17 16:59:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 13:59:05' and `end` < '2025-02-17 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-02-17 16:59:19] Production.INFO: count ==2839 [2025-02-17 16:59:20] Production.ERROR: pbx CDR StartTime 2025-02-17 13:59:05 - End Time 2025-02-17 16:59:05 [2025-02-17 16:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497117', 'tblTempUsageDetail_20' ) start [2025-02-17 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497117', 'tblTempUsageDetail_20' ) end [2025-02-17 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497117', 'tblTempVendorCDR_20' ) start [2025-02-17 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497117', 'tblTempVendorCDR_20' ) end [2025-02-17 16:59:20] Production.INFO: ProcessCDR(1,14497117,1,1,2) [2025-02-17 16:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 16:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 16:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497117', 'tblTempUsageDetail_20' ) start [2025-02-17 16:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497117', 'tblTempUsageDetail_20' ) end [2025-02-17 16:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 16:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 16:59:24] Production.INFO: ==17383== Releasing lock... [2025-02-17 16:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 16:59:24] Production.INFO: 49 MB #Memory Used# [2025-02-17 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:00:06 [end_date_ymd] => 2025-02-17 17:00:06 [RateCDR] => 1 ) [2025-02-17 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:00:06' and `end` < '2025-02-17 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:00:19] Production.INFO: count ==2838 [2025-02-17 17:00:20] Production.ERROR: pbx CDR StartTime 2025-02-17 14:00:06 - End Time 2025-02-17 17:00:06 [2025-02-17 17:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497123', 'tblTempUsageDetail_20' ) start [2025-02-17 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497123', 'tblTempUsageDetail_20' ) end [2025-02-17 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497123', 'tblTempVendorCDR_20' ) start [2025-02-17 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497123', 'tblTempVendorCDR_20' ) end [2025-02-17 17:00:20] Production.INFO: ProcessCDR(1,14497123,1,1,2) [2025-02-17 17:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497123', 'tblTempUsageDetail_20' ) start [2025-02-17 17:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497123', 'tblTempUsageDetail_20' ) end [2025-02-17 17:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:00:24] Production.INFO: ==17461== Releasing lock... [2025-02-17 17:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:00:24] Production.INFO: 49 MB #Memory Used# [2025-02-17 17:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:01:06 [end_date_ymd] => 2025-02-17 17:01:06 [RateCDR] => 1 ) [2025-02-17 17:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:01:06' and `end` < '2025-02-17 17:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:01:19] Production.INFO: count ==2867 [2025-02-17 17:01:20] Production.ERROR: pbx CDR StartTime 2025-02-17 14:01:06 - End Time 2025-02-17 17:01:06 [2025-02-17 17:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497128', 'tblTempUsageDetail_20' ) start [2025-02-17 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497128', 'tblTempUsageDetail_20' ) end [2025-02-17 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497128', 'tblTempVendorCDR_20' ) start [2025-02-17 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497128', 'tblTempVendorCDR_20' ) end [2025-02-17 17:01:20] Production.INFO: ProcessCDR(1,14497128,1,1,2) [2025-02-17 17:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497128', 'tblTempUsageDetail_20' ) start [2025-02-17 17:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497128', 'tblTempUsageDetail_20' ) end [2025-02-17 17:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:01:24] Production.INFO: ==17546== Releasing lock... [2025-02-17 17:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:01:24] Production.INFO: 49.25 MB #Memory Used# [2025-02-17 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:02:05 [end_date_ymd] => 2025-02-17 17:02:05 [RateCDR] => 1 ) [2025-02-17 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:02:05' and `end` < '2025-02-17 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:02:18] Production.INFO: count ==2862 [2025-02-17 17:02:20] Production.ERROR: pbx CDR StartTime 2025-02-17 14:02:05 - End Time 2025-02-17 17:02:05 [2025-02-17 17:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497133', 'tblTempUsageDetail_20' ) start [2025-02-17 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497133', 'tblTempUsageDetail_20' ) end [2025-02-17 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497133', 'tblTempVendorCDR_20' ) start [2025-02-17 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497133', 'tblTempVendorCDR_20' ) end [2025-02-17 17:02:20] Production.INFO: ProcessCDR(1,14497133,1,1,2) [2025-02-17 17:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497133', 'tblTempUsageDetail_20' ) start [2025-02-17 17:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497133', 'tblTempUsageDetail_20' ) end [2025-02-17 17:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:02:23] Production.INFO: ==17625== Releasing lock... [2025-02-17 17:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:02:23] Production.INFO: 49.25 MB #Memory Used# [2025-02-17 17:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:03:06 [end_date_ymd] => 2025-02-17 17:03:06 [RateCDR] => 1 ) [2025-02-17 17:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:03:06' and `end` < '2025-02-17 17:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:03:19] Production.INFO: count ==2862 [2025-02-17 17:03:20] Production.ERROR: pbx CDR StartTime 2025-02-17 14:03:06 - End Time 2025-02-17 17:03:06 [2025-02-17 17:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497138', 'tblTempUsageDetail_20' ) start [2025-02-17 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497138', 'tblTempUsageDetail_20' ) end [2025-02-17 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497138', 'tblTempVendorCDR_20' ) start [2025-02-17 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497138', 'tblTempVendorCDR_20' ) end [2025-02-17 17:03:20] Production.INFO: ProcessCDR(1,14497138,1,1,2) [2025-02-17 17:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497138', 'tblTempUsageDetail_20' ) start [2025-02-17 17:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497138', 'tblTempUsageDetail_20' ) end [2025-02-17 17:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:03:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:03:26] Production.INFO: ==17702== Releasing lock... [2025-02-17 17:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:03:26] Production.INFO: 49.25 MB #Memory Used# [2025-02-17 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:04:06 [end_date_ymd] => 2025-02-17 17:04:06 [RateCDR] => 1 ) [2025-02-17 17:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:04:06' and `end` < '2025-02-17 17:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:04:20] Production.INFO: count ==2864 [2025-02-17 17:04:21] Production.ERROR: pbx CDR StartTime 2025-02-17 14:04:06 - End Time 2025-02-17 17:04:06 [2025-02-17 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497143', 'tblTempUsageDetail_20' ) start [2025-02-17 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497143', 'tblTempUsageDetail_20' ) end [2025-02-17 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497143', 'tblTempVendorCDR_20' ) start [2025-02-17 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497143', 'tblTempVendorCDR_20' ) end [2025-02-17 17:04:21] Production.INFO: ProcessCDR(1,14497143,1,1,2) [2025-02-17 17:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497143', 'tblTempUsageDetail_20' ) start [2025-02-17 17:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497143', 'tblTempUsageDetail_20' ) end [2025-02-17 17:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:04:24] Production.INFO: ==17773== Releasing lock... [2025-02-17 17:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:04:24] Production.INFO: 49.25 MB #Memory Used# [2025-02-17 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:05:05 [end_date_ymd] => 2025-02-17 17:05:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 14:05:05' and `end` < '2025-02-17 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-02-17 17:05:19] Production.INFO: count ==2867 [2025-02-17 17:05:20] Production.ERROR: pbx CDR StartTime 2025-02-17 14:05:05 - End Time 2025-02-17 17:05:05 [2025-02-17 17:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497148', 'tblTempUsageDetail_20' ) start [2025-02-17 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497148', 'tblTempUsageDetail_20' ) end [2025-02-17 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497148', 'tblTempVendorCDR_20' ) start [2025-02-17 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497148', 'tblTempVendorCDR_20' ) end [2025-02-17 17:05:20] Production.INFO: ProcessCDR(1,14497148,1,1,2) [2025-02-17 17:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497148', 'tblTempUsageDetail_20' ) start [2025-02-17 17:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497148', 'tblTempUsageDetail_20' ) end [2025-02-17 17:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:05:25] Production.INFO: ==17845== Releasing lock... [2025-02-17 17:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:05:25] Production.INFO: 49.25 MB #Memory Used# [2025-02-17 17:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:06:06 [end_date_ymd] => 2025-02-17 17:06:06 [RateCDR] => 1 ) [2025-02-17 17:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:06:06' and `end` < '2025-02-17 17:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:06:19] Production.INFO: count ==2867 [2025-02-17 17:06:20] Production.ERROR: pbx CDR StartTime 2025-02-17 14:06:06 - End Time 2025-02-17 17:06:06 [2025-02-17 17:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497153', 'tblTempUsageDetail_20' ) start [2025-02-17 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497153', 'tblTempUsageDetail_20' ) end [2025-02-17 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497153', 'tblTempVendorCDR_20' ) start [2025-02-17 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497153', 'tblTempVendorCDR_20' ) end [2025-02-17 17:06:20] Production.INFO: ProcessCDR(1,14497153,1,1,2) [2025-02-17 17:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497153', 'tblTempUsageDetail_20' ) start [2025-02-17 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497153', 'tblTempUsageDetail_20' ) end [2025-02-17 17:06:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:06:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:06:26] Production.INFO: ==17917== Releasing lock... [2025-02-17 17:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:06:26] Production.INFO: 49.25 MB #Memory Used# [2025-02-17 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:07:05 [end_date_ymd] => 2025-02-17 17:07:05 [RateCDR] => 1 ) [2025-02-17 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:07:05' and `end` < '2025-02-17 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:07:18] Production.INFO: count ==2864 [2025-02-17 17:07:19] Production.ERROR: pbx CDR StartTime 2025-02-17 14:07:05 - End Time 2025-02-17 17:07:05 [2025-02-17 17:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497158', 'tblTempUsageDetail_20' ) start [2025-02-17 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497158', 'tblTempUsageDetail_20' ) end [2025-02-17 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497158', 'tblTempVendorCDR_20' ) start [2025-02-17 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497158', 'tblTempVendorCDR_20' ) end [2025-02-17 17:07:19] Production.INFO: ProcessCDR(1,14497158,1,1,2) [2025-02-17 17:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497158', 'tblTempUsageDetail_20' ) start [2025-02-17 17:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497158', 'tblTempUsageDetail_20' ) end [2025-02-17 17:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:07:23] Production.INFO: ==17992== Releasing lock... [2025-02-17 17:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:07:23] Production.INFO: 49.25 MB #Memory Used# [2025-02-17 17:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:08:04 [end_date_ymd] => 2025-02-17 17:08:04 [RateCDR] => 1 ) [2025-02-17 17:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:08:04' and `end` < '2025-02-17 17:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:08:18] Production.INFO: count ==2864 [2025-02-17 17:08:19] Production.ERROR: pbx CDR StartTime 2025-02-17 14:08:04 - End Time 2025-02-17 17:08:04 [2025-02-17 17:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497163', 'tblTempUsageDetail_20' ) start [2025-02-17 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497163', 'tblTempUsageDetail_20' ) end [2025-02-17 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497163', 'tblTempVendorCDR_20' ) start [2025-02-17 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497163', 'tblTempVendorCDR_20' ) end [2025-02-17 17:08:19] Production.INFO: ProcessCDR(1,14497163,1,1,2) [2025-02-17 17:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497163', 'tblTempUsageDetail_20' ) start [2025-02-17 17:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497163', 'tblTempUsageDetail_20' ) end [2025-02-17 17:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:08:22] Production.INFO: ==18066== Releasing lock... [2025-02-17 17:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:08:22] Production.INFO: 49.25 MB #Memory Used# [2025-02-17 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:09:05 [end_date_ymd] => 2025-02-17 17:09:05 [RateCDR] => 1 ) [2025-02-17 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:09:05' and `end` < '2025-02-17 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:09:19] Production.INFO: count ==2867 [2025-02-17 17:09:19] Production.ERROR: pbx CDR StartTime 2025-02-17 14:09:05 - End Time 2025-02-17 17:09:05 [2025-02-17 17:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497168', 'tblTempUsageDetail_20' ) start [2025-02-17 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497168', 'tblTempUsageDetail_20' ) end [2025-02-17 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497168', 'tblTempVendorCDR_20' ) start [2025-02-17 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497168', 'tblTempVendorCDR_20' ) end [2025-02-17 17:09:20] Production.INFO: ProcessCDR(1,14497168,1,1,2) [2025-02-17 17:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497168', 'tblTempUsageDetail_20' ) start [2025-02-17 17:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497168', 'tblTempUsageDetail_20' ) end [2025-02-17 17:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:09:23] Production.INFO: ==18142== Releasing lock... [2025-02-17 17:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:09:23] Production.INFO: 49.25 MB #Memory Used# [2025-02-17 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:10:05 [end_date_ymd] => 2025-02-17 17:10:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 14:10:05' and `end` < '2025-02-17 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-02-17 17:10:19] Production.INFO: count ==2866 [2025-02-17 17:10:20] Production.ERROR: pbx CDR StartTime 2025-02-17 14:10:05 - End Time 2025-02-17 17:10:05 [2025-02-17 17:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497174', 'tblTempUsageDetail_20' ) start [2025-02-17 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497174', 'tblTempUsageDetail_20' ) end [2025-02-17 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497174', 'tblTempVendorCDR_20' ) start [2025-02-17 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497174', 'tblTempVendorCDR_20' ) end [2025-02-17 17:10:20] Production.INFO: ProcessCDR(1,14497174,1,1,2) [2025-02-17 17:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497174', 'tblTempUsageDetail_20' ) start [2025-02-17 17:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497174', 'tblTempUsageDetail_20' ) end [2025-02-17 17:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:10:25] Production.INFO: ==18220== Releasing lock... [2025-02-17 17:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:10:25] Production.INFO: 49.25 MB #Memory Used# [2025-02-17 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:11:05 [end_date_ymd] => 2025-02-17 17:11:05 [RateCDR] => 1 ) [2025-02-17 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:11:05' and `end` < '2025-02-17 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:11:19] Production.INFO: count ==2907 [2025-02-17 17:11:20] Production.ERROR: pbx CDR StartTime 2025-02-17 14:11:05 - End Time 2025-02-17 17:11:05 [2025-02-17 17:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497179', 'tblTempUsageDetail_20' ) start [2025-02-17 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497179', 'tblTempUsageDetail_20' ) end [2025-02-17 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497179', 'tblTempVendorCDR_20' ) start [2025-02-17 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497179', 'tblTempVendorCDR_20' ) end [2025-02-17 17:11:20] Production.INFO: ProcessCDR(1,14497179,1,1,2) [2025-02-17 17:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497179', 'tblTempUsageDetail_20' ) start [2025-02-17 17:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497179', 'tblTempUsageDetail_20' ) end [2025-02-17 17:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:11:23] Production.INFO: ==18299== Releasing lock... [2025-02-17 17:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:11:23] Production.INFO: 49.25 MB #Memory Used# [2025-02-17 17:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:12:06 [end_date_ymd] => 2025-02-17 17:12:06 [RateCDR] => 1 ) [2025-02-17 17:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:12:06' and `end` < '2025-02-17 17:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:12:20] Production.INFO: count ==2906 [2025-02-17 17:12:21] Production.ERROR: pbx CDR StartTime 2025-02-17 14:12:06 - End Time 2025-02-17 17:12:06 [2025-02-17 17:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497184', 'tblTempUsageDetail_20' ) start [2025-02-17 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497184', 'tblTempUsageDetail_20' ) end [2025-02-17 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497184', 'tblTempVendorCDR_20' ) start [2025-02-17 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497184', 'tblTempVendorCDR_20' ) end [2025-02-17 17:12:21] Production.INFO: ProcessCDR(1,14497184,1,1,2) [2025-02-17 17:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497184', 'tblTempUsageDetail_20' ) start [2025-02-17 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497184', 'tblTempUsageDetail_20' ) end [2025-02-17 17:12:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:12:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:12:25] Production.INFO: ==18375== Releasing lock... [2025-02-17 17:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:12:25] Production.INFO: 49.75 MB #Memory Used# [2025-02-17 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:13:05 [end_date_ymd] => 2025-02-17 17:13:05 [RateCDR] => 1 ) [2025-02-17 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:13:05' and `end` < '2025-02-17 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:13:18] Production.INFO: count ==2900 [2025-02-17 17:13:19] Production.ERROR: pbx CDR StartTime 2025-02-17 14:13:05 - End Time 2025-02-17 17:13:05 [2025-02-17 17:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497189', 'tblTempUsageDetail_20' ) start [2025-02-17 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497189', 'tblTempUsageDetail_20' ) end [2025-02-17 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497189', 'tblTempVendorCDR_20' ) start [2025-02-17 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497189', 'tblTempVendorCDR_20' ) end [2025-02-17 17:13:19] Production.INFO: ProcessCDR(1,14497189,1,1,2) [2025-02-17 17:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497189', 'tblTempUsageDetail_20' ) start [2025-02-17 17:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497189', 'tblTempUsageDetail_20' ) end [2025-02-17 17:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:13:22] Production.INFO: ==18482== Releasing lock... [2025-02-17 17:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:13:22] Production.INFO: 49.75 MB #Memory Used# [2025-02-17 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:14:05 [end_date_ymd] => 2025-02-17 17:14:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 14:14:05' and `end` < '2025-02-17 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-02-17 17:14:19] Production.INFO: count ==2908 [2025-02-17 17:14:20] Production.ERROR: pbx CDR StartTime 2025-02-17 14:14:05 - End Time 2025-02-17 17:14:05 [2025-02-17 17:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497194', 'tblTempUsageDetail_20' ) start [2025-02-17 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497194', 'tblTempUsageDetail_20' ) end [2025-02-17 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497194', 'tblTempVendorCDR_20' ) start [2025-02-17 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497194', 'tblTempVendorCDR_20' ) end [2025-02-17 17:14:21] Production.INFO: ProcessCDR(1,14497194,1,1,2) [2025-02-17 17:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497194', 'tblTempUsageDetail_20' ) start [2025-02-17 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497194', 'tblTempUsageDetail_20' ) end [2025-02-17 17:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:14:26] Production.INFO: ==18559== Releasing lock... [2025-02-17 17:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:14:26] Production.INFO: 49.5 MB #Memory Used# [2025-02-17 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:15:05 [end_date_ymd] => 2025-02-17 17:15:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 14:15:05' and `end` < '2025-02-17 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-02-17 17:15:19] Production.INFO: count ==2939 [2025-02-17 17:15:20] Production.ERROR: pbx CDR StartTime 2025-02-17 14:15:05 - End Time 2025-02-17 17:15:05 [2025-02-17 17:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497199', 'tblTempUsageDetail_20' ) start [2025-02-17 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497199', 'tblTempUsageDetail_20' ) end [2025-02-17 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497199', 'tblTempVendorCDR_20' ) start [2025-02-17 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497199', 'tblTempVendorCDR_20' ) end [2025-02-17 17:15:20] Production.INFO: ProcessCDR(1,14497199,1,1,2) [2025-02-17 17:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497199', 'tblTempUsageDetail_20' ) start [2025-02-17 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497199', 'tblTempUsageDetail_20' ) end [2025-02-17 17:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:15:25] Production.INFO: ==18632== Releasing lock... [2025-02-17 17:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:15:25] Production.INFO: 49.75 MB #Memory Used# [2025-02-17 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:16:05 [end_date_ymd] => 2025-02-17 17:16:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 14:16:05' and `end` < '2025-02-17 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-02-17 17:16:19] Production.INFO: count ==2944 [2025-02-17 17:16:20] Production.ERROR: pbx CDR StartTime 2025-02-17 14:16:05 - End Time 2025-02-17 17:16:05 [2025-02-17 17:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497204', 'tblTempUsageDetail_20' ) start [2025-02-17 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497204', 'tblTempUsageDetail_20' ) end [2025-02-17 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497204', 'tblTempVendorCDR_20' ) start [2025-02-17 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497204', 'tblTempVendorCDR_20' ) end [2025-02-17 17:16:20] Production.INFO: ProcessCDR(1,14497204,1,1,2) [2025-02-17 17:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497204', 'tblTempUsageDetail_20' ) start [2025-02-17 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497204', 'tblTempUsageDetail_20' ) end [2025-02-17 17:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:16:25] Production.INFO: ==18705== Releasing lock... [2025-02-17 17:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:16:25] Production.INFO: 49.75 MB #Memory Used# [2025-02-17 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:17:05 [end_date_ymd] => 2025-02-17 17:17:05 [RateCDR] => 1 ) [2025-02-17 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:17:05' and `end` < '2025-02-17 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:17:19] Production.INFO: count ==2962 [2025-02-17 17:17:20] Production.ERROR: pbx CDR StartTime 2025-02-17 14:17:05 - End Time 2025-02-17 17:17:05 [2025-02-17 17:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497209', 'tblTempUsageDetail_20' ) start [2025-02-17 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497209', 'tblTempUsageDetail_20' ) end [2025-02-17 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497209', 'tblTempVendorCDR_20' ) start [2025-02-17 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497209', 'tblTempVendorCDR_20' ) end [2025-02-17 17:17:20] Production.INFO: ProcessCDR(1,14497209,1,1,2) [2025-02-17 17:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497209', 'tblTempUsageDetail_20' ) start [2025-02-17 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497209', 'tblTempUsageDetail_20' ) end [2025-02-17 17:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:17:24] Production.INFO: ==18780== Releasing lock... [2025-02-17 17:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:17:24] Production.INFO: 49.75 MB #Memory Used# [2025-02-17 17:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:18:06 [end_date_ymd] => 2025-02-17 17:18:06 [RateCDR] => 1 ) [2025-02-17 17:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:18:06' and `end` < '2025-02-17 17:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:18:20] Production.INFO: count ==2978 [2025-02-17 17:18:21] Production.ERROR: pbx CDR StartTime 2025-02-17 14:18:06 - End Time 2025-02-17 17:18:06 [2025-02-17 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497214', 'tblTempUsageDetail_20' ) start [2025-02-17 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497214', 'tblTempUsageDetail_20' ) end [2025-02-17 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497214', 'tblTempVendorCDR_20' ) start [2025-02-17 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497214', 'tblTempVendorCDR_20' ) end [2025-02-17 17:18:21] Production.INFO: ProcessCDR(1,14497214,1,1,2) [2025-02-17 17:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497214', 'tblTempUsageDetail_20' ) start [2025-02-17 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497214', 'tblTempUsageDetail_20' ) end [2025-02-17 17:18:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:18:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:18:26] Production.INFO: ==18853== Releasing lock... [2025-02-17 17:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:18:26] Production.INFO: 50 MB #Memory Used# [2025-02-17 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:19:05 [end_date_ymd] => 2025-02-17 17:19:05 [RateCDR] => 1 ) [2025-02-17 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:19:05' and `end` < '2025-02-17 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:19:18] Production.INFO: count ==2985 [2025-02-17 17:19:19] Production.ERROR: pbx CDR StartTime 2025-02-17 14:19:05 - End Time 2025-02-17 17:19:05 [2025-02-17 17:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497219', 'tblTempUsageDetail_20' ) start [2025-02-17 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497219', 'tblTempUsageDetail_20' ) end [2025-02-17 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497219', 'tblTempVendorCDR_20' ) start [2025-02-17 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497219', 'tblTempVendorCDR_20' ) end [2025-02-17 17:19:19] Production.INFO: ProcessCDR(1,14497219,1,1,2) [2025-02-17 17:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497219', 'tblTempUsageDetail_20' ) start [2025-02-17 17:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497219', 'tblTempUsageDetail_20' ) end [2025-02-17 17:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:19:24] Production.INFO: ==18926== Releasing lock... [2025-02-17 17:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:19:24] Production.INFO: 50.25 MB #Memory Used# [2025-02-17 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:20:06 [end_date_ymd] => 2025-02-17 17:20:06 [RateCDR] => 1 ) [2025-02-17 17:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:20:06' and `end` < '2025-02-17 17:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:20:21] Production.INFO: count ==3006 [2025-02-17 17:20:23] Production.ERROR: pbx CDR StartTime 2025-02-17 14:20:06 - End Time 2025-02-17 17:20:06 [2025-02-17 17:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497225', 'tblTempUsageDetail_20' ) start [2025-02-17 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497225', 'tblTempUsageDetail_20' ) end [2025-02-17 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497225', 'tblTempVendorCDR_20' ) start [2025-02-17 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497225', 'tblTempVendorCDR_20' ) end [2025-02-17 17:20:23] Production.INFO: ProcessCDR(1,14497225,1,1,2) [2025-02-17 17:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497225', 'tblTempUsageDetail_20' ) start [2025-02-17 17:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497225', 'tblTempUsageDetail_20' ) end [2025-02-17 17:20:28] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:20:28] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:20:28] Production.INFO: ==18998== Releasing lock... [2025-02-17 17:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:20:28] Production.INFO: 50.75 MB #Memory Used# [2025-02-17 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:21:05 [end_date_ymd] => 2025-02-17 17:21:05 [RateCDR] => 1 ) [2025-02-17 17:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:21:05' and `end` < '2025-02-17 17:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:21:20] Production.INFO: count ==3047 [2025-02-17 17:21:21] Production.ERROR: pbx CDR StartTime 2025-02-17 14:21:05 - End Time 2025-02-17 17:21:05 [2025-02-17 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497230', 'tblTempUsageDetail_20' ) start [2025-02-17 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497230', 'tblTempUsageDetail_20' ) end [2025-02-17 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497230', 'tblTempVendorCDR_20' ) start [2025-02-17 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497230', 'tblTempVendorCDR_20' ) end [2025-02-17 17:21:21] Production.INFO: ProcessCDR(1,14497230,1,1,2) [2025-02-17 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497230', 'tblTempUsageDetail_20' ) start [2025-02-17 17:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497230', 'tblTempUsageDetail_20' ) end [2025-02-17 17:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:21:24] Production.INFO: ==19073== Releasing lock... [2025-02-17 17:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:21:24] Production.INFO: 50.75 MB #Memory Used# [2025-02-17 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:22:05 [end_date_ymd] => 2025-02-17 17:22:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 14:22:05' and `end` < '2025-02-17 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-02-17 17:22:20] Production.INFO: count ==3049 [2025-02-17 17:22:21] Production.ERROR: pbx CDR StartTime 2025-02-17 14:22:05 - End Time 2025-02-17 17:22:05 [2025-02-17 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497235', 'tblTempUsageDetail_20' ) start [2025-02-17 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497235', 'tblTempUsageDetail_20' ) end [2025-02-17 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497235', 'tblTempVendorCDR_20' ) start [2025-02-17 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497235', 'tblTempVendorCDR_20' ) end [2025-02-17 17:22:21] Production.INFO: ProcessCDR(1,14497235,1,1,2) [2025-02-17 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497235', 'tblTempUsageDetail_20' ) start [2025-02-17 17:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497235', 'tblTempUsageDetail_20' ) end [2025-02-17 17:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:22:24] Production.INFO: ==19150== Releasing lock... [2025-02-17 17:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:22:24] Production.INFO: 50.75 MB #Memory Used# [2025-02-17 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:23:05 [end_date_ymd] => 2025-02-17 17:23:05 [RateCDR] => 1 ) [2025-02-17 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:23:05' and `end` < '2025-02-17 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:23:20] Production.INFO: count ==3036 [2025-02-17 17:23:21] Production.ERROR: pbx CDR StartTime 2025-02-17 14:23:05 - End Time 2025-02-17 17:23:05 [2025-02-17 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497240', 'tblTempUsageDetail_20' ) start [2025-02-17 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497240', 'tblTempUsageDetail_20' ) end [2025-02-17 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497240', 'tblTempVendorCDR_20' ) start [2025-02-17 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497240', 'tblTempVendorCDR_20' ) end [2025-02-17 17:23:21] Production.INFO: ProcessCDR(1,14497240,1,1,2) [2025-02-17 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497240', 'tblTempUsageDetail_20' ) start [2025-02-17 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497240', 'tblTempUsageDetail_20' ) end [2025-02-17 17:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:23:26] Production.INFO: ==19224== Releasing lock... [2025-02-17 17:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:23:26] Production.INFO: 50.5 MB #Memory Used# [2025-02-17 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:24:05 [end_date_ymd] => 2025-02-17 17:24:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 14:24:05' and `end` < '2025-02-17 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-02-17 17:24:19] Production.INFO: count ==3028 [2025-02-17 17:24:20] Production.ERROR: pbx CDR StartTime 2025-02-17 14:24:05 - End Time 2025-02-17 17:24:05 [2025-02-17 17:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497245', 'tblTempUsageDetail_20' ) start [2025-02-17 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497245', 'tblTempUsageDetail_20' ) end [2025-02-17 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497245', 'tblTempVendorCDR_20' ) start [2025-02-17 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497245', 'tblTempVendorCDR_20' ) end [2025-02-17 17:24:20] Production.INFO: ProcessCDR(1,14497245,1,1,2) [2025-02-17 17:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497245', 'tblTempUsageDetail_20' ) start [2025-02-17 17:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497245', 'tblTempUsageDetail_20' ) end [2025-02-17 17:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:24:23] Production.INFO: ==19304== Releasing lock... [2025-02-17 17:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:24:23] Production.INFO: 50.5 MB #Memory Used# [2025-02-17 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:25:05 [end_date_ymd] => 2025-02-17 17:25:05 [RateCDR] => 1 ) [2025-02-17 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:25:05' and `end` < '2025-02-17 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:25:18] Production.INFO: count ==3042 [2025-02-17 17:25:19] Production.ERROR: pbx CDR StartTime 2025-02-17 14:25:05 - End Time 2025-02-17 17:25:05 [2025-02-17 17:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497250', 'tblTempUsageDetail_20' ) start [2025-02-17 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497250', 'tblTempUsageDetail_20' ) end [2025-02-17 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497250', 'tblTempVendorCDR_20' ) start [2025-02-17 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497250', 'tblTempVendorCDR_20' ) end [2025-02-17 17:25:20] Production.INFO: ProcessCDR(1,14497250,1,1,2) [2025-02-17 17:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497250', 'tblTempUsageDetail_20' ) start [2025-02-17 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497250', 'tblTempUsageDetail_20' ) end [2025-02-17 17:25:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:25:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:25:25] Production.INFO: ==19377== Releasing lock... [2025-02-17 17:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:25:25] Production.INFO: 50.75 MB #Memory Used# [2025-02-17 17:26:27] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:26:27 [end_date_ymd] => 2025-02-17 17:26:27 [RateCDR] => 1 ) [2025-02-17 17:26:27] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:26:27' and `end` < '2025-02-17 17:26:27' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:26:41] Production.INFO: count ==3037 [2025-02-17 17:27:28] Production.ERROR: pbx CDR StartTime 2025-02-17 14:26:27 - End Time 2025-02-17 17:26:27 [2025-02-17 17:27:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497255', 'tblTempUsageDetail_20' ) start [2025-02-17 17:27:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497255', 'tblTempUsageDetail_20' ) end [2025-02-17 17:27:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497255', 'tblTempVendorCDR_20' ) start [2025-02-17 17:27:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497255', 'tblTempVendorCDR_20' ) end [2025-02-17 17:27:38] Production.INFO: ProcessCDR(1,14497255,1,1,2) [2025-02-17 17:27:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:27:48] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:27:48] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497255', 'tblTempUsageDetail_20' ) start [2025-02-17 17:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497255', 'tblTempUsageDetail_20' ) end [2025-02-17 17:28:33] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:28:33] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:28:42] Production.INFO: ==19456== Releasing lock... [2025-02-17 17:28:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:28:42] Production.INFO: 50.5 MB #Memory Used# [2025-02-17 17:29:24] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:29:24 [end_date_ymd] => 2025-02-17 17:29:24 [RateCDR] => 1 ) [2025-02-17 17:29:24] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:29:24' and `end` < '2025-02-17 17:29:24' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:29:37] Production.INFO: count ==3036 [2025-02-17 17:30:09] Production.ERROR: pbx CDR StartTime 2025-02-17 14:29:24 - End Time 2025-02-17 17:29:24 [2025-02-17 17:30:09] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:30:09] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497266', 'tblTempUsageDetail_20' ) start [2025-02-17 17:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497266', 'tblTempUsageDetail_20' ) end [2025-02-17 17:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497266', 'tblTempVendorCDR_20' ) start [2025-02-17 17:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497266', 'tblTempVendorCDR_20' ) end [2025-02-17 17:30:24] Production.INFO: ProcessCDR(1,14497266,1,1,2) [2025-02-17 17:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:30:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:30:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:31:04] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:31:04] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497266', 'tblTempUsageDetail_20' ) start [2025-02-17 17:31:07] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497266', 'tblTempUsageDetail_20' ) end [2025-02-17 17:31:07] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:31:07] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:31:15] Production.INFO: ==19692== Releasing lock... [2025-02-17 17:31:15] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:31:15] Production.INFO: 50.5 MB #Memory Used# [2025-02-17 17:32:33] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:32:33 [end_date_ymd] => 2025-02-17 17:32:33 [RateCDR] => 1 ) [2025-02-17 17:32:33] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:32:33' and `end` < '2025-02-17 17:32:33' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:32:47] Production.INFO: count ==3044 [2025-02-17 17:33:23] Production.ERROR: pbx CDR StartTime 2025-02-17 14:32:33 - End Time 2025-02-17 17:32:33 [2025-02-17 17:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497278', 'tblTempUsageDetail_20' ) start [2025-02-17 17:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497278', 'tblTempUsageDetail_20' ) end [2025-02-17 17:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497278', 'tblTempVendorCDR_20' ) start [2025-02-17 17:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497278', 'tblTempVendorCDR_20' ) end [2025-02-17 17:33:27] Production.INFO: ProcessCDR(1,14497278,1,1,2) [2025-02-17 17:33:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:33:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:33:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:33:58] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:33:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497278', 'tblTempUsageDetail_20' ) start [2025-02-17 17:34:07] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497278', 'tblTempUsageDetail_20' ) end [2025-02-17 17:34:07] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:34:07] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:34:11] Production.INFO: ==19904== Releasing lock... [2025-02-17 17:34:11] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:34:11] Production.INFO: 50.75 MB #Memory Used# [2025-02-17 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:35:05 [end_date_ymd] => 2025-02-17 17:35:05 [RateCDR] => 1 ) [2025-02-17 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:35:05' and `end` < '2025-02-17 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:35:18] Production.INFO: count ==3041 [2025-02-17 17:35:19] Production.ERROR: pbx CDR StartTime 2025-02-17 14:35:05 - End Time 2025-02-17 17:35:05 [2025-02-17 17:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497289', 'tblTempUsageDetail_20' ) start [2025-02-17 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497289', 'tblTempUsageDetail_20' ) end [2025-02-17 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497289', 'tblTempVendorCDR_20' ) start [2025-02-17 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497289', 'tblTempVendorCDR_20' ) end [2025-02-17 17:35:19] Production.INFO: ProcessCDR(1,14497289,1,1,2) [2025-02-17 17:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497289', 'tblTempUsageDetail_20' ) start [2025-02-17 17:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497289', 'tblTempUsageDetail_20' ) end [2025-02-17 17:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:35:24] Production.INFO: ==20117== Releasing lock... [2025-02-17 17:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:35:24] Production.INFO: 50.75 MB #Memory Used# [2025-02-17 17:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:36:06 [end_date_ymd] => 2025-02-17 17:36:06 [RateCDR] => 1 ) [2025-02-17 17:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:36:06' and `end` < '2025-02-17 17:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:36:20] Production.INFO: count ==3047 [2025-02-17 17:36:21] Production.ERROR: pbx CDR StartTime 2025-02-17 14:36:06 - End Time 2025-02-17 17:36:06 [2025-02-17 17:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497294', 'tblTempUsageDetail_20' ) start [2025-02-17 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497294', 'tblTempUsageDetail_20' ) end [2025-02-17 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497294', 'tblTempVendorCDR_20' ) start [2025-02-17 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497294', 'tblTempVendorCDR_20' ) end [2025-02-17 17:36:21] Production.INFO: ProcessCDR(1,14497294,1,1,2) [2025-02-17 17:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497294', 'tblTempUsageDetail_20' ) start [2025-02-17 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497294', 'tblTempUsageDetail_20' ) end [2025-02-17 17:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:36:24] Production.INFO: ==20191== Releasing lock... [2025-02-17 17:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:36:24] Production.INFO: 50.75 MB #Memory Used# [2025-02-17 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:37:05 [end_date_ymd] => 2025-02-17 17:37:05 [RateCDR] => 1 ) [2025-02-17 17:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:37:05' and `end` < '2025-02-17 17:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:37:18] Production.INFO: count ==3047 [2025-02-17 17:37:19] Production.ERROR: pbx CDR StartTime 2025-02-17 14:37:05 - End Time 2025-02-17 17:37:05 [2025-02-17 17:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497299', 'tblTempUsageDetail_20' ) start [2025-02-17 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497299', 'tblTempUsageDetail_20' ) end [2025-02-17 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497299', 'tblTempVendorCDR_20' ) start [2025-02-17 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497299', 'tblTempVendorCDR_20' ) end [2025-02-17 17:37:19] Production.INFO: ProcessCDR(1,14497299,1,1,2) [2025-02-17 17:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497299', 'tblTempUsageDetail_20' ) start [2025-02-17 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497299', 'tblTempUsageDetail_20' ) end [2025-02-17 17:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:37:23] Production.INFO: ==20263== Releasing lock... [2025-02-17 17:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:37:23] Production.INFO: 51.25 MB #Memory Used# [2025-02-17 17:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:38:06 [end_date_ymd] => 2025-02-17 17:38:06 [RateCDR] => 1 ) [2025-02-17 17:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:38:06' and `end` < '2025-02-17 17:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:38:21] Production.INFO: count ==3054 [2025-02-17 17:38:22] Production.ERROR: pbx CDR StartTime 2025-02-17 14:38:06 - End Time 2025-02-17 17:38:06 [2025-02-17 17:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497304', 'tblTempUsageDetail_20' ) start [2025-02-17 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497304', 'tblTempUsageDetail_20' ) end [2025-02-17 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497304', 'tblTempVendorCDR_20' ) start [2025-02-17 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497304', 'tblTempVendorCDR_20' ) end [2025-02-17 17:38:22] Production.INFO: ProcessCDR(1,14497304,1,1,2) [2025-02-17 17:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497304', 'tblTempUsageDetail_20' ) start [2025-02-17 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497304', 'tblTempUsageDetail_20' ) end [2025-02-17 17:38:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:38:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:38:27] Production.INFO: ==20338== Releasing lock... [2025-02-17 17:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:38:27] Production.INFO: 51.25 MB #Memory Used# [2025-02-17 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:39:05 [end_date_ymd] => 2025-02-17 17:39:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 14:39:05' and `end` < '2025-02-17 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-02-17 17:39:18] Production.INFO: count ==3055 [2025-02-17 17:39:19] Production.ERROR: pbx CDR StartTime 2025-02-17 14:39:05 - End Time 2025-02-17 17:39:05 [2025-02-17 17:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497309', 'tblTempUsageDetail_20' ) start [2025-02-17 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497309', 'tblTempUsageDetail_20' ) end [2025-02-17 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497309', 'tblTempVendorCDR_20' ) start [2025-02-17 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497309', 'tblTempVendorCDR_20' ) end [2025-02-17 17:39:20] Production.INFO: ProcessCDR(1,14497309,1,1,2) [2025-02-17 17:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497309', 'tblTempUsageDetail_20' ) start [2025-02-17 17:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497309', 'tblTempUsageDetail_20' ) end [2025-02-17 17:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:39:24] Production.INFO: ==20411== Releasing lock... [2025-02-17 17:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:39:24] Production.INFO: 51.25 MB #Memory Used# [2025-02-17 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:40:06 [end_date_ymd] => 2025-02-17 17:40:06 [RateCDR] => 1 ) [2025-02-17 17:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:40:06' and `end` < '2025-02-17 17:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:40:20] Production.INFO: count ==3053 [2025-02-17 17:40:21] Production.ERROR: pbx CDR StartTime 2025-02-17 14:40:06 - End Time 2025-02-17 17:40:06 [2025-02-17 17:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497315', 'tblTempUsageDetail_20' ) start [2025-02-17 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497315', 'tblTempUsageDetail_20' ) end [2025-02-17 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497315', 'tblTempVendorCDR_20' ) start [2025-02-17 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497315', 'tblTempVendorCDR_20' ) end [2025-02-17 17:40:22] Production.INFO: ProcessCDR(1,14497315,1,1,2) [2025-02-17 17:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497315', 'tblTempUsageDetail_20' ) start [2025-02-17 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497315', 'tblTempUsageDetail_20' ) end [2025-02-17 17:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:40:27] Production.INFO: ==20485== Releasing lock... [2025-02-17 17:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:40:27] Production.INFO: 50.75 MB #Memory Used# [2025-02-17 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:41:05 [end_date_ymd] => 2025-02-17 17:41:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 14:41:05' and `end` < '2025-02-17 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-02-17 17:41:21] Production.INFO: count ==3095 [2025-02-17 17:41:22] Production.ERROR: pbx CDR StartTime 2025-02-17 14:41:05 - End Time 2025-02-17 17:41:05 [2025-02-17 17:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497320', 'tblTempUsageDetail_20' ) start [2025-02-17 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497320', 'tblTempUsageDetail_20' ) end [2025-02-17 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497320', 'tblTempVendorCDR_20' ) start [2025-02-17 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497320', 'tblTempVendorCDR_20' ) end [2025-02-17 17:41:22] Production.INFO: ProcessCDR(1,14497320,1,1,2) [2025-02-17 17:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497320', 'tblTempUsageDetail_20' ) start [2025-02-17 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497320', 'tblTempUsageDetail_20' ) end [2025-02-17 17:41:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:41:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:41:27] Production.INFO: ==20568== Releasing lock... [2025-02-17 17:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:41:27] Production.INFO: 51.5 MB #Memory Used# [2025-02-17 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:42:05 [end_date_ymd] => 2025-02-17 17:42:05 [RateCDR] => 1 ) [2025-02-17 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:42:05' and `end` < '2025-02-17 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:42:20] Production.INFO: count ==3102 [2025-02-17 17:42:21] Production.ERROR: pbx CDR StartTime 2025-02-17 14:42:05 - End Time 2025-02-17 17:42:05 [2025-02-17 17:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497325', 'tblTempUsageDetail_20' ) start [2025-02-17 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497325', 'tblTempUsageDetail_20' ) end [2025-02-17 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497325', 'tblTempVendorCDR_20' ) start [2025-02-17 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497325', 'tblTempVendorCDR_20' ) end [2025-02-17 17:42:21] Production.INFO: ProcessCDR(1,14497325,1,1,2) [2025-02-17 17:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497325', 'tblTempUsageDetail_20' ) start [2025-02-17 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497325', 'tblTempUsageDetail_20' ) end [2025-02-17 17:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:42:26] Production.INFO: ==20639== Releasing lock... [2025-02-17 17:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:42:26] Production.INFO: 51.25 MB #Memory Used# [2025-02-17 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:43:05 [end_date_ymd] => 2025-02-17 17:43:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 14:43:05' and `end` < '2025-02-17 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-02-17 17:43:20] Production.INFO: count ==3101 [2025-02-17 17:43:21] Production.ERROR: pbx CDR StartTime 2025-02-17 14:43:05 - End Time 2025-02-17 17:43:05 [2025-02-17 17:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497330', 'tblTempUsageDetail_20' ) start [2025-02-17 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497330', 'tblTempUsageDetail_20' ) end [2025-02-17 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497330', 'tblTempVendorCDR_20' ) start [2025-02-17 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497330', 'tblTempVendorCDR_20' ) end [2025-02-17 17:43:21] Production.INFO: ProcessCDR(1,14497330,1,1,2) [2025-02-17 17:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497330', 'tblTempUsageDetail_20' ) start [2025-02-17 17:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497330', 'tblTempUsageDetail_20' ) end [2025-02-17 17:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:43:24] Production.INFO: ==20709== Releasing lock... [2025-02-17 17:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:43:24] Production.INFO: 51.75 MB #Memory Used# [2025-02-17 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:44:05 [end_date_ymd] => 2025-02-17 17:44:05 [RateCDR] => 1 ) [2025-02-17 17:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:44:05' and `end` < '2025-02-17 17:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:44:19] Production.INFO: count ==3104 [2025-02-17 17:44:20] Production.ERROR: pbx CDR StartTime 2025-02-17 14:44:05 - End Time 2025-02-17 17:44:05 [2025-02-17 17:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497335', 'tblTempUsageDetail_20' ) start [2025-02-17 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497335', 'tblTempUsageDetail_20' ) end [2025-02-17 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497335', 'tblTempVendorCDR_20' ) start [2025-02-17 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497335', 'tblTempVendorCDR_20' ) end [2025-02-17 17:44:20] Production.INFO: ProcessCDR(1,14497335,1,1,2) [2025-02-17 17:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497335', 'tblTempUsageDetail_20' ) start [2025-02-17 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497335', 'tblTempUsageDetail_20' ) end [2025-02-17 17:44:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:44:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:44:25] Production.INFO: ==20820== Releasing lock... [2025-02-17 17:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:44:25] Production.INFO: 51 MB #Memory Used# [2025-02-17 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:45:05 [end_date_ymd] => 2025-02-17 17:45:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 14:45:05' and `end` < '2025-02-17 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-02-17 17:45:19] Production.INFO: count ==3095 [2025-02-17 17:45:21] Production.ERROR: pbx CDR StartTime 2025-02-17 14:45:05 - End Time 2025-02-17 17:45:05 [2025-02-17 17:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497340', 'tblTempUsageDetail_20' ) start [2025-02-17 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497340', 'tblTempUsageDetail_20' ) end [2025-02-17 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497340', 'tblTempVendorCDR_20' ) start [2025-02-17 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497340', 'tblTempVendorCDR_20' ) end [2025-02-17 17:45:21] Production.INFO: ProcessCDR(1,14497340,1,1,2) [2025-02-17 17:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497340', 'tblTempUsageDetail_20' ) start [2025-02-17 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497340', 'tblTempUsageDetail_20' ) end [2025-02-17 17:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:45:26] Production.INFO: ==20891== Releasing lock... [2025-02-17 17:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:45:26] Production.INFO: 51 MB #Memory Used# [2025-02-17 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:46:05 [end_date_ymd] => 2025-02-17 17:46:05 [RateCDR] => 1 ) [2025-02-17 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:46:05' and `end` < '2025-02-17 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:46:20] Production.INFO: count ==3118 [2025-02-17 17:46:21] Production.ERROR: pbx CDR StartTime 2025-02-17 14:46:05 - End Time 2025-02-17 17:46:05 [2025-02-17 17:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497345', 'tblTempUsageDetail_20' ) start [2025-02-17 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497345', 'tblTempUsageDetail_20' ) end [2025-02-17 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497345', 'tblTempVendorCDR_20' ) start [2025-02-17 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497345', 'tblTempVendorCDR_20' ) end [2025-02-17 17:46:21] Production.INFO: ProcessCDR(1,14497345,1,1,2) [2025-02-17 17:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497345', 'tblTempUsageDetail_20' ) start [2025-02-17 17:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497345', 'tblTempUsageDetail_20' ) end [2025-02-17 17:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:46:26] Production.INFO: ==20962== Releasing lock... [2025-02-17 17:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:46:26] Production.INFO: 51.25 MB #Memory Used# [2025-02-17 17:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:47:06 [end_date_ymd] => 2025-02-17 17:47:06 [RateCDR] => 1 ) [2025-02-17 17:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:47:06' and `end` < '2025-02-17 17:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:47:20] Production.INFO: count ==3113 [2025-02-17 17:47:21] Production.ERROR: pbx CDR StartTime 2025-02-17 14:47:06 - End Time 2025-02-17 17:47:06 [2025-02-17 17:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497350', 'tblTempUsageDetail_20' ) start [2025-02-17 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497350', 'tblTempUsageDetail_20' ) end [2025-02-17 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497350', 'tblTempVendorCDR_20' ) start [2025-02-17 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497350', 'tblTempVendorCDR_20' ) end [2025-02-17 17:47:21] Production.INFO: ProcessCDR(1,14497350,1,1,2) [2025-02-17 17:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497350', 'tblTempUsageDetail_20' ) start [2025-02-17 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497350', 'tblTempUsageDetail_20' ) end [2025-02-17 17:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:47:26] Production.INFO: ==21031== Releasing lock... [2025-02-17 17:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:47:26] Production.INFO: 51.75 MB #Memory Used# [2025-02-17 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:48:05 [end_date_ymd] => 2025-02-17 17:48:05 [RateCDR] => 1 ) [2025-02-17 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:48:05' and `end` < '2025-02-17 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:48:19] Production.INFO: count ==3111 [2025-02-17 17:48:20] Production.ERROR: pbx CDR StartTime 2025-02-17 14:48:05 - End Time 2025-02-17 17:48:05 [2025-02-17 17:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497355', 'tblTempUsageDetail_20' ) start [2025-02-17 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497355', 'tblTempUsageDetail_20' ) end [2025-02-17 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497355', 'tblTempVendorCDR_20' ) start [2025-02-17 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497355', 'tblTempVendorCDR_20' ) end [2025-02-17 17:48:20] Production.INFO: ProcessCDR(1,14497355,1,1,2) [2025-02-17 17:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497355', 'tblTempUsageDetail_20' ) start [2025-02-17 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497355', 'tblTempUsageDetail_20' ) end [2025-02-17 17:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:48:23] Production.INFO: ==21103== Releasing lock... [2025-02-17 17:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:48:23] Production.INFO: 51.25 MB #Memory Used# [2025-02-17 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:49:05 [end_date_ymd] => 2025-02-17 17:49:05 [RateCDR] => 1 ) [2025-02-17 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:49:05' and `end` < '2025-02-17 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:49:18] Production.INFO: count ==3117 [2025-02-17 17:49:19] Production.ERROR: pbx CDR StartTime 2025-02-17 14:49:05 - End Time 2025-02-17 17:49:05 [2025-02-17 17:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497360', 'tblTempUsageDetail_20' ) start [2025-02-17 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497360', 'tblTempUsageDetail_20' ) end [2025-02-17 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497360', 'tblTempVendorCDR_20' ) start [2025-02-17 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497360', 'tblTempVendorCDR_20' ) end [2025-02-17 17:49:20] Production.INFO: ProcessCDR(1,14497360,1,1,2) [2025-02-17 17:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497360', 'tblTempUsageDetail_20' ) start [2025-02-17 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497360', 'tblTempUsageDetail_20' ) end [2025-02-17 17:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:49:23] Production.INFO: ==21186== Releasing lock... [2025-02-17 17:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:49:23] Production.INFO: 51.25 MB #Memory Used# [2025-02-17 17:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:50:05 [end_date_ymd] => 2025-02-17 17:50:05 [RateCDR] => 1 ) [2025-02-17 17: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-02-17 14:50:05' and `end` < '2025-02-17 17:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:50:19] Production.INFO: count ==3118 [2025-02-17 17:50:20] Production.ERROR: pbx CDR StartTime 2025-02-17 14:50:05 - End Time 2025-02-17 17:50:05 [2025-02-17 17:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497366', 'tblTempUsageDetail_20' ) start [2025-02-17 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497366', 'tblTempUsageDetail_20' ) end [2025-02-17 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497366', 'tblTempVendorCDR_20' ) start [2025-02-17 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497366', 'tblTempVendorCDR_20' ) end [2025-02-17 17:50:20] Production.INFO: ProcessCDR(1,14497366,1,1,2) [2025-02-17 17:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497366', 'tblTempUsageDetail_20' ) start [2025-02-17 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497366', 'tblTempUsageDetail_20' ) end [2025-02-17 17:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:50:25] Production.INFO: ==21260== Releasing lock... [2025-02-17 17:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:50:25] Production.INFO: 51.25 MB #Memory Used# [2025-02-17 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:51:05 [end_date_ymd] => 2025-02-17 17:51:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 14:51:05' and `end` < '2025-02-17 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-02-17 17:51:18] Production.INFO: count ==3093 [2025-02-17 17:51:19] Production.ERROR: pbx CDR StartTime 2025-02-17 14:51:05 - End Time 2025-02-17 17:51:05 [2025-02-17 17:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497371', 'tblTempUsageDetail_20' ) start [2025-02-17 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497371', 'tblTempUsageDetail_20' ) end [2025-02-17 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497371', 'tblTempVendorCDR_20' ) start [2025-02-17 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497371', 'tblTempVendorCDR_20' ) end [2025-02-17 17:51:20] Production.INFO: ProcessCDR(1,14497371,1,1,2) [2025-02-17 17:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497371', 'tblTempUsageDetail_20' ) start [2025-02-17 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497371', 'tblTempUsageDetail_20' ) end [2025-02-17 17:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:51:23] Production.INFO: ==21332== Releasing lock... [2025-02-17 17:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:51:23] Production.INFO: 52 MB #Memory Used# [2025-02-17 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:52:05 [end_date_ymd] => 2025-02-17 17:52:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 14:52:05' and `end` < '2025-02-17 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-02-17 17:52:18] Production.INFO: count ==3086 [2025-02-17 17:52:19] Production.ERROR: pbx CDR StartTime 2025-02-17 14:52:05 - End Time 2025-02-17 17:52:05 [2025-02-17 17:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497376', 'tblTempUsageDetail_20' ) start [2025-02-17 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497376', 'tblTempUsageDetail_20' ) end [2025-02-17 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497376', 'tblTempVendorCDR_20' ) start [2025-02-17 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497376', 'tblTempVendorCDR_20' ) end [2025-02-17 17:52:19] Production.INFO: ProcessCDR(1,14497376,1,1,2) [2025-02-17 17:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497376', 'tblTempUsageDetail_20' ) start [2025-02-17 17:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497376', 'tblTempUsageDetail_20' ) end [2025-02-17 17:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:52:23] Production.INFO: ==21402== Releasing lock... [2025-02-17 17:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:52:23] Production.INFO: 51 MB #Memory Used# [2025-02-17 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:53:05 [end_date_ymd] => 2025-02-17 17:53:05 [RateCDR] => 1 ) [2025-02-17 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:53:05' and `end` < '2025-02-17 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:53:20] Production.INFO: count ==3080 [2025-02-17 17:53:21] Production.ERROR: pbx CDR StartTime 2025-02-17 14:53:05 - End Time 2025-02-17 17:53:05 [2025-02-17 17:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497381', 'tblTempUsageDetail_20' ) start [2025-02-17 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497381', 'tblTempUsageDetail_20' ) end [2025-02-17 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497381', 'tblTempVendorCDR_20' ) start [2025-02-17 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497381', 'tblTempVendorCDR_20' ) end [2025-02-17 17:53:21] Production.INFO: ProcessCDR(1,14497381,1,1,2) [2025-02-17 17:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497381', 'tblTempUsageDetail_20' ) start [2025-02-17 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497381', 'tblTempUsageDetail_20' ) end [2025-02-17 17:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:53:26] Production.INFO: ==21479== Releasing lock... [2025-02-17 17:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:53:26] Production.INFO: 51 MB #Memory Used# [2025-02-17 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:54:05 [end_date_ymd] => 2025-02-17 17:54:05 [RateCDR] => 1 ) [2025-02-17 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:54:05' and `end` < '2025-02-17 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:54:22] Production.INFO: count ==3055 [2025-02-17 17:54:23] Production.ERROR: pbx CDR StartTime 2025-02-17 14:54:05 - End Time 2025-02-17 17:54:05 [2025-02-17 17:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497386', 'tblTempUsageDetail_20' ) start [2025-02-17 17:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497386', 'tblTempUsageDetail_20' ) end [2025-02-17 17:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497386', 'tblTempVendorCDR_20' ) start [2025-02-17 17:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497386', 'tblTempVendorCDR_20' ) end [2025-02-17 17:54:23] Production.INFO: ProcessCDR(1,14497386,1,1,2) [2025-02-17 17:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497386', 'tblTempUsageDetail_20' ) start [2025-02-17 17:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497386', 'tblTempUsageDetail_20' ) end [2025-02-17 17:54:28] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:54:28] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:54:28] Production.INFO: ==21548== Releasing lock... [2025-02-17 17:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:54:28] Production.INFO: 50.75 MB #Memory Used# [2025-02-17 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:55:05 [end_date_ymd] => 2025-02-17 17:55:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 14:55:05' and `end` < '2025-02-17 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-02-17 17:55:18] Production.INFO: count ==3037 [2025-02-17 17:55:20] Production.ERROR: pbx CDR StartTime 2025-02-17 14:55:05 - End Time 2025-02-17 17:55:05 [2025-02-17 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497391', 'tblTempUsageDetail_20' ) start [2025-02-17 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497391', 'tblTempUsageDetail_20' ) end [2025-02-17 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497391', 'tblTempVendorCDR_20' ) start [2025-02-17 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497391', 'tblTempVendorCDR_20' ) end [2025-02-17 17:55:20] Production.INFO: ProcessCDR(1,14497391,1,1,2) [2025-02-17 17:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497391', 'tblTempUsageDetail_20' ) start [2025-02-17 17:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497391', 'tblTempUsageDetail_20' ) end [2025-02-17 17:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:55:23] Production.INFO: ==21618== Releasing lock... [2025-02-17 17:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:55:23] Production.INFO: 50.5 MB #Memory Used# [2025-02-17 17:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:56:06 [end_date_ymd] => 2025-02-17 17:56:06 [RateCDR] => 1 ) [2025-02-17 17:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:56:06' and `end` < '2025-02-17 17:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:56:20] Production.INFO: count ==3016 [2025-02-17 17:56:21] Production.ERROR: pbx CDR StartTime 2025-02-17 14:56:06 - End Time 2025-02-17 17:56:06 [2025-02-17 17:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497396', 'tblTempUsageDetail_20' ) start [2025-02-17 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497396', 'tblTempUsageDetail_20' ) end [2025-02-17 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497396', 'tblTempVendorCDR_20' ) start [2025-02-17 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497396', 'tblTempVendorCDR_20' ) end [2025-02-17 17:56:22] Production.INFO: ProcessCDR(1,14497396,1,1,2) [2025-02-17 17:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497396', 'tblTempUsageDetail_20' ) start [2025-02-17 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497396', 'tblTempUsageDetail_20' ) end [2025-02-17 17:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:56:25] Production.INFO: ==21690== Releasing lock... [2025-02-17 17:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:56:25] Production.INFO: 50.5 MB #Memory Used# [2025-02-17 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:57:05 [end_date_ymd] => 2025-02-17 17:57:05 [RateCDR] => 1 ) [2025-02-17 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:57:05' and `end` < '2025-02-17 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:57:21] Production.INFO: count ==2998 [2025-02-17 17:57:22] Production.ERROR: pbx CDR StartTime 2025-02-17 14:57:05 - End Time 2025-02-17 17:57:05 [2025-02-17 17:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497401', 'tblTempUsageDetail_20' ) start [2025-02-17 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497401', 'tblTempUsageDetail_20' ) end [2025-02-17 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497401', 'tblTempVendorCDR_20' ) start [2025-02-17 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497401', 'tblTempVendorCDR_20' ) end [2025-02-17 17:57:22] Production.INFO: ProcessCDR(1,14497401,1,1,2) [2025-02-17 17:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497401', 'tblTempUsageDetail_20' ) start [2025-02-17 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497401', 'tblTempUsageDetail_20' ) end [2025-02-17 17:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:57:26] Production.INFO: ==21762== Releasing lock... [2025-02-17 17:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:57:26] Production.INFO: 50.5 MB #Memory Used# [2025-02-17 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:58:05 [end_date_ymd] => 2025-02-17 17:58:05 [RateCDR] => 1 ) [2025-02-17 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 14:58:05' and `end` < '2025-02-17 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 17:58:19] Production.INFO: count ==2973 [2025-02-17 17:58:20] Production.ERROR: pbx CDR StartTime 2025-02-17 14:58:05 - End Time 2025-02-17 17:58:05 [2025-02-17 17:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497406', 'tblTempUsageDetail_20' ) start [2025-02-17 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497406', 'tblTempUsageDetail_20' ) end [2025-02-17 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497406', 'tblTempVendorCDR_20' ) start [2025-02-17 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497406', 'tblTempVendorCDR_20' ) end [2025-02-17 17:58:20] Production.INFO: ProcessCDR(1,14497406,1,1,2) [2025-02-17 17:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497406', 'tblTempUsageDetail_20' ) start [2025-02-17 17:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497406', 'tblTempUsageDetail_20' ) end [2025-02-17 17:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:58:24] Production.INFO: ==21832== Releasing lock... [2025-02-17 17:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:58:24] Production.INFO: 50 MB #Memory Used# [2025-02-17 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 14:59:05 [end_date_ymd] => 2025-02-17 17:59:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 14:59:05' and `end` < '2025-02-17 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-02-17 17:59:19] Production.INFO: count ==2924 [2025-02-17 17:59:20] Production.ERROR: pbx CDR StartTime 2025-02-17 14:59:05 - End Time 2025-02-17 17:59:05 [2025-02-17 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497411', 'tblTempUsageDetail_20' ) start [2025-02-17 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497411', 'tblTempUsageDetail_20' ) end [2025-02-17 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497411', 'tblTempVendorCDR_20' ) start [2025-02-17 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497411', 'tblTempVendorCDR_20' ) end [2025-02-17 17:59:20] Production.INFO: ProcessCDR(1,14497411,1,1,2) [2025-02-17 17:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 17:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 17:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497411', 'tblTempUsageDetail_20' ) start [2025-02-17 17:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497411', 'tblTempUsageDetail_20' ) end [2025-02-17 17:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 17:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 17:59:23] Production.INFO: ==21907== Releasing lock... [2025-02-17 17:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 17:59:23] Production.INFO: 49.5 MB #Memory Used# [2025-02-17 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:00:06 [end_date_ymd] => 2025-02-17 18:00:06 [RateCDR] => 1 ) [2025-02-17 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:00:06' and `end` < '2025-02-17 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:00:20] Production.INFO: count ==2880 [2025-02-17 18:00:20] Production.ERROR: pbx CDR StartTime 2025-02-17 15:00:06 - End Time 2025-02-17 18:00:06 [2025-02-17 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497416', 'tblTempUsageDetail_20' ) start [2025-02-17 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497416', 'tblTempUsageDetail_20' ) end [2025-02-17 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497416', 'tblTempVendorCDR_20' ) start [2025-02-17 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497416', 'tblTempVendorCDR_20' ) end [2025-02-17 18:00:21] Production.INFO: ProcessCDR(1,14497416,1,1,2) [2025-02-17 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497416', 'tblTempUsageDetail_20' ) start [2025-02-17 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497416', 'tblTempUsageDetail_20' ) end [2025-02-17 18:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:00:24] Production.INFO: ==22022== Releasing lock... [2025-02-17 18:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:00:24] Production.INFO: 49.25 MB #Memory Used# [2025-02-17 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:01:05 [end_date_ymd] => 2025-02-17 18:01:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 15:01:05' and `end` < '2025-02-17 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-02-17 18:01:19] Production.INFO: count ==2875 [2025-02-17 18:01:20] Production.ERROR: pbx CDR StartTime 2025-02-17 15:01:05 - End Time 2025-02-17 18:01:05 [2025-02-17 18:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497422', 'tblTempUsageDetail_20' ) start [2025-02-17 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497422', 'tblTempUsageDetail_20' ) end [2025-02-17 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497422', 'tblTempVendorCDR_20' ) start [2025-02-17 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497422', 'tblTempVendorCDR_20' ) end [2025-02-17 18:01:20] Production.INFO: ProcessCDR(1,14497422,1,1,2) [2025-02-17 18:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497422', 'tblTempUsageDetail_20' ) start [2025-02-17 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497422', 'tblTempUsageDetail_20' ) end [2025-02-17 18:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:01:24] Production.INFO: ==22109== Releasing lock... [2025-02-17 18:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:01:24] Production.INFO: 49.25 MB #Memory Used# [2025-02-17 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:02:05 [end_date_ymd] => 2025-02-17 18:02:05 [RateCDR] => 1 ) [2025-02-17 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:02:05' and `end` < '2025-02-17 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:02:19] Production.INFO: count ==2857 [2025-02-17 18:02:20] Production.ERROR: pbx CDR StartTime 2025-02-17 15:02:05 - End Time 2025-02-17 18:02:05 [2025-02-17 18:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497427', 'tblTempUsageDetail_20' ) start [2025-02-17 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497427', 'tblTempUsageDetail_20' ) end [2025-02-17 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497427', 'tblTempVendorCDR_20' ) start [2025-02-17 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497427', 'tblTempVendorCDR_20' ) end [2025-02-17 18:02:20] Production.INFO: ProcessCDR(1,14497427,1,1,2) [2025-02-17 18:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497427', 'tblTempUsageDetail_20' ) start [2025-02-17 18:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497427', 'tblTempUsageDetail_20' ) end [2025-02-17 18:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:02:23] Production.INFO: ==22189== Releasing lock... [2025-02-17 18:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:02:23] Production.INFO: 49.75 MB #Memory Used# [2025-02-17 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:03:05 [end_date_ymd] => 2025-02-17 18:03:05 [RateCDR] => 1 ) [2025-02-17 18:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:03:05' and `end` < '2025-02-17 18:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:03:18] Production.INFO: count ==2842 [2025-02-17 18:03:19] Production.ERROR: pbx CDR StartTime 2025-02-17 15:03:05 - End Time 2025-02-17 18:03:05 [2025-02-17 18:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497432', 'tblTempUsageDetail_20' ) start [2025-02-17 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497432', 'tblTempUsageDetail_20' ) end [2025-02-17 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497432', 'tblTempVendorCDR_20' ) start [2025-02-17 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497432', 'tblTempVendorCDR_20' ) end [2025-02-17 18:03:19] Production.INFO: ProcessCDR(1,14497432,1,1,2) [2025-02-17 18:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497432', 'tblTempUsageDetail_20' ) start [2025-02-17 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497432', 'tblTempUsageDetail_20' ) end [2025-02-17 18:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:03:24] Production.INFO: ==22271== Releasing lock... [2025-02-17 18:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:03:24] Production.INFO: 49.25 MB #Memory Used# [2025-02-17 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:04:05 [end_date_ymd] => 2025-02-17 18:04:05 [RateCDR] => 1 ) [2025-02-17 18:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:04:05' and `end` < '2025-02-17 18:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:04:20] Production.INFO: count ==2809 [2025-02-17 18:04:20] Production.ERROR: pbx CDR StartTime 2025-02-17 15:04:05 - End Time 2025-02-17 18:04:05 [2025-02-17 18:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497437', 'tblTempUsageDetail_20' ) start [2025-02-17 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497437', 'tblTempUsageDetail_20' ) end [2025-02-17 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497437', 'tblTempVendorCDR_20' ) start [2025-02-17 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497437', 'tblTempVendorCDR_20' ) end [2025-02-17 18:04:21] Production.INFO: ProcessCDR(1,14497437,1,1,2) [2025-02-17 18:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497437', 'tblTempUsageDetail_20' ) start [2025-02-17 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497437', 'tblTempUsageDetail_20' ) end [2025-02-17 18:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:04:25] Production.INFO: ==22343== Releasing lock... [2025-02-17 18:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:04:25] Production.INFO: 49 MB #Memory Used# [2025-02-17 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:05:05 [end_date_ymd] => 2025-02-17 18:05:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 15:05:05' and `end` < '2025-02-17 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-02-17 18:05:19] Production.INFO: count ==2789 [2025-02-17 18:05:20] Production.ERROR: pbx CDR StartTime 2025-02-17 15:05:05 - End Time 2025-02-17 18:05:05 [2025-02-17 18:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497442', 'tblTempUsageDetail_20' ) start [2025-02-17 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497442', 'tblTempUsageDetail_20' ) end [2025-02-17 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497442', 'tblTempVendorCDR_20' ) start [2025-02-17 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497442', 'tblTempVendorCDR_20' ) end [2025-02-17 18:05:20] Production.INFO: ProcessCDR(1,14497442,1,1,2) [2025-02-17 18:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497442', 'tblTempUsageDetail_20' ) start [2025-02-17 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497442', 'tblTempUsageDetail_20' ) end [2025-02-17 18:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:05:23] Production.INFO: ==22420== Releasing lock... [2025-02-17 18:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:05:23] Production.INFO: 49 MB #Memory Used# [2025-02-17 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:06:05 [end_date_ymd] => 2025-02-17 18:06:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 15:06:05' and `end` < '2025-02-17 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-02-17 18:06:20] Production.INFO: count ==2772 [2025-02-17 18:06:21] Production.ERROR: pbx CDR StartTime 2025-02-17 15:06:05 - End Time 2025-02-17 18:06:05 [2025-02-17 18:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497447', 'tblTempUsageDetail_20' ) start [2025-02-17 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497447', 'tblTempUsageDetail_20' ) end [2025-02-17 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497447', 'tblTempVendorCDR_20' ) start [2025-02-17 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497447', 'tblTempVendorCDR_20' ) end [2025-02-17 18:06:21] Production.INFO: ProcessCDR(1,14497447,1,1,2) [2025-02-17 18:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497447', 'tblTempUsageDetail_20' ) start [2025-02-17 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497447', 'tblTempUsageDetail_20' ) end [2025-02-17 18:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:06:24] Production.INFO: ==22491== Releasing lock... [2025-02-17 18:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:06:24] Production.INFO: 48.75 MB #Memory Used# [2025-02-17 18:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:07:04 [end_date_ymd] => 2025-02-17 18:07:04 [RateCDR] => 1 ) [2025-02-17 18:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:07:04' and `end` < '2025-02-17 18:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:07:19] Production.INFO: count ==2786 [2025-02-17 18:07:20] Production.ERROR: pbx CDR StartTime 2025-02-17 15:07:04 - End Time 2025-02-17 18:07:04 [2025-02-17 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497452', 'tblTempUsageDetail_20' ) start [2025-02-17 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497452', 'tblTempUsageDetail_20' ) end [2025-02-17 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497452', 'tblTempVendorCDR_20' ) start [2025-02-17 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497452', 'tblTempVendorCDR_20' ) end [2025-02-17 18:07:20] Production.INFO: ProcessCDR(1,14497452,1,1,2) [2025-02-17 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497452', 'tblTempUsageDetail_20' ) start [2025-02-17 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497452', 'tblTempUsageDetail_20' ) end [2025-02-17 18:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:07:25] Production.INFO: ==22563== Releasing lock... [2025-02-17 18:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:07:25] Production.INFO: 49.5 MB #Memory Used# [2025-02-17 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:08:05 [end_date_ymd] => 2025-02-17 18:08:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 15:08:05' and `end` < '2025-02-17 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-02-17 18:08:23] Production.INFO: count ==2775 [2025-02-17 18:08:24] Production.ERROR: pbx CDR StartTime 2025-02-17 15:08:05 - End Time 2025-02-17 18:08:05 [2025-02-17 18:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497457', 'tblTempUsageDetail_20' ) start [2025-02-17 18:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497457', 'tblTempUsageDetail_20' ) end [2025-02-17 18:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497457', 'tblTempVendorCDR_20' ) start [2025-02-17 18:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497457', 'tblTempVendorCDR_20' ) end [2025-02-17 18:08:24] Production.INFO: ProcessCDR(1,14497457,1,1,2) [2025-02-17 18:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497457', 'tblTempUsageDetail_20' ) start [2025-02-17 18:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497457', 'tblTempUsageDetail_20' ) end [2025-02-17 18:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:08:27] Production.INFO: ==22641== Releasing lock... [2025-02-17 18:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:08:27] Production.INFO: 48.75 MB #Memory Used# [2025-02-17 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:09:05 [end_date_ymd] => 2025-02-17 18:09:05 [RateCDR] => 1 ) [2025-02-17 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:09:05' and `end` < '2025-02-17 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:09:21] Production.INFO: count ==2770 [2025-02-17 18:09:22] Production.ERROR: pbx CDR StartTime 2025-02-17 15:09:05 - End Time 2025-02-17 18:09:05 [2025-02-17 18:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497462', 'tblTempUsageDetail_20' ) start [2025-02-17 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497462', 'tblTempUsageDetail_20' ) end [2025-02-17 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497462', 'tblTempVendorCDR_20' ) start [2025-02-17 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497462', 'tblTempVendorCDR_20' ) end [2025-02-17 18:09:22] Production.INFO: ProcessCDR(1,14497462,1,1,2) [2025-02-17 18:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497462', 'tblTempUsageDetail_20' ) start [2025-02-17 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497462', 'tblTempUsageDetail_20' ) end [2025-02-17 18:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:09:25] Production.INFO: ==22712== Releasing lock... [2025-02-17 18:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:09:25] Production.INFO: 48.75 MB #Memory Used# [2025-02-17 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:10:06 [end_date_ymd] => 2025-02-17 18:10:06 [RateCDR] => 1 ) [2025-02-17 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:10:06' and `end` < '2025-02-17 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:10:19] Production.INFO: count ==2772 [2025-02-17 18:10:20] Production.ERROR: pbx CDR StartTime 2025-02-17 15:10:06 - End Time 2025-02-17 18:10:06 [2025-02-17 18:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497468', 'tblTempUsageDetail_20' ) start [2025-02-17 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497468', 'tblTempUsageDetail_20' ) end [2025-02-17 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497468', 'tblTempVendorCDR_20' ) start [2025-02-17 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497468', 'tblTempVendorCDR_20' ) end [2025-02-17 18:10:20] Production.INFO: ProcessCDR(1,14497468,1,1,2) [2025-02-17 18:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497468', 'tblTempUsageDetail_20' ) start [2025-02-17 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497468', 'tblTempUsageDetail_20' ) end [2025-02-17 18:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:10:24] Production.INFO: ==22784== Releasing lock... [2025-02-17 18:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:10:24] Production.INFO: 49 MB #Memory Used# [2025-02-17 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:11:05 [end_date_ymd] => 2025-02-17 18:11:05 [RateCDR] => 1 ) [2025-02-17 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:11:05' and `end` < '2025-02-17 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:11:18] Production.INFO: count ==2834 [2025-02-17 18:11:19] Production.ERROR: pbx CDR StartTime 2025-02-17 15:11:05 - End Time 2025-02-17 18:11:05 [2025-02-17 18:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497473', 'tblTempUsageDetail_20' ) start [2025-02-17 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497473', 'tblTempUsageDetail_20' ) end [2025-02-17 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497473', 'tblTempVendorCDR_20' ) start [2025-02-17 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497473', 'tblTempVendorCDR_20' ) end [2025-02-17 18:11:19] Production.INFO: ProcessCDR(1,14497473,1,1,2) [2025-02-17 18:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497473', 'tblTempUsageDetail_20' ) start [2025-02-17 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497473', 'tblTempUsageDetail_20' ) end [2025-02-17 18:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:11:24] Production.INFO: ==22869== Releasing lock... [2025-02-17 18:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:11:24] Production.INFO: 49 MB #Memory Used# [2025-02-17 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:12:05 [end_date_ymd] => 2025-02-17 18:12:05 [RateCDR] => 1 ) [2025-02-17 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:12:05' and `end` < '2025-02-17 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:12:18] Production.INFO: count ==2834 [2025-02-17 18:12:19] Production.ERROR: pbx CDR StartTime 2025-02-17 15:12:05 - End Time 2025-02-17 18:12:05 [2025-02-17 18:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497478', 'tblTempUsageDetail_20' ) start [2025-02-17 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497478', 'tblTempUsageDetail_20' ) end [2025-02-17 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497478', 'tblTempVendorCDR_20' ) start [2025-02-17 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497478', 'tblTempVendorCDR_20' ) end [2025-02-17 18:12:19] Production.INFO: ProcessCDR(1,14497478,1,1,2) [2025-02-17 18:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497478', 'tblTempUsageDetail_20' ) start [2025-02-17 18:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497478', 'tblTempUsageDetail_20' ) end [2025-02-17 18:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:12:23] Production.INFO: ==22944== Releasing lock... [2025-02-17 18:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:12:23] Production.INFO: 49 MB #Memory Used# [2025-02-17 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:13:05 [end_date_ymd] => 2025-02-17 18:13:05 [RateCDR] => 1 ) [2025-02-17 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:13:05' and `end` < '2025-02-17 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:13:19] Production.INFO: count ==2831 [2025-02-17 18:13:20] Production.ERROR: pbx CDR StartTime 2025-02-17 15:13:05 - End Time 2025-02-17 18:13:05 [2025-02-17 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497483', 'tblTempUsageDetail_20' ) start [2025-02-17 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497483', 'tblTempUsageDetail_20' ) end [2025-02-17 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497483', 'tblTempVendorCDR_20' ) start [2025-02-17 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497483', 'tblTempVendorCDR_20' ) end [2025-02-17 18:13:20] Production.INFO: ProcessCDR(1,14497483,1,1,2) [2025-02-17 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497483', 'tblTempUsageDetail_20' ) start [2025-02-17 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497483', 'tblTempUsageDetail_20' ) end [2025-02-17 18:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:13:23] Production.INFO: ==23017== Releasing lock... [2025-02-17 18:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:13:23] Production.INFO: 49 MB #Memory Used# [2025-02-17 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:14:05 [end_date_ymd] => 2025-02-17 18:14:05 [RateCDR] => 1 ) [2025-02-17 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:14:05' and `end` < '2025-02-17 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:14:19] Production.INFO: count ==2821 [2025-02-17 18:14:19] Production.ERROR: pbx CDR StartTime 2025-02-17 15:14:05 - End Time 2025-02-17 18:14:05 [2025-02-17 18:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497488', 'tblTempUsageDetail_20' ) start [2025-02-17 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497488', 'tblTempUsageDetail_20' ) end [2025-02-17 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497488', 'tblTempVendorCDR_20' ) start [2025-02-17 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497488', 'tblTempVendorCDR_20' ) end [2025-02-17 18:14:19] Production.INFO: ProcessCDR(1,14497488,1,1,2) [2025-02-17 18:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497488', 'tblTempUsageDetail_20' ) start [2025-02-17 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497488', 'tblTempUsageDetail_20' ) end [2025-02-17 18:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:14:23] Production.INFO: ==23088== Releasing lock... [2025-02-17 18:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:14:23] Production.INFO: 49 MB #Memory Used# [2025-02-17 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:15:05 [end_date_ymd] => 2025-02-17 18:15:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 15:15:05' and `end` < '2025-02-17 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-02-17 18:15:19] Production.INFO: count ==2820 [2025-02-17 18:15:19] Production.ERROR: pbx CDR StartTime 2025-02-17 15:15:05 - End Time 2025-02-17 18:15:05 [2025-02-17 18:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497493', 'tblTempUsageDetail_20' ) start [2025-02-17 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497493', 'tblTempUsageDetail_20' ) end [2025-02-17 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497493', 'tblTempVendorCDR_20' ) start [2025-02-17 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497493', 'tblTempVendorCDR_20' ) end [2025-02-17 18:15:20] Production.INFO: ProcessCDR(1,14497493,1,1,2) [2025-02-17 18:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497493', 'tblTempUsageDetail_20' ) start [2025-02-17 18:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497493', 'tblTempUsageDetail_20' ) end [2025-02-17 18:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:15:23] Production.INFO: ==23200== Releasing lock... [2025-02-17 18:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:15:23] Production.INFO: 49 MB #Memory Used# [2025-02-17 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:16:05 [end_date_ymd] => 2025-02-17 18:16:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 15:16:05' and `end` < '2025-02-17 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-02-17 18:16:19] Production.INFO: count ==2818 [2025-02-17 18:16:19] Production.ERROR: pbx CDR StartTime 2025-02-17 15:16:05 - End Time 2025-02-17 18:16:05 [2025-02-17 18:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497498', 'tblTempUsageDetail_20' ) start [2025-02-17 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497498', 'tblTempUsageDetail_20' ) end [2025-02-17 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497498', 'tblTempVendorCDR_20' ) start [2025-02-17 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497498', 'tblTempVendorCDR_20' ) end [2025-02-17 18:16:20] Production.INFO: ProcessCDR(1,14497498,1,1,2) [2025-02-17 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497498', 'tblTempUsageDetail_20' ) start [2025-02-17 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497498', 'tblTempUsageDetail_20' ) end [2025-02-17 18:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:16:24] Production.INFO: ==23270== Releasing lock... [2025-02-17 18:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:16:24] Production.INFO: 49 MB #Memory Used# [2025-02-17 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:17:05 [end_date_ymd] => 2025-02-17 18:17:05 [RateCDR] => 1 ) [2025-02-17 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:17:05' and `end` < '2025-02-17 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:17:19] Production.INFO: count ==2829 [2025-02-17 18:17:20] Production.ERROR: pbx CDR StartTime 2025-02-17 15:17:05 - End Time 2025-02-17 18:17:05 [2025-02-17 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497503', 'tblTempUsageDetail_20' ) start [2025-02-17 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497503', 'tblTempUsageDetail_20' ) end [2025-02-17 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497503', 'tblTempVendorCDR_20' ) start [2025-02-17 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497503', 'tblTempVendorCDR_20' ) end [2025-02-17 18:17:20] Production.INFO: ProcessCDR(1,14497503,1,1,2) [2025-02-17 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497503', 'tblTempUsageDetail_20' ) start [2025-02-17 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497503', 'tblTempUsageDetail_20' ) end [2025-02-17 18:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:17:24] Production.INFO: ==23344== Releasing lock... [2025-02-17 18:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:17:24] Production.INFO: 49 MB #Memory Used# [2025-02-17 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:18:05 [end_date_ymd] => 2025-02-17 18:18:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 15:18:05' and `end` < '2025-02-17 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-02-17 18:18:18] Production.INFO: count ==2845 [2025-02-17 18:18:19] Production.ERROR: pbx CDR StartTime 2025-02-17 15:18:05 - End Time 2025-02-17 18:18:05 [2025-02-17 18:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497508', 'tblTempUsageDetail_20' ) start [2025-02-17 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497508', 'tblTempUsageDetail_20' ) end [2025-02-17 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497508', 'tblTempVendorCDR_20' ) start [2025-02-17 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497508', 'tblTempVendorCDR_20' ) end [2025-02-17 18:18:19] Production.INFO: ProcessCDR(1,14497508,1,1,2) [2025-02-17 18:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497508', 'tblTempUsageDetail_20' ) start [2025-02-17 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497508', 'tblTempUsageDetail_20' ) end [2025-02-17 18:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:18:24] Production.INFO: ==23418== Releasing lock... [2025-02-17 18:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:18:24] Production.INFO: 49 MB #Memory Used# [2025-02-17 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:19:05 [end_date_ymd] => 2025-02-17 18:19:05 [RateCDR] => 1 ) [2025-02-17 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:19:05' and `end` < '2025-02-17 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:19:19] Production.INFO: count ==2844 [2025-02-17 18:19:20] Production.ERROR: pbx CDR StartTime 2025-02-17 15:19:05 - End Time 2025-02-17 18:19:05 [2025-02-17 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497513', 'tblTempUsageDetail_20' ) start [2025-02-17 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497513', 'tblTempUsageDetail_20' ) end [2025-02-17 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497513', 'tblTempVendorCDR_20' ) start [2025-02-17 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497513', 'tblTempVendorCDR_20' ) end [2025-02-17 18:19:20] Production.INFO: ProcessCDR(1,14497513,1,1,2) [2025-02-17 18:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497513', 'tblTempUsageDetail_20' ) start [2025-02-17 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497513', 'tblTempUsageDetail_20' ) end [2025-02-17 18:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:19:25] Production.INFO: ==23492== Releasing lock... [2025-02-17 18:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:19:25] Production.INFO: 49 MB #Memory Used# [2025-02-17 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:20:06 [end_date_ymd] => 2025-02-17 18:20:06 [RateCDR] => 1 ) [2025-02-17 18:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:20:06' and `end` < '2025-02-17 18:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:20:27] Production.INFO: count ==2839 [2025-02-17 18:20:28] Production.ERROR: pbx CDR StartTime 2025-02-17 15:20:06 - End Time 2025-02-17 18:20:06 [2025-02-17 18:20:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497519', 'tblTempUsageDetail_20' ) start [2025-02-17 18:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497519', 'tblTempUsageDetail_20' ) end [2025-02-17 18:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497519', 'tblTempVendorCDR_20' ) start [2025-02-17 18:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497519', 'tblTempVendorCDR_20' ) end [2025-02-17 18:20:28] Production.INFO: ProcessCDR(1,14497519,1,1,2) [2025-02-17 18:20:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:20:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:20:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:20:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:20:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497519', 'tblTempUsageDetail_20' ) start [2025-02-17 18:20:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497519', 'tblTempUsageDetail_20' ) end [2025-02-17 18:20:33] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:20:33] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:20:33] Production.INFO: ==23566== Releasing lock... [2025-02-17 18:20:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:20:33] Production.INFO: 49 MB #Memory Used# [2025-02-17 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:21:05 [end_date_ymd] => 2025-02-17 18:21:05 [RateCDR] => 1 ) [2025-02-17 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:21:05' and `end` < '2025-02-17 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:21:19] Production.INFO: count ==2857 [2025-02-17 18:21:20] Production.ERROR: pbx CDR StartTime 2025-02-17 15:21:05 - End Time 2025-02-17 18:21:05 [2025-02-17 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497524', 'tblTempUsageDetail_20' ) start [2025-02-17 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497524', 'tblTempUsageDetail_20' ) end [2025-02-17 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497524', 'tblTempVendorCDR_20' ) start [2025-02-17 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497524', 'tblTempVendorCDR_20' ) end [2025-02-17 18:21:20] Production.INFO: ProcessCDR(1,14497524,1,1,2) [2025-02-17 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497524', 'tblTempUsageDetail_20' ) start [2025-02-17 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497524', 'tblTempUsageDetail_20' ) end [2025-02-17 18:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:21:23] Production.INFO: ==23641== Releasing lock... [2025-02-17 18:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:21:23] Production.INFO: 49.25 MB #Memory Used# [2025-02-17 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:22:05 [end_date_ymd] => 2025-02-17 18:22:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 15:22:05' and `end` < '2025-02-17 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-02-17 18:22:20] Production.INFO: count ==2859 [2025-02-17 18:22:21] Production.ERROR: pbx CDR StartTime 2025-02-17 15:22:05 - End Time 2025-02-17 18:22:05 [2025-02-17 18:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497529', 'tblTempUsageDetail_20' ) start [2025-02-17 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497529', 'tblTempUsageDetail_20' ) end [2025-02-17 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497529', 'tblTempVendorCDR_20' ) start [2025-02-17 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497529', 'tblTempVendorCDR_20' ) end [2025-02-17 18:22:21] Production.INFO: ProcessCDR(1,14497529,1,1,2) [2025-02-17 18:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497529', 'tblTempUsageDetail_20' ) start [2025-02-17 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497529', 'tblTempUsageDetail_20' ) end [2025-02-17 18:22:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:22:26] Production.INFO: ==23716== Releasing lock... [2025-02-17 18:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:22:26] Production.INFO: 49.25 MB #Memory Used# [2025-02-17 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:23:05 [end_date_ymd] => 2025-02-17 18:23:05 [RateCDR] => 1 ) [2025-02-17 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:23:05' and `end` < '2025-02-17 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:23:19] Production.INFO: count ==2858 [2025-02-17 18:23:19] Production.ERROR: pbx CDR StartTime 2025-02-17 15:23:05 - End Time 2025-02-17 18:23:05 [2025-02-17 18:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497534', 'tblTempUsageDetail_20' ) start [2025-02-17 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497534', 'tblTempUsageDetail_20' ) end [2025-02-17 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497534', 'tblTempVendorCDR_20' ) start [2025-02-17 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497534', 'tblTempVendorCDR_20' ) end [2025-02-17 18:23:20] Production.INFO: ProcessCDR(1,14497534,1,1,2) [2025-02-17 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497534', 'tblTempUsageDetail_20' ) start [2025-02-17 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497534', 'tblTempUsageDetail_20' ) end [2025-02-17 18:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:23:25] Production.INFO: ==23793== Releasing lock... [2025-02-17 18:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:23:25] Production.INFO: 49.25 MB #Memory Used# [2025-02-17 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:24:05 [end_date_ymd] => 2025-02-17 18:24:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 15:24:05' and `end` < '2025-02-17 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-02-17 18:24:19] Production.INFO: count ==2839 [2025-02-17 18:24:19] Production.ERROR: pbx CDR StartTime 2025-02-17 15:24:05 - End Time 2025-02-17 18:24:05 [2025-02-17 18:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497539', 'tblTempUsageDetail_20' ) start [2025-02-17 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497539', 'tblTempUsageDetail_20' ) end [2025-02-17 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497539', 'tblTempVendorCDR_20' ) start [2025-02-17 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497539', 'tblTempVendorCDR_20' ) end [2025-02-17 18:24:20] Production.INFO: ProcessCDR(1,14497539,1,1,2) [2025-02-17 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497539', 'tblTempUsageDetail_20' ) start [2025-02-17 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497539', 'tblTempUsageDetail_20' ) end [2025-02-17 18:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:24:24] Production.INFO: ==23876== Releasing lock... [2025-02-17 18:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:24:24] Production.INFO: 49 MB #Memory Used# [2025-02-17 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:25:05 [end_date_ymd] => 2025-02-17 18:25:05 [RateCDR] => 1 ) [2025-02-17 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:25:05' and `end` < '2025-02-17 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:25:19] Production.INFO: count ==2851 [2025-02-17 18:25:20] Production.ERROR: pbx CDR StartTime 2025-02-17 15:25:05 - End Time 2025-02-17 18:25:05 [2025-02-17 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497544', 'tblTempUsageDetail_20' ) start [2025-02-17 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497544', 'tblTempUsageDetail_20' ) end [2025-02-17 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497544', 'tblTempVendorCDR_20' ) start [2025-02-17 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497544', 'tblTempVendorCDR_20' ) end [2025-02-17 18:25:20] Production.INFO: ProcessCDR(1,14497544,1,1,2) [2025-02-17 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497544', 'tblTempUsageDetail_20' ) start [2025-02-17 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497544', 'tblTempUsageDetail_20' ) end [2025-02-17 18:25:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:25:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:25:25] Production.INFO: ==23959== Releasing lock... [2025-02-17 18:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:25:25] Production.INFO: 49 MB #Memory Used# [2025-02-17 18:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:26:04 [end_date_ymd] => 2025-02-17 18:26:04 [RateCDR] => 1 ) [2025-02-17 18: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-02-17 15:26:04' and `end` < '2025-02-17 18: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-02-17 18:26:20] Production.INFO: count ==2837 [2025-02-17 18:26:21] Production.ERROR: pbx CDR StartTime 2025-02-17 15:26:04 - End Time 2025-02-17 18:26:04 [2025-02-17 18:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497549', 'tblTempUsageDetail_20' ) start [2025-02-17 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497549', 'tblTempUsageDetail_20' ) end [2025-02-17 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497549', 'tblTempVendorCDR_20' ) start [2025-02-17 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497549', 'tblTempVendorCDR_20' ) end [2025-02-17 18:26:21] Production.INFO: ProcessCDR(1,14497549,1,1,2) [2025-02-17 18:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497549', 'tblTempUsageDetail_20' ) start [2025-02-17 18:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497549', 'tblTempUsageDetail_20' ) end [2025-02-17 18:26:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:26:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:26:26] Production.INFO: ==24045== Releasing lock... [2025-02-17 18:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:26:26] Production.INFO: 49 MB #Memory Used# [2025-02-17 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:27:05 [end_date_ymd] => 2025-02-17 18:27:05 [RateCDR] => 1 ) [2025-02-17 18:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:27:05' and `end` < '2025-02-17 18:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:27:18] Production.INFO: count ==2820 [2025-02-17 18:27:19] Production.ERROR: pbx CDR StartTime 2025-02-17 15:27:05 - End Time 2025-02-17 18:27:05 [2025-02-17 18:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497554', 'tblTempUsageDetail_20' ) start [2025-02-17 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497554', 'tblTempUsageDetail_20' ) end [2025-02-17 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497554', 'tblTempVendorCDR_20' ) start [2025-02-17 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497554', 'tblTempVendorCDR_20' ) end [2025-02-17 18:27:19] Production.INFO: ProcessCDR(1,14497554,1,1,2) [2025-02-17 18:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497554', 'tblTempUsageDetail_20' ) start [2025-02-17 18:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497554', 'tblTempUsageDetail_20' ) end [2025-02-17 18:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:27:22] Production.INFO: ==24127== Releasing lock... [2025-02-17 18:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:27:22] Production.INFO: 49.25 MB #Memory Used# [2025-02-17 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:28:05 [end_date_ymd] => 2025-02-17 18:28:05 [RateCDR] => 1 ) [2025-02-17 18:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:28:05' and `end` < '2025-02-17 18:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:28:19] Production.INFO: count ==2807 [2025-02-17 18:28:20] Production.ERROR: pbx CDR StartTime 2025-02-17 15:28:05 - End Time 2025-02-17 18:28:05 [2025-02-17 18:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497559', 'tblTempUsageDetail_20' ) start [2025-02-17 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497559', 'tblTempUsageDetail_20' ) end [2025-02-17 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497559', 'tblTempVendorCDR_20' ) start [2025-02-17 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497559', 'tblTempVendorCDR_20' ) end [2025-02-17 18:28:20] Production.INFO: ProcessCDR(1,14497559,1,1,2) [2025-02-17 18:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497559', 'tblTempUsageDetail_20' ) start [2025-02-17 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497559', 'tblTempUsageDetail_20' ) end [2025-02-17 18:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:28:23] Production.INFO: ==24229== Releasing lock... [2025-02-17 18:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:28:23] Production.INFO: 49 MB #Memory Used# [2025-02-17 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:29:05 [end_date_ymd] => 2025-02-17 18:29:05 [RateCDR] => 1 ) [2025-02-17 18:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:29:05' and `end` < '2025-02-17 18:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:29:18] Production.INFO: count ==2795 [2025-02-17 18:29:19] Production.ERROR: pbx CDR StartTime 2025-02-17 15:29:05 - End Time 2025-02-17 18:29:05 [2025-02-17 18:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497564', 'tblTempUsageDetail_20' ) start [2025-02-17 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497564', 'tblTempUsageDetail_20' ) end [2025-02-17 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497564', 'tblTempVendorCDR_20' ) start [2025-02-17 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497564', 'tblTempVendorCDR_20' ) end [2025-02-17 18:29:19] Production.INFO: ProcessCDR(1,14497564,1,1,2) [2025-02-17 18:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497564', 'tblTempUsageDetail_20' ) start [2025-02-17 18:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497564', 'tblTempUsageDetail_20' ) end [2025-02-17 18:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:29:24] Production.INFO: ==24320== Releasing lock... [2025-02-17 18:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:29:24] Production.INFO: 49 MB #Memory Used# [2025-02-17 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:30:06 [end_date_ymd] => 2025-02-17 18:30:06 [RateCDR] => 1 ) [2025-02-17 18:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:30:06' and `end` < '2025-02-17 18:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:30:20] Production.INFO: count ==2788 [2025-02-17 18:30:21] Production.ERROR: pbx CDR StartTime 2025-02-17 15:30:06 - End Time 2025-02-17 18:30:06 [2025-02-17 18:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497570', 'tblTempUsageDetail_20' ) start [2025-02-17 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497570', 'tblTempUsageDetail_20' ) end [2025-02-17 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497570', 'tblTempVendorCDR_20' ) start [2025-02-17 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497570', 'tblTempVendorCDR_20' ) end [2025-02-17 18:30:21] Production.INFO: ProcessCDR(1,14497570,1,1,2) [2025-02-17 18:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497570', 'tblTempUsageDetail_20' ) start [2025-02-17 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497570', 'tblTempUsageDetail_20' ) end [2025-02-17 18:30:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:30:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:30:25] Production.INFO: ==24465== Releasing lock... [2025-02-17 18:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:30:25] Production.INFO: 49.25 MB #Memory Used# [2025-02-17 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:31:05 [end_date_ymd] => 2025-02-17 18:31:05 [RateCDR] => 1 ) [2025-02-17 18:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:31:05' and `end` < '2025-02-17 18:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:31:18] Production.INFO: count ==2788 [2025-02-17 18:31:19] Production.ERROR: pbx CDR StartTime 2025-02-17 15:31:05 - End Time 2025-02-17 18:31:05 [2025-02-17 18:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497575', 'tblTempUsageDetail_20' ) start [2025-02-17 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497575', 'tblTempUsageDetail_20' ) end [2025-02-17 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497575', 'tblTempVendorCDR_20' ) start [2025-02-17 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497575', 'tblTempVendorCDR_20' ) end [2025-02-17 18:31:19] Production.INFO: ProcessCDR(1,14497575,1,1,2) [2025-02-17 18:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497575', 'tblTempUsageDetail_20' ) start [2025-02-17 18:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497575', 'tblTempUsageDetail_20' ) end [2025-02-17 18:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:31:24] Production.INFO: ==24553== Releasing lock... [2025-02-17 18:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:31:24] Production.INFO: 48.75 MB #Memory Used# [2025-02-17 18:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:32:06 [end_date_ymd] => 2025-02-17 18:32:06 [RateCDR] => 1 ) [2025-02-17 18:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:32:06' and `end` < '2025-02-17 18:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:32:19] Production.INFO: count ==2789 [2025-02-17 18:32:20] Production.ERROR: pbx CDR StartTime 2025-02-17 15:32:06 - End Time 2025-02-17 18:32:06 [2025-02-17 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497580', 'tblTempUsageDetail_20' ) start [2025-02-17 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497580', 'tblTempUsageDetail_20' ) end [2025-02-17 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497580', 'tblTempVendorCDR_20' ) start [2025-02-17 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497580', 'tblTempVendorCDR_20' ) end [2025-02-17 18:32:20] Production.INFO: ProcessCDR(1,14497580,1,1,2) [2025-02-17 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497580', 'tblTempUsageDetail_20' ) start [2025-02-17 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497580', 'tblTempUsageDetail_20' ) end [2025-02-17 18:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:32:25] Production.INFO: ==24634== Releasing lock... [2025-02-17 18:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:32:25] Production.INFO: 49 MB #Memory Used# [2025-02-17 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:33:05 [end_date_ymd] => 2025-02-17 18:33:05 [RateCDR] => 1 ) [2025-02-17 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:33:05' and `end` < '2025-02-17 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:33:19] Production.INFO: count ==2785 [2025-02-17 18:33:20] Production.ERROR: pbx CDR StartTime 2025-02-17 15:33:05 - End Time 2025-02-17 18:33:05 [2025-02-17 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497585', 'tblTempUsageDetail_20' ) start [2025-02-17 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497585', 'tblTempUsageDetail_20' ) end [2025-02-17 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497585', 'tblTempVendorCDR_20' ) start [2025-02-17 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497585', 'tblTempVendorCDR_20' ) end [2025-02-17 18:33:20] Production.INFO: ProcessCDR(1,14497585,1,1,2) [2025-02-17 18:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497585', 'tblTempUsageDetail_20' ) start [2025-02-17 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497585', 'tblTempUsageDetail_20' ) end [2025-02-17 18:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:33:25] Production.INFO: ==24717== Releasing lock... [2025-02-17 18:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:33:25] Production.INFO: 48.75 MB #Memory Used# [2025-02-17 18:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:34:06 [end_date_ymd] => 2025-02-17 18:34:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 15:34:06' and `end` < '2025-02-17 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-02-17 18:34:19] Production.INFO: count ==2796 [2025-02-17 18:34:20] Production.ERROR: pbx CDR StartTime 2025-02-17 15:34:06 - End Time 2025-02-17 18:34:06 [2025-02-17 18:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497590', 'tblTempUsageDetail_20' ) start [2025-02-17 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497590', 'tblTempUsageDetail_20' ) end [2025-02-17 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497590', 'tblTempVendorCDR_20' ) start [2025-02-17 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497590', 'tblTempVendorCDR_20' ) end [2025-02-17 18:34:20] Production.INFO: ProcessCDR(1,14497590,1,1,2) [2025-02-17 18:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497590', 'tblTempUsageDetail_20' ) start [2025-02-17 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497590', 'tblTempUsageDetail_20' ) end [2025-02-17 18:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:34:24] Production.INFO: ==24809== Releasing lock... [2025-02-17 18:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:34:24] Production.INFO: 49 MB #Memory Used# [2025-02-17 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:35:05 [end_date_ymd] => 2025-02-17 18:35:05 [RateCDR] => 1 ) [2025-02-17 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:35:05' and `end` < '2025-02-17 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:35:19] Production.INFO: count ==2805 [2025-02-17 18:35:20] Production.ERROR: pbx CDR StartTime 2025-02-17 15:35:05 - End Time 2025-02-17 18:35:05 [2025-02-17 18:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497595', 'tblTempUsageDetail_20' ) start [2025-02-17 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497595', 'tblTempUsageDetail_20' ) end [2025-02-17 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497595', 'tblTempVendorCDR_20' ) start [2025-02-17 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497595', 'tblTempVendorCDR_20' ) end [2025-02-17 18:35:20] Production.INFO: ProcessCDR(1,14497595,1,1,2) [2025-02-17 18:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497595', 'tblTempUsageDetail_20' ) start [2025-02-17 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497595', 'tblTempUsageDetail_20' ) end [2025-02-17 18:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:35:25] Production.INFO: ==24890== Releasing lock... [2025-02-17 18:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:35:25] Production.INFO: 49.25 MB #Memory Used# [2025-02-17 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:36:05 [end_date_ymd] => 2025-02-17 18:36:05 [RateCDR] => 1 ) [2025-02-17 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:36:05' and `end` < '2025-02-17 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:36:18] Production.INFO: count ==2800 [2025-02-17 18:36:19] Production.ERROR: pbx CDR StartTime 2025-02-17 15:36:05 - End Time 2025-02-17 18:36:05 [2025-02-17 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497600', 'tblTempUsageDetail_20' ) start [2025-02-17 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497600', 'tblTempUsageDetail_20' ) end [2025-02-17 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497600', 'tblTempVendorCDR_20' ) start [2025-02-17 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497600', 'tblTempVendorCDR_20' ) end [2025-02-17 18:36:19] Production.INFO: ProcessCDR(1,14497600,1,1,2) [2025-02-17 18:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497600', 'tblTempUsageDetail_20' ) start [2025-02-17 18:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497600', 'tblTempUsageDetail_20' ) end [2025-02-17 18:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:36:22] Production.INFO: ==24975== Releasing lock... [2025-02-17 18:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:36:22] Production.INFO: 49 MB #Memory Used# [2025-02-17 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:37:05 [end_date_ymd] => 2025-02-17 18:37:05 [RateCDR] => 1 ) [2025-02-17 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:37:05' and `end` < '2025-02-17 18:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:37:19] Production.INFO: count ==2805 [2025-02-17 18:37:20] Production.ERROR: pbx CDR StartTime 2025-02-17 15:37:05 - End Time 2025-02-17 18:37:05 [2025-02-17 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497605', 'tblTempUsageDetail_20' ) start [2025-02-17 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497605', 'tblTempUsageDetail_20' ) end [2025-02-17 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497605', 'tblTempVendorCDR_20' ) start [2025-02-17 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497605', 'tblTempVendorCDR_20' ) end [2025-02-17 18:37:20] Production.INFO: ProcessCDR(1,14497605,1,1,2) [2025-02-17 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497605', 'tblTempUsageDetail_20' ) start [2025-02-17 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497605', 'tblTempUsageDetail_20' ) end [2025-02-17 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:37:25] Production.INFO: ==25064== Releasing lock... [2025-02-17 18:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:37:25] Production.INFO: 49.25 MB #Memory Used# [2025-02-17 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:38:05 [end_date_ymd] => 2025-02-17 18:38:05 [RateCDR] => 1 ) [2025-02-17 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:38:05' and `end` < '2025-02-17 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:38:21] Production.INFO: count ==2849 [2025-02-17 18:38:22] Production.ERROR: pbx CDR StartTime 2025-02-17 15:38:05 - End Time 2025-02-17 18:38:05 [2025-02-17 18:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497610', 'tblTempUsageDetail_20' ) start [2025-02-17 18:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497610', 'tblTempUsageDetail_20' ) end [2025-02-17 18:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497610', 'tblTempVendorCDR_20' ) start [2025-02-17 18:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497610', 'tblTempVendorCDR_20' ) end [2025-02-17 18:38:22] Production.INFO: ProcessCDR(1,14497610,1,1,2) [2025-02-17 18:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497610', 'tblTempUsageDetail_20' ) start [2025-02-17 18:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497610', 'tblTempUsageDetail_20' ) end [2025-02-17 18:38:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:38:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:38:26] Production.INFO: ==25148== Releasing lock... [2025-02-17 18:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:38:26] Production.INFO: 49 MB #Memory Used# [2025-02-17 18:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:39:04 [end_date_ymd] => 2025-02-17 18:39:04 [RateCDR] => 1 ) [2025-02-17 18:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:39:04' and `end` < '2025-02-17 18:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:39:21] Production.INFO: count ==3007 [2025-02-17 18:39:22] Production.ERROR: pbx CDR StartTime 2025-02-17 15:39:04 - End Time 2025-02-17 18:39:04 [2025-02-17 18:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497615', 'tblTempUsageDetail_20' ) start [2025-02-17 18:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497615', 'tblTempUsageDetail_20' ) end [2025-02-17 18:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497615', 'tblTempVendorCDR_20' ) start [2025-02-17 18:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497615', 'tblTempVendorCDR_20' ) end [2025-02-17 18:39:22] Production.INFO: ProcessCDR(1,14497615,1,1,2) [2025-02-17 18:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497615', 'tblTempUsageDetail_20' ) start [2025-02-17 18:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497615', 'tblTempUsageDetail_20' ) end [2025-02-17 18:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:39:26] Production.INFO: ==25233== Releasing lock... [2025-02-17 18:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:39:26] Production.INFO: 50.5 MB #Memory Used# [2025-02-17 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:40:06 [end_date_ymd] => 2025-02-17 18:40:06 [RateCDR] => 1 ) [2025-02-17 18:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:40:06' and `end` < '2025-02-17 18:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:40:19] Production.INFO: count ==3079 [2025-02-17 18:40:21] Production.ERROR: pbx CDR StartTime 2025-02-17 15:40:06 - End Time 2025-02-17 18:40:06 [2025-02-17 18:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497621', 'tblTempUsageDetail_20' ) start [2025-02-17 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497621', 'tblTempUsageDetail_20' ) end [2025-02-17 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497621', 'tblTempVendorCDR_20' ) start [2025-02-17 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497621', 'tblTempVendorCDR_20' ) end [2025-02-17 18:40:21] Production.INFO: ProcessCDR(1,14497621,1,1,2) [2025-02-17 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497621', 'tblTempUsageDetail_20' ) start [2025-02-17 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497621', 'tblTempUsageDetail_20' ) end [2025-02-17 18:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:40:24] Production.INFO: ==25318== Releasing lock... [2025-02-17 18:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:40:24] Production.INFO: 52 MB #Memory Used# [2025-02-17 18:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:41:06 [end_date_ymd] => 2025-02-17 18:41:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 15:41:06' and `end` < '2025-02-17 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-02-17 18:41:22] Production.INFO: count ==3209 [2025-02-17 18:41:23] Production.ERROR: pbx CDR StartTime 2025-02-17 15:41:06 - End Time 2025-02-17 18:41:06 [2025-02-17 18:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497626', 'tblTempUsageDetail_20' ) start [2025-02-17 18:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497626', 'tblTempUsageDetail_20' ) end [2025-02-17 18:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497626', 'tblTempVendorCDR_20' ) start [2025-02-17 18:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497626', 'tblTempVendorCDR_20' ) end [2025-02-17 18:41:23] Production.INFO: ProcessCDR(1,14497626,1,1,2) [2025-02-17 18:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497626', 'tblTempUsageDetail_20' ) start [2025-02-17 18:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497626', 'tblTempUsageDetail_20' ) end [2025-02-17 18:41:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:41:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:41:27] Production.INFO: ==25406== Releasing lock... [2025-02-17 18:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:41:27] Production.INFO: 52.25 MB #Memory Used# [2025-02-17 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:42:05 [end_date_ymd] => 2025-02-17 18:42:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 15:42:05' and `end` < '2025-02-17 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-02-17 18:42:19] Production.INFO: count ==3285 [2025-02-17 18:42:20] Production.ERROR: pbx CDR StartTime 2025-02-17 15:42:05 - End Time 2025-02-17 18:42:05 [2025-02-17 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497631', 'tblTempUsageDetail_20' ) start [2025-02-17 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497631', 'tblTempUsageDetail_20' ) end [2025-02-17 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497631', 'tblTempVendorCDR_20' ) start [2025-02-17 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497631', 'tblTempVendorCDR_20' ) end [2025-02-17 18:42:21] Production.INFO: ProcessCDR(1,14497631,1,1,2) [2025-02-17 18:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497631', 'tblTempUsageDetail_20' ) start [2025-02-17 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497631', 'tblTempUsageDetail_20' ) end [2025-02-17 18:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:42:24] Production.INFO: ==25491== Releasing lock... [2025-02-17 18:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:42:24] Production.INFO: 53 MB #Memory Used# [2025-02-17 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:43:05 [end_date_ymd] => 2025-02-17 18:43:05 [RateCDR] => 1 ) [2025-02-17 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:43:05' and `end` < '2025-02-17 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:43:25] Production.INFO: count ==3530 [2025-02-17 18:43:26] Production.ERROR: pbx CDR StartTime 2025-02-17 15:43:05 - End Time 2025-02-17 18:43:05 [2025-02-17 18:43:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497636', 'tblTempUsageDetail_20' ) start [2025-02-17 18:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497636', 'tblTempUsageDetail_20' ) end [2025-02-17 18:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497636', 'tblTempVendorCDR_20' ) start [2025-02-17 18:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497636', 'tblTempVendorCDR_20' ) end [2025-02-17 18:43:26] Production.INFO: ProcessCDR(1,14497636,1,1,2) [2025-02-17 18:43:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:43:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:43:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:43:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497636', 'tblTempUsageDetail_20' ) start [2025-02-17 18:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497636', 'tblTempUsageDetail_20' ) end [2025-02-17 18:43:31] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:43:31] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:43:31] Production.INFO: ==25578== Releasing lock... [2025-02-17 18:43:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:43:31] Production.INFO: 54.75 MB #Memory Used# [2025-02-17 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:44:05 [end_date_ymd] => 2025-02-17 18:44:05 [RateCDR] => 1 ) [2025-02-17 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:44:05' and `end` < '2025-02-17 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:44:22] Production.INFO: count ==3603 [2025-02-17 18:44:23] Production.ERROR: pbx CDR StartTime 2025-02-17 15:44:05 - End Time 2025-02-17 18:44:05 [2025-02-17 18:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497641', 'tblTempUsageDetail_20' ) start [2025-02-17 18:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497641', 'tblTempUsageDetail_20' ) end [2025-02-17 18:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497641', 'tblTempVendorCDR_20' ) start [2025-02-17 18:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497641', 'tblTempVendorCDR_20' ) end [2025-02-17 18:44:23] Production.INFO: ProcessCDR(1,14497641,1,1,2) [2025-02-17 18:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497641', 'tblTempUsageDetail_20' ) start [2025-02-17 18:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497641', 'tblTempUsageDetail_20' ) end [2025-02-17 18:44:28] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:44:28] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:44:28] Production.INFO: ==25665== Releasing lock... [2025-02-17 18:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:44:28] Production.INFO: 55 MB #Memory Used# [2025-02-17 18:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:45:06 [end_date_ymd] => 2025-02-17 18:45:06 [RateCDR] => 1 ) [2025-02-17 18:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:45:06' and `end` < '2025-02-17 18:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:45:23] Production.INFO: count ==3693 [2025-02-17 18:45:24] Production.ERROR: pbx CDR StartTime 2025-02-17 15:45:06 - End Time 2025-02-17 18:45:06 [2025-02-17 18:45:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497646', 'tblTempUsageDetail_20' ) start [2025-02-17 18:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497646', 'tblTempUsageDetail_20' ) end [2025-02-17 18:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497646', 'tblTempVendorCDR_20' ) start [2025-02-17 18:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497646', 'tblTempVendorCDR_20' ) end [2025-02-17 18:45:25] Production.INFO: ProcessCDR(1,14497646,1,1,2) [2025-02-17 18:45:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497646', 'tblTempUsageDetail_20' ) start [2025-02-17 18:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497646', 'tblTempUsageDetail_20' ) end [2025-02-17 18:45:28] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:45:28] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:45:28] Production.INFO: ==25822== Releasing lock... [2025-02-17 18:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:45:28] Production.INFO: 55.75 MB #Memory Used# [2025-02-17 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:46:05 [end_date_ymd] => 2025-02-17 18:46:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 15:46:05' and `end` < '2025-02-17 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-02-17 18:46:22] Production.INFO: count ==3794 [2025-02-17 18:46:24] Production.ERROR: pbx CDR StartTime 2025-02-17 15:46:05 - End Time 2025-02-17 18:46:05 [2025-02-17 18:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497651', 'tblTempUsageDetail_20' ) start [2025-02-17 18:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497651', 'tblTempUsageDetail_20' ) end [2025-02-17 18:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497651', 'tblTempVendorCDR_20' ) start [2025-02-17 18:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497651', 'tblTempVendorCDR_20' ) end [2025-02-17 18:46:24] Production.INFO: ProcessCDR(1,14497651,1,1,2) [2025-02-17 18:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497651', 'tblTempUsageDetail_20' ) start [2025-02-17 18:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497651', 'tblTempUsageDetail_20' ) end [2025-02-17 18:46:29] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:46:29] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:46:29] Production.INFO: ==25944== Releasing lock... [2025-02-17 18:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:46:29] Production.INFO: 56.5 MB #Memory Used# [2025-02-17 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:47:05 [end_date_ymd] => 2025-02-17 18:47:05 [RateCDR] => 1 ) [2025-02-17 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:47:05' and `end` < '2025-02-17 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:47:20] Production.INFO: count ==3849 [2025-02-17 18:47:21] Production.ERROR: pbx CDR StartTime 2025-02-17 15:47:05 - End Time 2025-02-17 18:47:05 [2025-02-17 18:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497656', 'tblTempUsageDetail_20' ) start [2025-02-17 18:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497656', 'tblTempUsageDetail_20' ) end [2025-02-17 18:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497656', 'tblTempVendorCDR_20' ) start [2025-02-17 18:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497656', 'tblTempVendorCDR_20' ) end [2025-02-17 18:47:22] Production.INFO: ProcessCDR(1,14497656,1,1,2) [2025-02-17 18:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497656', 'tblTempUsageDetail_20' ) start [2025-02-17 18:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497656', 'tblTempUsageDetail_20' ) end [2025-02-17 18:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:47:26] Production.INFO: ==26052== Releasing lock... [2025-02-17 18:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:47:26] Production.INFO: 56.75 MB #Memory Used# [2025-02-17 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:48:05 [end_date_ymd] => 2025-02-17 18:48:05 [RateCDR] => 1 ) [2025-02-17 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:48:05' and `end` < '2025-02-17 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:48:36] Production.INFO: count ==4030 [2025-02-17 18:48:38] Production.ERROR: pbx CDR StartTime 2025-02-17 15:48:05 - End Time 2025-02-17 18:48:05 [2025-02-17 18:48:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:48:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497661', 'tblTempUsageDetail_20' ) start [2025-02-17 18:48:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497661', 'tblTempUsageDetail_20' ) end [2025-02-17 18:48:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497661', 'tblTempVendorCDR_20' ) start [2025-02-17 18:48:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497661', 'tblTempVendorCDR_20' ) end [2025-02-17 18:48:38] Production.INFO: ProcessCDR(1,14497661,1,1,2) [2025-02-17 18:48:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:48:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:48:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:48:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:48:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497661', 'tblTempUsageDetail_20' ) start [2025-02-17 18:48:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497661', 'tblTempUsageDetail_20' ) end [2025-02-17 18:48:43] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:48:43] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:48:43] Production.INFO: ==26139== Releasing lock... [2025-02-17 18:48:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:48:43] Production.INFO: 58 MB #Memory Used# [2025-02-17 18:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:49:06 [end_date_ymd] => 2025-02-17 18:49:06 [RateCDR] => 1 ) [2025-02-17 18:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:49:06' and `end` < '2025-02-17 18:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:49:36] Production.INFO: count ==4249 [2025-02-17 18:49:38] Production.ERROR: pbx CDR StartTime 2025-02-17 15:49:06 - End Time 2025-02-17 18:49:06 [2025-02-17 18:49:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:49:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497666', 'tblTempUsageDetail_20' ) start [2025-02-17 18:49:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497666', 'tblTempUsageDetail_20' ) end [2025-02-17 18:49:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497666', 'tblTempVendorCDR_20' ) start [2025-02-17 18:49:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497666', 'tblTempVendorCDR_20' ) end [2025-02-17 18:49:38] Production.INFO: ProcessCDR(1,14497666,1,1,2) [2025-02-17 18:49:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:49:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:49:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:49:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:49:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497666', 'tblTempUsageDetail_20' ) start [2025-02-17 18:49:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497666', 'tblTempUsageDetail_20' ) end [2025-02-17 18:49:43] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:49:43] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:49:43] Production.INFO: ==26223== Releasing lock... [2025-02-17 18:49:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:49:43] Production.INFO: 59.75 MB #Memory Used# [2025-02-17 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:50:05 [end_date_ymd] => 2025-02-17 18:50:05 [RateCDR] => 1 ) [2025-02-17 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:50:05' and `end` < '2025-02-17 18:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:50:28] Production.INFO: count ==4395 [2025-02-17 18:50:30] Production.ERROR: pbx CDR StartTime 2025-02-17 15:50:05 - End Time 2025-02-17 18:50:05 [2025-02-17 18:50:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497672', 'tblTempUsageDetail_20' ) start [2025-02-17 18:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497672', 'tblTempUsageDetail_20' ) end [2025-02-17 18:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497672', 'tblTempVendorCDR_20' ) start [2025-02-17 18:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497672', 'tblTempVendorCDR_20' ) end [2025-02-17 18:50:30] Production.INFO: ProcessCDR(1,14497672,1,1,2) [2025-02-17 18:50:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:50:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:50:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:50:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497672', 'tblTempUsageDetail_20' ) start [2025-02-17 18:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497672', 'tblTempUsageDetail_20' ) end [2025-02-17 18:50:33] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:50:33] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:50:33] Production.INFO: ==26311== Releasing lock... [2025-02-17 18:50:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:50:33] Production.INFO: 60.75 MB #Memory Used# [2025-02-17 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:51:05 [end_date_ymd] => 2025-02-17 18:51:05 [RateCDR] => 1 ) [2025-02-17 18:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:51:05' and `end` < '2025-02-17 18:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:51:23] Production.INFO: count ==4441 [2025-02-17 18:51:25] Production.ERROR: pbx CDR StartTime 2025-02-17 15:51:05 - End Time 2025-02-17 18:51:05 [2025-02-17 18:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497677', 'tblTempUsageDetail_20' ) start [2025-02-17 18:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497677', 'tblTempUsageDetail_20' ) end [2025-02-17 18:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497677', 'tblTempVendorCDR_20' ) start [2025-02-17 18:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497677', 'tblTempVendorCDR_20' ) end [2025-02-17 18:51:25] Production.INFO: ProcessCDR(1,14497677,1,1,2) [2025-02-17 18:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497677', 'tblTempUsageDetail_20' ) start [2025-02-17 18:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497677', 'tblTempUsageDetail_20' ) end [2025-02-17 18:51:28] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:51:28] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:51:28] Production.INFO: ==26395== Releasing lock... [2025-02-17 18:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:51:28] Production.INFO: 61.25 MB #Memory Used# [2025-02-17 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:52:05 [end_date_ymd] => 2025-02-17 18:52:05 [RateCDR] => 1 ) [2025-02-17 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:52:05' and `end` < '2025-02-17 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:52:19] Production.INFO: count ==4474 [2025-02-17 18:52:20] Production.ERROR: pbx CDR StartTime 2025-02-17 15:52:05 - End Time 2025-02-17 18:52:05 [2025-02-17 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497682', 'tblTempUsageDetail_20' ) start [2025-02-17 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497682', 'tblTempUsageDetail_20' ) end [2025-02-17 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497682', 'tblTempVendorCDR_20' ) start [2025-02-17 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497682', 'tblTempVendorCDR_20' ) end [2025-02-17 18:52:20] Production.INFO: ProcessCDR(1,14497682,1,1,2) [2025-02-17 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497682', 'tblTempUsageDetail_20' ) start [2025-02-17 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497682', 'tblTempUsageDetail_20' ) end [2025-02-17 18:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:52:25] Production.INFO: ==26475== Releasing lock... [2025-02-17 18:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:52:25] Production.INFO: 61.25 MB #Memory Used# [2025-02-17 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:53:05 [end_date_ymd] => 2025-02-17 18:53:05 [RateCDR] => 1 ) [2025-02-17 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:53:05' and `end` < '2025-02-17 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:53:20] Production.INFO: count ==4512 [2025-02-17 18:53:22] Production.ERROR: pbx CDR StartTime 2025-02-17 15:53:05 - End Time 2025-02-17 18:53:05 [2025-02-17 18:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497687', 'tblTempUsageDetail_20' ) start [2025-02-17 18:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497687', 'tblTempUsageDetail_20' ) end [2025-02-17 18:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497687', 'tblTempVendorCDR_20' ) start [2025-02-17 18:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497687', 'tblTempVendorCDR_20' ) end [2025-02-17 18:53:22] Production.INFO: ProcessCDR(1,14497687,1,1,2) [2025-02-17 18:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497687', 'tblTempUsageDetail_20' ) start [2025-02-17 18:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497687', 'tblTempUsageDetail_20' ) end [2025-02-17 18:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:53:26] Production.INFO: ==26558== Releasing lock... [2025-02-17 18:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:53:26] Production.INFO: 61.75 MB #Memory Used# [2025-02-17 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:54:05 [end_date_ymd] => 2025-02-17 18:54:05 [RateCDR] => 1 ) [2025-02-17 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:54:05' and `end` < '2025-02-17 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:54:20] Production.INFO: count ==4611 [2025-02-17 18:54:22] Production.ERROR: pbx CDR StartTime 2025-02-17 15:54:05 - End Time 2025-02-17 18:54:05 [2025-02-17 18:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497692', 'tblTempUsageDetail_20' ) start [2025-02-17 18:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497692', 'tblTempUsageDetail_20' ) end [2025-02-17 18:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497692', 'tblTempVendorCDR_20' ) start [2025-02-17 18:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497692', 'tblTempVendorCDR_20' ) end [2025-02-17 18:54:22] Production.INFO: ProcessCDR(1,14497692,1,1,2) [2025-02-17 18:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497692', 'tblTempUsageDetail_20' ) start [2025-02-17 18:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497692', 'tblTempUsageDetail_20' ) end [2025-02-17 18:54:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:54:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:54:26] Production.INFO: ==26642== Releasing lock... [2025-02-17 18:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:54:26] Production.INFO: 62.5 MB #Memory Used# [2025-02-17 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:55:05 [end_date_ymd] => 2025-02-17 18:55:05 [RateCDR] => 1 ) [2025-02-17 18:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:55:05' and `end` < '2025-02-17 18:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:55:24] Production.INFO: count ==4684 [2025-02-17 18:55:26] Production.ERROR: pbx CDR StartTime 2025-02-17 15:55:05 - End Time 2025-02-17 18:55:05 [2025-02-17 18:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497697', 'tblTempUsageDetail_20' ) start [2025-02-17 18:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497697', 'tblTempUsageDetail_20' ) end [2025-02-17 18:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497697', 'tblTempVendorCDR_20' ) start [2025-02-17 18:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497697', 'tblTempVendorCDR_20' ) end [2025-02-17 18:55:27] Production.INFO: ProcessCDR(1,14497697,1,1,2) [2025-02-17 18:55:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:55:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:55:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:55:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497697', 'tblTempUsageDetail_20' ) start [2025-02-17 18:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497697', 'tblTempUsageDetail_20' ) end [2025-02-17 18:55:30] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:55:30] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:55:30] Production.INFO: ==26719== Releasing lock... [2025-02-17 18:55:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:55:30] Production.INFO: 63 MB #Memory Used# [2025-02-17 18:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:56:06 [end_date_ymd] => 2025-02-17 18:56:06 [RateCDR] => 1 ) [2025-02-17 18:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:56:06' and `end` < '2025-02-17 18:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:56:23] Production.INFO: count ==4722 [2025-02-17 18:56:25] Production.ERROR: pbx CDR StartTime 2025-02-17 15:56:06 - End Time 2025-02-17 18:56:06 [2025-02-17 18:56:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497702', 'tblTempUsageDetail_20' ) start [2025-02-17 18:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497702', 'tblTempUsageDetail_20' ) end [2025-02-17 18:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497702', 'tblTempVendorCDR_20' ) start [2025-02-17 18:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497702', 'tblTempVendorCDR_20' ) end [2025-02-17 18:56:25] Production.INFO: ProcessCDR(1,14497702,1,1,2) [2025-02-17 18:56:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:56:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:56:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497702', 'tblTempUsageDetail_20' ) start [2025-02-17 18:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497702', 'tblTempUsageDetail_20' ) end [2025-02-17 18:56:30] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:56:30] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:56:30] Production.INFO: ==26805== Releasing lock... [2025-02-17 18:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:56:30] Production.INFO: 63.25 MB #Memory Used# [2025-02-17 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:57:05 [end_date_ymd] => 2025-02-17 18:57:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 15:57:05' and `end` < '2025-02-17 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-02-17 18:57:18] Production.INFO: count ==4751 [2025-02-17 18:57:20] Production.ERROR: pbx CDR StartTime 2025-02-17 15:57:05 - End Time 2025-02-17 18:57:05 [2025-02-17 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497707', 'tblTempUsageDetail_20' ) start [2025-02-17 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497707', 'tblTempUsageDetail_20' ) end [2025-02-17 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497707', 'tblTempVendorCDR_20' ) start [2025-02-17 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497707', 'tblTempVendorCDR_20' ) end [2025-02-17 18:57:20] Production.INFO: ProcessCDR(1,14497707,1,1,2) [2025-02-17 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497707', 'tblTempUsageDetail_20' ) start [2025-02-17 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497707', 'tblTempUsageDetail_20' ) end [2025-02-17 18:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:57:25] Production.INFO: ==26888== Releasing lock... [2025-02-17 18:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:57:25] Production.INFO: 63.5 MB #Memory Used# [2025-02-17 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:58:05 [end_date_ymd] => 2025-02-17 18:58:05 [RateCDR] => 1 ) [2025-02-17 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:58:05' and `end` < '2025-02-17 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:58:21] Production.INFO: count ==4792 [2025-02-17 18:58:23] Production.ERROR: pbx CDR StartTime 2025-02-17 15:58:05 - End Time 2025-02-17 18:58:05 [2025-02-17 18:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497712', 'tblTempUsageDetail_20' ) start [2025-02-17 18:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497712', 'tblTempUsageDetail_20' ) end [2025-02-17 18:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497712', 'tblTempVendorCDR_20' ) start [2025-02-17 18:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497712', 'tblTempVendorCDR_20' ) end [2025-02-17 18:58:23] Production.INFO: ProcessCDR(1,14497712,1,1,2) [2025-02-17 18:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497712', 'tblTempUsageDetail_20' ) start [2025-02-17 18:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497712', 'tblTempUsageDetail_20' ) end [2025-02-17 18:58:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:58:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:58:28] Production.INFO: ==26963== Releasing lock... [2025-02-17 18:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:58:28] Production.INFO: 63.75 MB #Memory Used# [2025-02-17 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 15:59:05 [end_date_ymd] => 2025-02-17 18:59:05 [RateCDR] => 1 ) [2025-02-17 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 15:59:05' and `end` < '2025-02-17 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 18:59:20] Production.INFO: count ==4834 [2025-02-17 18:59:22] Production.ERROR: pbx CDR StartTime 2025-02-17 15:59:05 - End Time 2025-02-17 18:59:05 [2025-02-17 18:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 18:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497717', 'tblTempUsageDetail_20' ) start [2025-02-17 18:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497717', 'tblTempUsageDetail_20' ) end [2025-02-17 18:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497717', 'tblTempVendorCDR_20' ) start [2025-02-17 18:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497717', 'tblTempVendorCDR_20' ) end [2025-02-17 18:59:22] Production.INFO: ProcessCDR(1,14497717,1,1,2) [2025-02-17 18:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 18:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 18:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497717', 'tblTempUsageDetail_20' ) start [2025-02-17 18:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497717', 'tblTempUsageDetail_20' ) end [2025-02-17 18:59:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 18:59:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 18:59:27] Production.INFO: ==27040== Releasing lock... [2025-02-17 18:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 18:59:27] Production.INFO: 64 MB #Memory Used# [2025-02-17 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:00:06 [end_date_ymd] => 2025-02-17 19:00:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 16:00:06' and `end` < '2025-02-17 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-02-17 19:00:20] Production.INFO: count ==4871 [2025-02-17 19:00:22] Production.ERROR: pbx CDR StartTime 2025-02-17 16:00:06 - End Time 2025-02-17 19:00:06 [2025-02-17 19:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497722', 'tblTempUsageDetail_20' ) start [2025-02-17 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497722', 'tblTempUsageDetail_20' ) end [2025-02-17 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497722', 'tblTempVendorCDR_20' ) start [2025-02-17 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497722', 'tblTempVendorCDR_20' ) end [2025-02-17 19:00:22] Production.INFO: ProcessCDR(1,14497722,1,1,2) [2025-02-17 19:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497722', 'tblTempUsageDetail_20' ) start [2025-02-17 19:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497722', 'tblTempUsageDetail_20' ) end [2025-02-17 19:00:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:00:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:00:27] Production.INFO: ==27120== Releasing lock... [2025-02-17 19:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:00:27] Production.INFO: 64.25 MB #Memory Used# [2025-02-17 19:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:01:06 [end_date_ymd] => 2025-02-17 19:01:06 [RateCDR] => 1 ) [2025-02-17 19:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:01:06' and `end` < '2025-02-17 19:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:01:20] Production.INFO: count ==4910 [2025-02-17 19:01:22] Production.ERROR: pbx CDR StartTime 2025-02-17 16:01:06 - End Time 2025-02-17 19:01:06 [2025-02-17 19:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497728', 'tblTempUsageDetail_20' ) start [2025-02-17 19:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497728', 'tblTempUsageDetail_20' ) end [2025-02-17 19:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497728', 'tblTempVendorCDR_20' ) start [2025-02-17 19:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497728', 'tblTempVendorCDR_20' ) end [2025-02-17 19:01:22] Production.INFO: ProcessCDR(1,14497728,1,1,2) [2025-02-17 19:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497728', 'tblTempUsageDetail_20' ) start [2025-02-17 19:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497728', 'tblTempUsageDetail_20' ) end [2025-02-17 19:01:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:01:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:01:27] Production.INFO: ==27324== Releasing lock... [2025-02-17 19:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:01:27] Production.INFO: 64.75 MB #Memory Used# [2025-02-17 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:02:06 [end_date_ymd] => 2025-02-17 19:02:06 [RateCDR] => 1 ) [2025-02-17 19:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:02:06' and `end` < '2025-02-17 19:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:02:21] Production.INFO: count ==4953 [2025-02-17 19:02:23] Production.ERROR: pbx CDR StartTime 2025-02-17 16:02:06 - End Time 2025-02-17 19:02:06 [2025-02-17 19:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497733', 'tblTempUsageDetail_20' ) start [2025-02-17 19:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497733', 'tblTempUsageDetail_20' ) end [2025-02-17 19:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497733', 'tblTempVendorCDR_20' ) start [2025-02-17 19:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497733', 'tblTempVendorCDR_20' ) end [2025-02-17 19:02:24] Production.INFO: ProcessCDR(1,14497733,1,1,2) [2025-02-17 19:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497733', 'tblTempUsageDetail_20' ) start [2025-02-17 19:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497733', 'tblTempUsageDetail_20' ) end [2025-02-17 19:02:28] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:02:28] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:02:28] Production.INFO: ==27397== Releasing lock... [2025-02-17 19:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:02:28] Production.INFO: 65 MB #Memory Used# [2025-02-17 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:03:05 [end_date_ymd] => 2025-02-17 19:03:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 16:03:05' and `end` < '2025-02-17 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-02-17 19:03:22] Production.INFO: count ==5295 [2025-02-17 19:03:24] Production.ERROR: pbx CDR StartTime 2025-02-17 16:03:05 - End Time 2025-02-17 19:03:05 [2025-02-17 19:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497737', 'tblTempUsageDetail_20' ) start [2025-02-17 19:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497737', 'tblTempUsageDetail_20' ) end [2025-02-17 19:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497737', 'tblTempVendorCDR_20' ) start [2025-02-17 19:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497737', 'tblTempVendorCDR_20' ) end [2025-02-17 19:03:24] Production.INFO: ProcessCDR(1,14497737,1,1,2) [2025-02-17 19:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497737', 'tblTempUsageDetail_20' ) start [2025-02-17 19:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497737', 'tblTempUsageDetail_20' ) end [2025-02-17 19:03:30] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:03:30] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:03:30] Production.INFO: ==27471== Releasing lock... [2025-02-17 19:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:03:30] Production.INFO: 67.5 MB #Memory Used# [2025-02-17 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:04:05 [end_date_ymd] => 2025-02-17 19:04:05 [RateCDR] => 1 ) [2025-02-17 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:04:05' and `end` < '2025-02-17 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:04:19] Production.INFO: count ==5348 [2025-02-17 19:04:22] Production.ERROR: pbx CDR StartTime 2025-02-17 16:04:05 - End Time 2025-02-17 19:04:05 [2025-02-17 19:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497743', 'tblTempUsageDetail_20' ) start [2025-02-17 19:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497743', 'tblTempUsageDetail_20' ) end [2025-02-17 19:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497743', 'tblTempVendorCDR_20' ) start [2025-02-17 19:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497743', 'tblTempVendorCDR_20' ) end [2025-02-17 19:04:22] Production.INFO: ProcessCDR(1,14497743,1,1,2) [2025-02-17 19:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497743', 'tblTempUsageDetail_20' ) start [2025-02-17 19:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497743', 'tblTempUsageDetail_20' ) end [2025-02-17 19:04:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:04:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:04:27] Production.INFO: ==27558== Releasing lock... [2025-02-17 19:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:04:27] Production.INFO: 68 MB #Memory Used# [2025-02-17 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:05:05 [end_date_ymd] => 2025-02-17 19:05:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 16:05:05' and `end` < '2025-02-17 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-02-17 19:05:18] Production.INFO: count ==5516 [2025-02-17 19:05:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:05:05 - End Time 2025-02-17 19:05:05 [2025-02-17 19:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497748', 'tblTempUsageDetail_20' ) start [2025-02-17 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497748', 'tblTempUsageDetail_20' ) end [2025-02-17 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497748', 'tblTempVendorCDR_20' ) start [2025-02-17 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497748', 'tblTempVendorCDR_20' ) end [2025-02-17 19:05:21] Production.INFO: ProcessCDR(1,14497748,1,1,2) [2025-02-17 19:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497748', 'tblTempUsageDetail_20' ) start [2025-02-17 19:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497748', 'tblTempUsageDetail_20' ) end [2025-02-17 19:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:05:26] Production.INFO: ==27720== Releasing lock... [2025-02-17 19:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:05:26] Production.INFO: 69.25 MB #Memory Used# [2025-02-17 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:06:05 [end_date_ymd] => 2025-02-17 19:06:05 [RateCDR] => 1 ) [2025-02-17 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:06:05' and `end` < '2025-02-17 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:06:19] Production.INFO: count ==5511 [2025-02-17 19:06:22] Production.ERROR: pbx CDR StartTime 2025-02-17 16:06:05 - End Time 2025-02-17 19:06:05 [2025-02-17 19:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497753', 'tblTempUsageDetail_20' ) start [2025-02-17 19:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497753', 'tblTempUsageDetail_20' ) end [2025-02-17 19:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497753', 'tblTempVendorCDR_20' ) start [2025-02-17 19:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497753', 'tblTempVendorCDR_20' ) end [2025-02-17 19:06:22] Production.INFO: ProcessCDR(1,14497753,1,1,2) [2025-02-17 19:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497753', 'tblTempUsageDetail_20' ) start [2025-02-17 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497753', 'tblTempUsageDetail_20' ) end [2025-02-17 19:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:06:25] Production.INFO: ==27793== Releasing lock... [2025-02-17 19:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:06:25] Production.INFO: 69 MB #Memory Used# [2025-02-17 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:07:05 [end_date_ymd] => 2025-02-17 19:07:05 [RateCDR] => 1 ) [2025-02-17 19:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:07:05' and `end` < '2025-02-17 19:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:07:18] Production.INFO: count ==5509 [2025-02-17 19:07:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:07:05 - End Time 2025-02-17 19:07:05 [2025-02-17 19:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497758', 'tblTempUsageDetail_20' ) start [2025-02-17 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497758', 'tblTempUsageDetail_20' ) end [2025-02-17 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497758', 'tblTempVendorCDR_20' ) start [2025-02-17 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497758', 'tblTempVendorCDR_20' ) end [2025-02-17 19:07:21] Production.INFO: ProcessCDR(1,14497758,1,1,2) [2025-02-17 19:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497758', 'tblTempUsageDetail_20' ) start [2025-02-17 19:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497758', 'tblTempUsageDetail_20' ) end [2025-02-17 19:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:07:26] Production.INFO: ==27878== Releasing lock... [2025-02-17 19:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:07:26] Production.INFO: 69 MB #Memory Used# [2025-02-17 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:08:05 [end_date_ymd] => 2025-02-17 19:08:05 [RateCDR] => 1 ) [2025-02-17 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:08:05' and `end` < '2025-02-17 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:08:19] Production.INFO: count ==5504 [2025-02-17 19:08:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:08:05 - End Time 2025-02-17 19:08:05 [2025-02-17 19:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497763', 'tblTempUsageDetail_20' ) start [2025-02-17 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497763', 'tblTempUsageDetail_20' ) end [2025-02-17 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497763', 'tblTempVendorCDR_20' ) start [2025-02-17 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497763', 'tblTempVendorCDR_20' ) end [2025-02-17 19:08:21] Production.INFO: ProcessCDR(1,14497763,1,1,2) [2025-02-17 19:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497763', 'tblTempUsageDetail_20' ) start [2025-02-17 19:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497763', 'tblTempUsageDetail_20' ) end [2025-02-17 19:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:08:26] Production.INFO: ==28032== Releasing lock... [2025-02-17 19:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:08:26] Production.INFO: 69 MB #Memory Used# [2025-02-17 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:09:05 [end_date_ymd] => 2025-02-17 19:09:05 [RateCDR] => 1 ) [2025-02-17 19:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:09:05' and `end` < '2025-02-17 19:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:09:19] Production.INFO: count ==5479 [2025-02-17 19:09:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:09:05 - End Time 2025-02-17 19:09:05 [2025-02-17 19:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497768', 'tblTempUsageDetail_20' ) start [2025-02-17 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497768', 'tblTempUsageDetail_20' ) end [2025-02-17 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497768', 'tblTempVendorCDR_20' ) start [2025-02-17 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497768', 'tblTempVendorCDR_20' ) end [2025-02-17 19:09:21] Production.INFO: ProcessCDR(1,14497768,1,1,2) [2025-02-17 19:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497768', 'tblTempUsageDetail_20' ) start [2025-02-17 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497768', 'tblTempUsageDetail_20' ) end [2025-02-17 19:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:09:24] Production.INFO: ==28110== Releasing lock... [2025-02-17 19:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:09:24] Production.INFO: 69 MB #Memory Used# [2025-02-17 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:10:06 [end_date_ymd] => 2025-02-17 19:10:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 16:10:06' and `end` < '2025-02-17 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-02-17 19:10:20] Production.INFO: count ==5457 [2025-02-17 19:10:23] Production.ERROR: pbx CDR StartTime 2025-02-17 16:10:06 - End Time 2025-02-17 19:10:06 [2025-02-17 19:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497774', 'tblTempUsageDetail_20' ) start [2025-02-17 19:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497774', 'tblTempUsageDetail_20' ) end [2025-02-17 19:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497774', 'tblTempVendorCDR_20' ) start [2025-02-17 19:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497774', 'tblTempVendorCDR_20' ) end [2025-02-17 19:10:23] Production.INFO: ProcessCDR(1,14497774,1,1,2) [2025-02-17 19:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497774', 'tblTempUsageDetail_20' ) start [2025-02-17 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497774', 'tblTempUsageDetail_20' ) end [2025-02-17 19:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:10:26] Production.INFO: ==28186== Releasing lock... [2025-02-17 19:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:10:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-17 19:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:11:04 [end_date_ymd] => 2025-02-17 19:11:04 [RateCDR] => 1 ) [2025-02-17 19:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:11:04' and `end` < '2025-02-17 19:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:11:18] Production.INFO: count ==5445 [2025-02-17 19:11:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:11:04 - End Time 2025-02-17 19:11:04 [2025-02-17 19:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497779', 'tblTempUsageDetail_20' ) start [2025-02-17 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497779', 'tblTempUsageDetail_20' ) end [2025-02-17 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497779', 'tblTempVendorCDR_20' ) start [2025-02-17 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497779', 'tblTempVendorCDR_20' ) end [2025-02-17 19:11:21] Production.INFO: ProcessCDR(1,14497779,1,1,2) [2025-02-17 19:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497779', 'tblTempUsageDetail_20' ) start [2025-02-17 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497779', 'tblTempUsageDetail_20' ) end [2025-02-17 19:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:11:25] Production.INFO: ==28261== Releasing lock... [2025-02-17 19:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:11:25] Production.INFO: 68.75 MB #Memory Used# [2025-02-17 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:12:05 [end_date_ymd] => 2025-02-17 19:12:05 [RateCDR] => 1 ) [2025-02-17 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:12:05' and `end` < '2025-02-17 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:12:19] Production.INFO: count ==5443 [2025-02-17 19:12:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:12:05 - End Time 2025-02-17 19:12:05 [2025-02-17 19:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497784', 'tblTempUsageDetail_20' ) start [2025-02-17 19:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497784', 'tblTempUsageDetail_20' ) end [2025-02-17 19:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497784', 'tblTempVendorCDR_20' ) start [2025-02-17 19:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497784', 'tblTempVendorCDR_20' ) end [2025-02-17 19:12:22] Production.INFO: ProcessCDR(1,14497784,1,1,2) [2025-02-17 19:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497784', 'tblTempUsageDetail_20' ) start [2025-02-17 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497784', 'tblTempUsageDetail_20' ) end [2025-02-17 19:12:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:12:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:12:25] Production.INFO: ==28413== Releasing lock... [2025-02-17 19:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:12:25] Production.INFO: 68.5 MB #Memory Used# [2025-02-17 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:13:05 [end_date_ymd] => 2025-02-17 19:13:05 [RateCDR] => 1 ) [2025-02-17 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:13:05' and `end` < '2025-02-17 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:13:19] Production.INFO: count ==5446 [2025-02-17 19:13:22] Production.ERROR: pbx CDR StartTime 2025-02-17 16:13:05 - End Time 2025-02-17 19:13:05 [2025-02-17 19:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497789', 'tblTempUsageDetail_20' ) start [2025-02-17 19:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497789', 'tblTempUsageDetail_20' ) end [2025-02-17 19:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497789', 'tblTempVendorCDR_20' ) start [2025-02-17 19:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497789', 'tblTempVendorCDR_20' ) end [2025-02-17 19:13:22] Production.INFO: ProcessCDR(1,14497789,1,1,2) [2025-02-17 19:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497789', 'tblTempUsageDetail_20' ) start [2025-02-17 19:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497789', 'tblTempUsageDetail_20' ) end [2025-02-17 19:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:13:25] Production.INFO: ==28484== Releasing lock... [2025-02-17 19:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:13:25] Production.INFO: 68.75 MB #Memory Used# [2025-02-17 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:14:05 [end_date_ymd] => 2025-02-17 19:14:05 [RateCDR] => 1 ) [2025-02-17 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:14:05' and `end` < '2025-02-17 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:14:19] Production.INFO: count ==5436 [2025-02-17 19:14:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:14:05 - End Time 2025-02-17 19:14:05 [2025-02-17 19:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497794', 'tblTempUsageDetail_20' ) start [2025-02-17 19:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497794', 'tblTempUsageDetail_20' ) end [2025-02-17 19:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497794', 'tblTempVendorCDR_20' ) start [2025-02-17 19:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497794', 'tblTempVendorCDR_20' ) end [2025-02-17 19:14:22] Production.INFO: ProcessCDR(1,14497794,1,1,2) [2025-02-17 19:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497794', 'tblTempUsageDetail_20' ) start [2025-02-17 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497794', 'tblTempUsageDetail_20' ) end [2025-02-17 19:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:14:25] Production.INFO: ==28556== Releasing lock... [2025-02-17 19:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:14:25] Production.INFO: 68.5 MB #Memory Used# [2025-02-17 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:15:05 [end_date_ymd] => 2025-02-17 19:15:05 [RateCDR] => 1 ) [2025-02-17 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:15:05' and `end` < '2025-02-17 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:15:19] Production.INFO: count ==5424 [2025-02-17 19:15:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:15:05 - End Time 2025-02-17 19:15:05 [2025-02-17 19:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497799', 'tblTempUsageDetail_20' ) start [2025-02-17 19:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497799', 'tblTempUsageDetail_20' ) end [2025-02-17 19:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497799', 'tblTempVendorCDR_20' ) start [2025-02-17 19:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497799', 'tblTempVendorCDR_20' ) end [2025-02-17 19:15:22] Production.INFO: ProcessCDR(1,14497799,1,1,2) [2025-02-17 19:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497799', 'tblTempUsageDetail_20' ) start [2025-02-17 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497799', 'tblTempUsageDetail_20' ) end [2025-02-17 19:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:15:25] Production.INFO: ==28707== Releasing lock... [2025-02-17 19:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:15:25] Production.INFO: 68.5 MB #Memory Used# [2025-02-17 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:16:05 [end_date_ymd] => 2025-02-17 19:16:05 [RateCDR] => 1 ) [2025-02-17 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:16:05' and `end` < '2025-02-17 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:16:19] Production.INFO: count ==5415 [2025-02-17 19:16:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:16:05 - End Time 2025-02-17 19:16:05 [2025-02-17 19:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497804', 'tblTempUsageDetail_20' ) start [2025-02-17 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497804', 'tblTempUsageDetail_20' ) end [2025-02-17 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497804', 'tblTempVendorCDR_20' ) start [2025-02-17 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497804', 'tblTempVendorCDR_20' ) end [2025-02-17 19:16:21] Production.INFO: ProcessCDR(1,14497804,1,1,2) [2025-02-17 19:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497804', 'tblTempUsageDetail_20' ) start [2025-02-17 19:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497804', 'tblTempUsageDetail_20' ) end [2025-02-17 19:16:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:16:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:16:26] Production.INFO: ==28780== Releasing lock... [2025-02-17 19:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:16:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-17 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:17:05 [end_date_ymd] => 2025-02-17 19:17:05 [RateCDR] => 1 ) [2025-02-17 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:17:05' and `end` < '2025-02-17 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:17:19] Production.INFO: count ==5379 [2025-02-17 19:17:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:17:05 - End Time 2025-02-17 19:17:05 [2025-02-17 19:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497809', 'tblTempUsageDetail_20' ) start [2025-02-17 19:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497809', 'tblTempUsageDetail_20' ) end [2025-02-17 19:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497809', 'tblTempVendorCDR_20' ) start [2025-02-17 19:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497809', 'tblTempVendorCDR_20' ) end [2025-02-17 19:17:22] Production.INFO: ProcessCDR(1,14497809,1,1,2) [2025-02-17 19:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497809', 'tblTempUsageDetail_20' ) start [2025-02-17 19:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497809', 'tblTempUsageDetail_20' ) end [2025-02-17 19:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:17:26] Production.INFO: ==28890== Releasing lock... [2025-02-17 19:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:17:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-17 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:18:05 [end_date_ymd] => 2025-02-17 19:18:05 [RateCDR] => 1 ) [2025-02-17 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:18:05' and `end` < '2025-02-17 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:18:19] Production.INFO: count ==5371 [2025-02-17 19:18:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:18:05 - End Time 2025-02-17 19:18:05 [2025-02-17 19:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497814', 'tblTempUsageDetail_20' ) start [2025-02-17 19:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497814', 'tblTempUsageDetail_20' ) end [2025-02-17 19:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497814', 'tblTempVendorCDR_20' ) start [2025-02-17 19:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497814', 'tblTempVendorCDR_20' ) end [2025-02-17 19:18:22] Production.INFO: ProcessCDR(1,14497814,1,1,2) [2025-02-17 19:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497814', 'tblTempUsageDetail_20' ) start [2025-02-17 19:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497814', 'tblTempUsageDetail_20' ) end [2025-02-17 19:18:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:18:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:18:26] Production.INFO: ==28966== Releasing lock... [2025-02-17 19:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:18:26] Production.INFO: 68 MB #Memory Used# [2025-02-17 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:19:05 [end_date_ymd] => 2025-02-17 19:19:05 [RateCDR] => 1 ) [2025-02-17 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:19:05' and `end` < '2025-02-17 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:19:19] Production.INFO: count ==5369 [2025-02-17 19:19:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:19:05 - End Time 2025-02-17 19:19:05 [2025-02-17 19:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497819', 'tblTempUsageDetail_20' ) start [2025-02-17 19:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497819', 'tblTempUsageDetail_20' ) end [2025-02-17 19:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497819', 'tblTempVendorCDR_20' ) start [2025-02-17 19:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497819', 'tblTempVendorCDR_20' ) end [2025-02-17 19:19:22] Production.INFO: ProcessCDR(1,14497819,1,1,2) [2025-02-17 19:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497819', 'tblTempUsageDetail_20' ) start [2025-02-17 19:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497819', 'tblTempUsageDetail_20' ) end [2025-02-17 19:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:19:25] Production.INFO: ==29040== Releasing lock... [2025-02-17 19:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:19:25] Production.INFO: 68 MB #Memory Used# [2025-02-17 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:20:05 [end_date_ymd] => 2025-02-17 19:20:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 16:20:05' and `end` < '2025-02-17 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-02-17 19:20:19] Production.INFO: count ==5359 [2025-02-17 19:20:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:20:05 - End Time 2025-02-17 19:20:05 [2025-02-17 19:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497824', 'tblTempUsageDetail_20' ) start [2025-02-17 19:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497824', 'tblTempUsageDetail_20' ) end [2025-02-17 19:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497824', 'tblTempVendorCDR_20' ) start [2025-02-17 19:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497824', 'tblTempVendorCDR_20' ) end [2025-02-17 19:20:22] Production.INFO: ProcessCDR(1,14497824,1,1,2) [2025-02-17 19:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497824', 'tblTempUsageDetail_20' ) start [2025-02-17 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497824', 'tblTempUsageDetail_20' ) end [2025-02-17 19:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:20:25] Production.INFO: ==29118== Releasing lock... [2025-02-17 19:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:20:25] Production.INFO: 68 MB #Memory Used# [2025-02-17 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:21:05 [end_date_ymd] => 2025-02-17 19:21:05 [RateCDR] => 1 ) [2025-02-17 19:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:21:05' and `end` < '2025-02-17 19:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:21:19] Production.INFO: count ==5333 [2025-02-17 19:21:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:21:05 - End Time 2025-02-17 19:21:05 [2025-02-17 19:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497830', 'tblTempUsageDetail_20' ) start [2025-02-17 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497830', 'tblTempUsageDetail_20' ) end [2025-02-17 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497830', 'tblTempVendorCDR_20' ) start [2025-02-17 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497830', 'tblTempVendorCDR_20' ) end [2025-02-17 19:21:21] Production.INFO: ProcessCDR(1,14497830,1,1,2) [2025-02-17 19:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497830', 'tblTempUsageDetail_20' ) start [2025-02-17 19:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497830', 'tblTempUsageDetail_20' ) end [2025-02-17 19:21:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:21:26] Production.INFO: ==29191== Releasing lock... [2025-02-17 19:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:21:26] Production.INFO: 67.75 MB #Memory Used# [2025-02-17 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:22:05 [end_date_ymd] => 2025-02-17 19:22:05 [RateCDR] => 1 ) [2025-02-17 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:22:05' and `end` < '2025-02-17 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:22:19] Production.INFO: count ==5322 [2025-02-17 19:22:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:22:05 - End Time 2025-02-17 19:22:05 [2025-02-17 19:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497835', 'tblTempUsageDetail_20' ) start [2025-02-17 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497835', 'tblTempUsageDetail_20' ) end [2025-02-17 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497835', 'tblTempVendorCDR_20' ) start [2025-02-17 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497835', 'tblTempVendorCDR_20' ) end [2025-02-17 19:22:21] Production.INFO: ProcessCDR(1,14497835,1,1,2) [2025-02-17 19:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497835', 'tblTempUsageDetail_20' ) start [2025-02-17 19:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497835', 'tblTempUsageDetail_20' ) end [2025-02-17 19:22:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:22:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:22:25] Production.INFO: ==29263== Releasing lock... [2025-02-17 19:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:22:25] Production.INFO: 67.75 MB #Memory Used# [2025-02-17 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:23:05 [end_date_ymd] => 2025-02-17 19:23:05 [RateCDR] => 1 ) [2025-02-17 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:23:05' and `end` < '2025-02-17 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:23:19] Production.INFO: count ==5325 [2025-02-17 19:23:22] Production.ERROR: pbx CDR StartTime 2025-02-17 16:23:05 - End Time 2025-02-17 19:23:05 [2025-02-17 19:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497840', 'tblTempUsageDetail_20' ) start [2025-02-17 19:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497840', 'tblTempUsageDetail_20' ) end [2025-02-17 19:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497840', 'tblTempVendorCDR_20' ) start [2025-02-17 19:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497840', 'tblTempVendorCDR_20' ) end [2025-02-17 19:23:22] Production.INFO: ProcessCDR(1,14497840,1,1,2) [2025-02-17 19:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497840', 'tblTempUsageDetail_20' ) start [2025-02-17 19:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497840', 'tblTempUsageDetail_20' ) end [2025-02-17 19:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:23:25] Production.INFO: ==29336== Releasing lock... [2025-02-17 19:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:23:25] Production.INFO: 67.75 MB #Memory Used# [2025-02-17 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:24:05 [end_date_ymd] => 2025-02-17 19:24:05 [RateCDR] => 1 ) [2025-02-17 19:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:24:05' and `end` < '2025-02-17 19:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:24:18] Production.INFO: count ==5307 [2025-02-17 19:24:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:24:05 - End Time 2025-02-17 19:24:05 [2025-02-17 19:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497845', 'tblTempUsageDetail_20' ) start [2025-02-17 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497845', 'tblTempUsageDetail_20' ) end [2025-02-17 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497845', 'tblTempVendorCDR_20' ) start [2025-02-17 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497845', 'tblTempVendorCDR_20' ) end [2025-02-17 19:24:21] Production.INFO: ProcessCDR(1,14497845,1,1,2) [2025-02-17 19:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497845', 'tblTempUsageDetail_20' ) start [2025-02-17 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497845', 'tblTempUsageDetail_20' ) end [2025-02-17 19:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:24:24] Production.INFO: ==29407== Releasing lock... [2025-02-17 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:24:24] Production.INFO: 67.5 MB #Memory Used# [2025-02-17 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:25:05 [end_date_ymd] => 2025-02-17 19:25:05 [RateCDR] => 1 ) [2025-02-17 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:25:05' and `end` < '2025-02-17 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:25:18] Production.INFO: count ==5294 [2025-02-17 19:25:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:25:05 - End Time 2025-02-17 19:25:05 [2025-02-17 19:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497850', 'tblTempUsageDetail_20' ) start [2025-02-17 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497850', 'tblTempUsageDetail_20' ) end [2025-02-17 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497850', 'tblTempVendorCDR_20' ) start [2025-02-17 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497850', 'tblTempVendorCDR_20' ) end [2025-02-17 19:25:21] Production.INFO: ProcessCDR(1,14497850,1,1,2) [2025-02-17 19:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497850', 'tblTempUsageDetail_20' ) start [2025-02-17 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497850', 'tblTempUsageDetail_20' ) end [2025-02-17 19:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:25:24] Production.INFO: ==29480== Releasing lock... [2025-02-17 19:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:25:24] Production.INFO: 67.5 MB #Memory Used# [2025-02-17 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:26:05 [end_date_ymd] => 2025-02-17 19:26:05 [RateCDR] => 1 ) [2025-02-17 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:26:05' and `end` < '2025-02-17 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:26:18] Production.INFO: count ==5283 [2025-02-17 19:26:20] Production.ERROR: pbx CDR StartTime 2025-02-17 16:26:05 - End Time 2025-02-17 19:26:05 [2025-02-17 19:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497855', 'tblTempUsageDetail_20' ) start [2025-02-17 19:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497855', 'tblTempUsageDetail_20' ) end [2025-02-17 19:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497855', 'tblTempVendorCDR_20' ) start [2025-02-17 19:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497855', 'tblTempVendorCDR_20' ) end [2025-02-17 19:26:21] Production.INFO: ProcessCDR(1,14497855,1,1,2) [2025-02-17 19:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497855', 'tblTempUsageDetail_20' ) start [2025-02-17 19:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497855', 'tblTempUsageDetail_20' ) end [2025-02-17 19:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:26:26] Production.INFO: ==29558== Releasing lock... [2025-02-17 19:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:26:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-17 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:27:05 [end_date_ymd] => 2025-02-17 19:27:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 16:27:05' and `end` < '2025-02-17 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-02-17 19:27:19] Production.INFO: count ==5253 [2025-02-17 19:27:22] Production.ERROR: pbx CDR StartTime 2025-02-17 16:27:05 - End Time 2025-02-17 19:27:05 [2025-02-17 19:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497860', 'tblTempUsageDetail_20' ) start [2025-02-17 19:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497860', 'tblTempUsageDetail_20' ) end [2025-02-17 19:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497860', 'tblTempVendorCDR_20' ) start [2025-02-17 19:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497860', 'tblTempVendorCDR_20' ) end [2025-02-17 19:27:22] Production.INFO: ProcessCDR(1,14497860,1,1,2) [2025-02-17 19:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497860', 'tblTempUsageDetail_20' ) start [2025-02-17 19:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497860', 'tblTempUsageDetail_20' ) end [2025-02-17 19:27:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:27:25] Production.INFO: ==29633== Releasing lock... [2025-02-17 19:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:27:25] Production.INFO: 67.25 MB #Memory Used# [2025-02-17 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:28:05 [end_date_ymd] => 2025-02-17 19:28:05 [RateCDR] => 1 ) [2025-02-17 19:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:28:05' and `end` < '2025-02-17 19:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:28:19] Production.INFO: count ==5255 [2025-02-17 19:28:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:28:05 - End Time 2025-02-17 19:28:05 [2025-02-17 19:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497865', 'tblTempUsageDetail_20' ) start [2025-02-17 19:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497865', 'tblTempUsageDetail_20' ) end [2025-02-17 19:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497865', 'tblTempVendorCDR_20' ) start [2025-02-17 19:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497865', 'tblTempVendorCDR_20' ) end [2025-02-17 19:28:21] Production.INFO: ProcessCDR(1,14497865,1,1,2) [2025-02-17 19:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497865', 'tblTempUsageDetail_20' ) start [2025-02-17 19:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497865', 'tblTempUsageDetail_20' ) end [2025-02-17 19:28:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:28:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:28:25] Production.INFO: ==29705== Releasing lock... [2025-02-17 19:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:28:25] Production.INFO: 67.25 MB #Memory Used# [2025-02-17 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:29:05 [end_date_ymd] => 2025-02-17 19:29:05 [RateCDR] => 1 ) [2025-02-17 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:29:05' and `end` < '2025-02-17 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:29:18] Production.INFO: count ==5248 [2025-02-17 19:29:20] Production.ERROR: pbx CDR StartTime 2025-02-17 16:29:05 - End Time 2025-02-17 19:29:05 [2025-02-17 19:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497870', 'tblTempUsageDetail_20' ) start [2025-02-17 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497870', 'tblTempUsageDetail_20' ) end [2025-02-17 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497870', 'tblTempVendorCDR_20' ) start [2025-02-17 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497870', 'tblTempVendorCDR_20' ) end [2025-02-17 19:29:21] Production.INFO: ProcessCDR(1,14497870,1,1,2) [2025-02-17 19:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497870', 'tblTempUsageDetail_20' ) start [2025-02-17 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497870', 'tblTempUsageDetail_20' ) end [2025-02-17 19:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:29:24] Production.INFO: ==29780== Releasing lock... [2025-02-17 19:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:29:24] Production.INFO: 67.25 MB #Memory Used# [2025-02-17 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:30:06 [end_date_ymd] => 2025-02-17 19:30:06 [RateCDR] => 1 ) [2025-02-17 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:30:06' and `end` < '2025-02-17 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:30:20] Production.INFO: count ==5232 [2025-02-17 19:30:22] Production.ERROR: pbx CDR StartTime 2025-02-17 16:30:06 - End Time 2025-02-17 19:30:06 [2025-02-17 19:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497876', 'tblTempUsageDetail_20' ) start [2025-02-17 19:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497876', 'tblTempUsageDetail_20' ) end [2025-02-17 19:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497876', 'tblTempVendorCDR_20' ) start [2025-02-17 19:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497876', 'tblTempVendorCDR_20' ) end [2025-02-17 19:30:22] Production.INFO: ProcessCDR(1,14497876,1,1,2) [2025-02-17 19:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497876', 'tblTempUsageDetail_20' ) start [2025-02-17 19:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497876', 'tblTempUsageDetail_20' ) end [2025-02-17 19:30:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:30:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:30:25] Production.INFO: ==29857== Releasing lock... [2025-02-17 19:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:30:25] Production.INFO: 67 MB #Memory Used# [2025-02-17 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:31:05 [end_date_ymd] => 2025-02-17 19:31:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 16:31:05' and `end` < '2025-02-17 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-02-17 19:31:18] Production.INFO: count ==5202 [2025-02-17 19:31:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:31:05 - End Time 2025-02-17 19:31:05 [2025-02-17 19:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497881', 'tblTempUsageDetail_20' ) start [2025-02-17 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497881', 'tblTempUsageDetail_20' ) end [2025-02-17 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497881', 'tblTempVendorCDR_20' ) start [2025-02-17 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497881', 'tblTempVendorCDR_20' ) end [2025-02-17 19:31:21] Production.INFO: ProcessCDR(1,14497881,1,1,2) [2025-02-17 19:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497881', 'tblTempUsageDetail_20' ) start [2025-02-17 19:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497881', 'tblTempUsageDetail_20' ) end [2025-02-17 19:31:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:31:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:31:26] Production.INFO: ==29939== Releasing lock... [2025-02-17 19:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:31:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-17 19:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:32:06 [end_date_ymd] => 2025-02-17 19:32:06 [RateCDR] => 1 ) [2025-02-17 19:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:32:06' and `end` < '2025-02-17 19:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:32:19] Production.INFO: count ==5188 [2025-02-17 19:32:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:32:06 - End Time 2025-02-17 19:32:06 [2025-02-17 19:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497886', 'tblTempUsageDetail_20' ) start [2025-02-17 19:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497886', 'tblTempUsageDetail_20' ) end [2025-02-17 19:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497886', 'tblTempVendorCDR_20' ) start [2025-02-17 19:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497886', 'tblTempVendorCDR_20' ) end [2025-02-17 19:32:22] Production.INFO: ProcessCDR(1,14497886,1,1,2) [2025-02-17 19:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497886', 'tblTempUsageDetail_20' ) start [2025-02-17 19:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497886', 'tblTempUsageDetail_20' ) end [2025-02-17 19:32:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:32:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:32:27] Production.INFO: ==30085== Releasing lock... [2025-02-17 19:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:32:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-17 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:33:05 [end_date_ymd] => 2025-02-17 19:33:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 16:33:05' and `end` < '2025-02-17 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-02-17 19:33:18] Production.INFO: count ==5170 [2025-02-17 19:33:20] Production.ERROR: pbx CDR StartTime 2025-02-17 16:33:05 - End Time 2025-02-17 19:33:05 [2025-02-17 19:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497891', 'tblTempUsageDetail_20' ) start [2025-02-17 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497891', 'tblTempUsageDetail_20' ) end [2025-02-17 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497891', 'tblTempVendorCDR_20' ) start [2025-02-17 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497891', 'tblTempVendorCDR_20' ) end [2025-02-17 19:33:21] Production.INFO: ProcessCDR(1,14497891,1,1,2) [2025-02-17 19:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497891', 'tblTempUsageDetail_20' ) start [2025-02-17 19:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497891', 'tblTempUsageDetail_20' ) end [2025-02-17 19:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:33:25] Production.INFO: ==30191== Releasing lock... [2025-02-17 19:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:33:25] Production.INFO: 66.5 MB #Memory Used# [2025-02-17 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:34:05 [end_date_ymd] => 2025-02-17 19:34:05 [RateCDR] => 1 ) [2025-02-17 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:34:05' and `end` < '2025-02-17 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:34:19] Production.INFO: count ==5139 [2025-02-17 19:34:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:34:05 - End Time 2025-02-17 19:34:05 [2025-02-17 19:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497896', 'tblTempUsageDetail_20' ) start [2025-02-17 19:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497896', 'tblTempUsageDetail_20' ) end [2025-02-17 19:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497896', 'tblTempVendorCDR_20' ) start [2025-02-17 19:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497896', 'tblTempVendorCDR_20' ) end [2025-02-17 19:34:21] Production.INFO: ProcessCDR(1,14497896,1,1,2) [2025-02-17 19:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497896', 'tblTempUsageDetail_20' ) start [2025-02-17 19:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497896', 'tblTempUsageDetail_20' ) end [2025-02-17 19:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:34:26] Production.INFO: ==30286== Releasing lock... [2025-02-17 19:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:34:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-17 19:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:35:06 [end_date_ymd] => 2025-02-17 19:35:06 [RateCDR] => 1 ) [2025-02-17 19:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:35:06' and `end` < '2025-02-17 19:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:35:20] Production.INFO: count ==5122 [2025-02-17 19:35:22] Production.ERROR: pbx CDR StartTime 2025-02-17 16:35:06 - End Time 2025-02-17 19:35:06 [2025-02-17 19:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497901', 'tblTempUsageDetail_20' ) start [2025-02-17 19:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497901', 'tblTempUsageDetail_20' ) end [2025-02-17 19:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497901', 'tblTempVendorCDR_20' ) start [2025-02-17 19:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497901', 'tblTempVendorCDR_20' ) end [2025-02-17 19:35:22] Production.INFO: ProcessCDR(1,14497901,1,1,2) [2025-02-17 19:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497901', 'tblTempUsageDetail_20' ) start [2025-02-17 19:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497901', 'tblTempUsageDetail_20' ) end [2025-02-17 19:35:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:35:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:35:26] Production.INFO: ==30377== Releasing lock... [2025-02-17 19:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:35:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-17 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:36:05 [end_date_ymd] => 2025-02-17 19:36:05 [RateCDR] => 1 ) [2025-02-17 19:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:36:05' and `end` < '2025-02-17 19:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:36:19] Production.INFO: count ==5117 [2025-02-17 19:36:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:36:05 - End Time 2025-02-17 19:36:05 [2025-02-17 19:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497906', 'tblTempUsageDetail_20' ) start [2025-02-17 19:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497906', 'tblTempUsageDetail_20' ) end [2025-02-17 19:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497906', 'tblTempVendorCDR_20' ) start [2025-02-17 19:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497906', 'tblTempVendorCDR_20' ) end [2025-02-17 19:36:22] Production.INFO: ProcessCDR(1,14497906,1,1,2) [2025-02-17 19:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497906', 'tblTempUsageDetail_20' ) start [2025-02-17 19:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497906', 'tblTempUsageDetail_20' ) end [2025-02-17 19:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:36:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:36:26] Production.INFO: ==30466== Releasing lock... [2025-02-17 19:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:36:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-17 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:37:05 [end_date_ymd] => 2025-02-17 19:37:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 16:37:05' and `end` < '2025-02-17 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:37:19] Production.INFO: count ==5102 [2025-02-17 19:37:22] Production.ERROR: pbx CDR StartTime 2025-02-17 16:37:05 - End Time 2025-02-17 19:37:05 [2025-02-17 19:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497911', 'tblTempUsageDetail_20' ) start [2025-02-17 19:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497911', 'tblTempUsageDetail_20' ) end [2025-02-17 19:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497911', 'tblTempVendorCDR_20' ) start [2025-02-17 19:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497911', 'tblTempVendorCDR_20' ) end [2025-02-17 19:37:22] Production.INFO: ProcessCDR(1,14497911,1,1,2) [2025-02-17 19:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497911', 'tblTempUsageDetail_20' ) start [2025-02-17 19:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497911', 'tblTempUsageDetail_20' ) end [2025-02-17 19:37:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:37:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:37:27] Production.INFO: ==30556== Releasing lock... [2025-02-17 19:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:37:27] Production.INFO: 66 MB #Memory Used# [2025-02-17 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:38:05 [end_date_ymd] => 2025-02-17 19:38:05 [RateCDR] => 1 ) [2025-02-17 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:38:05' and `end` < '2025-02-17 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:38:19] Production.INFO: count ==5088 [2025-02-17 19:38:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:38:05 - End Time 2025-02-17 19:38:05 [2025-02-17 19:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497916', 'tblTempUsageDetail_20' ) start [2025-02-17 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497916', 'tblTempUsageDetail_20' ) end [2025-02-17 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497916', 'tblTempVendorCDR_20' ) start [2025-02-17 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497916', 'tblTempVendorCDR_20' ) end [2025-02-17 19:38:21] Production.INFO: ProcessCDR(1,14497916,1,1,2) [2025-02-17 19:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497916', 'tblTempUsageDetail_20' ) start [2025-02-17 19:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497916', 'tblTempUsageDetail_20' ) end [2025-02-17 19:38:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:38:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:38:26] Production.INFO: ==30646== Releasing lock... [2025-02-17 19:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:38:26] Production.INFO: 66 MB #Memory Used# [2025-02-17 19:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:39:05 [end_date_ymd] => 2025-02-17 19:39:05 [RateCDR] => 1 ) [2025-02-17 19:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:39:05' and `end` < '2025-02-17 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:39:19] Production.INFO: count ==5079 [2025-02-17 19:39:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:39:05 - End Time 2025-02-17 19:39:05 [2025-02-17 19:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497921', 'tblTempUsageDetail_20' ) start [2025-02-17 19:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497921', 'tblTempUsageDetail_20' ) end [2025-02-17 19:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497921', 'tblTempVendorCDR_20' ) start [2025-02-17 19:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497921', 'tblTempVendorCDR_20' ) end [2025-02-17 19:39:22] Production.INFO: ProcessCDR(1,14497921,1,1,2) [2025-02-17 19:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497921', 'tblTempUsageDetail_20' ) start [2025-02-17 19:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497921', 'tblTempUsageDetail_20' ) end [2025-02-17 19:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:39:26] Production.INFO: ==30738== Releasing lock... [2025-02-17 19:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:39:26] Production.INFO: 66 MB #Memory Used# [2025-02-17 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:40:06 [end_date_ymd] => 2025-02-17 19:40:06 [RateCDR] => 1 ) [2025-02-17 19:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:40:06' and `end` < '2025-02-17 19:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:40:23] Production.INFO: count ==5071 [2025-02-17 19:40:25] Production.ERROR: pbx CDR StartTime 2025-02-17 16:40:06 - End Time 2025-02-17 19:40:06 [2025-02-17 19:40:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497927', 'tblTempUsageDetail_20' ) start [2025-02-17 19:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497927', 'tblTempUsageDetail_20' ) end [2025-02-17 19:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497927', 'tblTempVendorCDR_20' ) start [2025-02-17 19:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497927', 'tblTempVendorCDR_20' ) end [2025-02-17 19:40:25] Production.INFO: ProcessCDR(1,14497927,1,1,2) [2025-02-17 19:40:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:40:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:40:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:40:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497927', 'tblTempUsageDetail_20' ) start [2025-02-17 19:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497927', 'tblTempUsageDetail_20' ) end [2025-02-17 19:40:30] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:40:30] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:40:30] Production.INFO: ==30827== Releasing lock... [2025-02-17 19:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:40:30] Production.INFO: 65.75 MB #Memory Used# [2025-02-17 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:41:05 [end_date_ymd] => 2025-02-17 19:41:05 [RateCDR] => 1 ) [2025-02-17 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:41:05' and `end` < '2025-02-17 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:41:19] Production.INFO: count ==5026 [2025-02-17 19:41:22] Production.ERROR: pbx CDR StartTime 2025-02-17 16:41:05 - End Time 2025-02-17 19:41:05 [2025-02-17 19:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497932', 'tblTempUsageDetail_20' ) start [2025-02-17 19:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497932', 'tblTempUsageDetail_20' ) end [2025-02-17 19:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497932', 'tblTempVendorCDR_20' ) start [2025-02-17 19:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497932', 'tblTempVendorCDR_20' ) end [2025-02-17 19:41:22] Production.INFO: ProcessCDR(1,14497932,1,1,2) [2025-02-17 19:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497932', 'tblTempUsageDetail_20' ) start [2025-02-17 19:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497932', 'tblTempUsageDetail_20' ) end [2025-02-17 19:41:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:41:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:41:27] Production.INFO: ==30921== Releasing lock... [2025-02-17 19:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:41:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-17 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:42:05 [end_date_ymd] => 2025-02-17 19:42:05 [RateCDR] => 1 ) [2025-02-17 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:42:05' and `end` < '2025-02-17 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:42:19] Production.INFO: count ==5018 [2025-02-17 19:42:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:42:05 - End Time 2025-02-17 19:42:05 [2025-02-17 19:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497937', 'tblTempUsageDetail_20' ) start [2025-02-17 19:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497937', 'tblTempUsageDetail_20' ) end [2025-02-17 19:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497937', 'tblTempVendorCDR_20' ) start [2025-02-17 19:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497937', 'tblTempVendorCDR_20' ) end [2025-02-17 19:42:22] Production.INFO: ProcessCDR(1,14497937,1,1,2) [2025-02-17 19:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497937', 'tblTempUsageDetail_20' ) start [2025-02-17 19:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497937', 'tblTempUsageDetail_20' ) end [2025-02-17 19:42:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:42:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:42:25] Production.INFO: ==31010== Releasing lock... [2025-02-17 19:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:42:25] Production.INFO: 65.5 MB #Memory Used# [2025-02-17 19:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:43:06 [end_date_ymd] => 2025-02-17 19:43:06 [RateCDR] => 1 ) [2025-02-17 19:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:43:06' and `end` < '2025-02-17 19:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:43:20] Production.INFO: count ==4998 [2025-02-17 19:43:22] Production.ERROR: pbx CDR StartTime 2025-02-17 16:43:06 - End Time 2025-02-17 19:43:06 [2025-02-17 19:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497942', 'tblTempUsageDetail_20' ) start [2025-02-17 19:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497942', 'tblTempUsageDetail_20' ) end [2025-02-17 19:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497942', 'tblTempVendorCDR_20' ) start [2025-02-17 19:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497942', 'tblTempVendorCDR_20' ) end [2025-02-17 19:43:22] Production.INFO: ProcessCDR(1,14497942,1,1,2) [2025-02-17 19:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497942', 'tblTempUsageDetail_20' ) start [2025-02-17 19:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497942', 'tblTempUsageDetail_20' ) end [2025-02-17 19:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:43:25] Production.INFO: ==31098== Releasing lock... [2025-02-17 19:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:43:25] Production.INFO: 65.25 MB #Memory Used# [2025-02-17 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:44:05 [end_date_ymd] => 2025-02-17 19:44:05 [RateCDR] => 1 ) [2025-02-17 19:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:44:05' and `end` < '2025-02-17 19:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:44:18] Production.INFO: count ==4973 [2025-02-17 19:44:20] Production.ERROR: pbx CDR StartTime 2025-02-17 16:44:05 - End Time 2025-02-17 19:44:05 [2025-02-17 19:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497947', 'tblTempUsageDetail_20' ) start [2025-02-17 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497947', 'tblTempUsageDetail_20' ) end [2025-02-17 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497947', 'tblTempVendorCDR_20' ) start [2025-02-17 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497947', 'tblTempVendorCDR_20' ) end [2025-02-17 19:44:21] Production.INFO: ProcessCDR(1,14497947,1,1,2) [2025-02-17 19:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497947', 'tblTempUsageDetail_20' ) start [2025-02-17 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497947', 'tblTempUsageDetail_20' ) end [2025-02-17 19:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:44:24] Production.INFO: ==31185== Releasing lock... [2025-02-17 19:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:44:24] Production.INFO: 65 MB #Memory Used# [2025-02-17 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:45:05 [end_date_ymd] => 2025-02-17 19:45:05 [RateCDR] => 1 ) [2025-02-17 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:45:05' and `end` < '2025-02-17 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:45:18] Production.INFO: count ==4950 [2025-02-17 19:45:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:45:05 - End Time 2025-02-17 19:45:05 [2025-02-17 19:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497952', 'tblTempUsageDetail_20' ) start [2025-02-17 19:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497952', 'tblTempUsageDetail_20' ) end [2025-02-17 19:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497952', 'tblTempVendorCDR_20' ) start [2025-02-17 19:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497952', 'tblTempVendorCDR_20' ) end [2025-02-17 19:45:21] Production.INFO: ProcessCDR(1,14497952,1,1,2) [2025-02-17 19:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497952', 'tblTempUsageDetail_20' ) start [2025-02-17 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497952', 'tblTempUsageDetail_20' ) end [2025-02-17 19:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:45:24] Production.INFO: ==31281== Releasing lock... [2025-02-17 19:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:45:24] Production.INFO: 65 MB #Memory Used# [2025-02-17 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:46:05 [end_date_ymd] => 2025-02-17 19:46:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 16:46:05' and `end` < '2025-02-17 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-02-17 19:46:19] Production.INFO: count ==4937 [2025-02-17 19:46:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:46:05 - End Time 2025-02-17 19:46:05 [2025-02-17 19:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497957', 'tblTempUsageDetail_20' ) start [2025-02-17 19:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497957', 'tblTempUsageDetail_20' ) end [2025-02-17 19:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497957', 'tblTempVendorCDR_20' ) start [2025-02-17 19:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497957', 'tblTempVendorCDR_20' ) end [2025-02-17 19:46:21] Production.INFO: ProcessCDR(1,14497957,1,1,2) [2025-02-17 19:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497957', 'tblTempUsageDetail_20' ) start [2025-02-17 19:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497957', 'tblTempUsageDetail_20' ) end [2025-02-17 19:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:46:25] Production.INFO: ==31376== Releasing lock... [2025-02-17 19:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:46:25] Production.INFO: 64.75 MB #Memory Used# [2025-02-17 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:47:05 [end_date_ymd] => 2025-02-17 19:47:05 [RateCDR] => 1 ) [2025-02-17 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:47:05' and `end` < '2025-02-17 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:47:19] Production.INFO: count ==4937 [2025-02-17 19:47:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:47:05 - End Time 2025-02-17 19:47:05 [2025-02-17 19:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497962', 'tblTempUsageDetail_20' ) start [2025-02-17 19:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497962', 'tblTempUsageDetail_20' ) end [2025-02-17 19:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497962', 'tblTempVendorCDR_20' ) start [2025-02-17 19:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497962', 'tblTempVendorCDR_20' ) end [2025-02-17 19:47:21] Production.INFO: ProcessCDR(1,14497962,1,1,2) [2025-02-17 19:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497962', 'tblTempUsageDetail_20' ) start [2025-02-17 19:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497962', 'tblTempUsageDetail_20' ) end [2025-02-17 19:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:47:26] Production.INFO: ==31466== Releasing lock... [2025-02-17 19:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:47:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-17 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:48:05 [end_date_ymd] => 2025-02-17 19:48:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 16:48:05' and `end` < '2025-02-17 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-02-17 19:48:19] Production.INFO: count ==4953 [2025-02-17 19:48:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:48:05 - End Time 2025-02-17 19:48:05 [2025-02-17 19:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497967', 'tblTempUsageDetail_20' ) start [2025-02-17 19:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497967', 'tblTempUsageDetail_20' ) end [2025-02-17 19:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497967', 'tblTempVendorCDR_20' ) start [2025-02-17 19:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497967', 'tblTempVendorCDR_20' ) end [2025-02-17 19:48:21] Production.INFO: ProcessCDR(1,14497967,1,1,2) [2025-02-17 19:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497967', 'tblTempUsageDetail_20' ) start [2025-02-17 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497967', 'tblTempUsageDetail_20' ) end [2025-02-17 19:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:48:24] Production.INFO: ==31594== Releasing lock... [2025-02-17 19:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:48:24] Production.INFO: 65 MB #Memory Used# [2025-02-17 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:49:05 [end_date_ymd] => 2025-02-17 19:49:05 [RateCDR] => 1 ) [2025-02-17 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:49:05' and `end` < '2025-02-17 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:49:18] Production.INFO: count ==4942 [2025-02-17 19:49:20] Production.ERROR: pbx CDR StartTime 2025-02-17 16:49:05 - End Time 2025-02-17 19:49:05 [2025-02-17 19:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497972', 'tblTempUsageDetail_20' ) start [2025-02-17 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497972', 'tblTempUsageDetail_20' ) end [2025-02-17 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497972', 'tblTempVendorCDR_20' ) start [2025-02-17 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497972', 'tblTempVendorCDR_20' ) end [2025-02-17 19:49:20] Production.INFO: ProcessCDR(1,14497972,1,1,2) [2025-02-17 19:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497972', 'tblTempUsageDetail_20' ) start [2025-02-17 19:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497972', 'tblTempUsageDetail_20' ) end [2025-02-17 19:49:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:49:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:49:25] Production.INFO: ==31684== Releasing lock... [2025-02-17 19:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:49:25] Production.INFO: 64.75 MB #Memory Used# [2025-02-17 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:50:06 [end_date_ymd] => 2025-02-17 19:50:06 [RateCDR] => 1 ) [2025-02-17 19:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:50:06' and `end` < '2025-02-17 19:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:50:21] Production.INFO: count ==4935 [2025-02-17 19:50:23] Production.ERROR: pbx CDR StartTime 2025-02-17 16:50:06 - End Time 2025-02-17 19:50:06 [2025-02-17 19:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497978', 'tblTempUsageDetail_20' ) start [2025-02-17 19:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497978', 'tblTempUsageDetail_20' ) end [2025-02-17 19:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497978', 'tblTempVendorCDR_20' ) start [2025-02-17 19:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497978', 'tblTempVendorCDR_20' ) end [2025-02-17 19:50:23] Production.INFO: ProcessCDR(1,14497978,1,1,2) [2025-02-17 19:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497978', 'tblTempUsageDetail_20' ) start [2025-02-17 19:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497978', 'tblTempUsageDetail_20' ) end [2025-02-17 19:50:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:50:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:50:27] Production.INFO: ==31777== Releasing lock... [2025-02-17 19:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:50:27] Production.INFO: 64.75 MB #Memory Used# [2025-02-17 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:51:05 [end_date_ymd] => 2025-02-17 19:51:05 [RateCDR] => 1 ) [2025-02-17 19:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:51:05' and `end` < '2025-02-17 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:51:19] Production.INFO: count ==4902 [2025-02-17 19:51:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:51:05 - End Time 2025-02-17 19:51:05 [2025-02-17 19:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497983', 'tblTempUsageDetail_20' ) start [2025-02-17 19:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497983', 'tblTempUsageDetail_20' ) end [2025-02-17 19:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497983', 'tblTempVendorCDR_20' ) start [2025-02-17 19:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497983', 'tblTempVendorCDR_20' ) end [2025-02-17 19:51:21] Production.INFO: ProcessCDR(1,14497983,1,1,2) [2025-02-17 19:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497983', 'tblTempUsageDetail_20' ) start [2025-02-17 19:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497983', 'tblTempUsageDetail_20' ) end [2025-02-17 19:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:51:25] Production.INFO: ==31863== Releasing lock... [2025-02-17 19:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:51:25] Production.INFO: 64.5 MB #Memory Used# [2025-02-17 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:52:05 [end_date_ymd] => 2025-02-17 19:52:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 16:52:05' and `end` < '2025-02-17 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-02-17 19:52:20] Production.INFO: count ==4905 [2025-02-17 19:52:22] Production.ERROR: pbx CDR StartTime 2025-02-17 16:52:05 - End Time 2025-02-17 19:52:05 [2025-02-17 19:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497988', 'tblTempUsageDetail_20' ) start [2025-02-17 19:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497988', 'tblTempUsageDetail_20' ) end [2025-02-17 19:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497988', 'tblTempVendorCDR_20' ) start [2025-02-17 19:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497988', 'tblTempVendorCDR_20' ) end [2025-02-17 19:52:22] Production.INFO: ProcessCDR(1,14497988,1,1,2) [2025-02-17 19:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497988', 'tblTempUsageDetail_20' ) start [2025-02-17 19:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497988', 'tblTempUsageDetail_20' ) end [2025-02-17 19:52:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:52:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:52:27] Production.INFO: ==31945== Releasing lock... [2025-02-17 19:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:52:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-17 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:53:05 [end_date_ymd] => 2025-02-17 19:53:05 [RateCDR] => 1 ) [2025-02-17 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:53:05' and `end` < '2025-02-17 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:53:21] Production.INFO: count ==4900 [2025-02-17 19:53:23] Production.ERROR: pbx CDR StartTime 2025-02-17 16:53:05 - End Time 2025-02-17 19:53:05 [2025-02-17 19:53:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497993', 'tblTempUsageDetail_20' ) start [2025-02-17 19:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497993', 'tblTempUsageDetail_20' ) end [2025-02-17 19:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497993', 'tblTempVendorCDR_20' ) start [2025-02-17 19:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497993', 'tblTempVendorCDR_20' ) end [2025-02-17 19:53:23] Production.INFO: ProcessCDR(1,14497993,1,1,2) [2025-02-17 19:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497993', 'tblTempUsageDetail_20' ) start [2025-02-17 19:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497993', 'tblTempUsageDetail_20' ) end [2025-02-17 19:53:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:53:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:53:28] Production.INFO: ==32037== Releasing lock... [2025-02-17 19:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:53:28] Production.INFO: 64.5 MB #Memory Used# [2025-02-17 19:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:54:06 [end_date_ymd] => 2025-02-17 19:54:06 [RateCDR] => 1 ) [2025-02-17 19:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:54:06' and `end` < '2025-02-17 19:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:54:20] Production.INFO: count ==4898 [2025-02-17 19:54:22] Production.ERROR: pbx CDR StartTime 2025-02-17 16:54:06 - End Time 2025-02-17 19:54:06 [2025-02-17 19:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497998', 'tblTempUsageDetail_20' ) start [2025-02-17 19:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14497998', 'tblTempUsageDetail_20' ) end [2025-02-17 19:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497998', 'tblTempVendorCDR_20' ) start [2025-02-17 19:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14497998', 'tblTempVendorCDR_20' ) end [2025-02-17 19:54:22] Production.INFO: ProcessCDR(1,14497998,1,1,2) [2025-02-17 19:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14497998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14497998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14497998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14497998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497998', 'tblTempUsageDetail_20' ) start [2025-02-17 19:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14497998', 'tblTempUsageDetail_20' ) end [2025-02-17 19:54:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:54:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:54:27] Production.INFO: ==32124== Releasing lock... [2025-02-17 19:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:54:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-17 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:55:05 [end_date_ymd] => 2025-02-17 19:55:05 [RateCDR] => 1 ) [2025-02-17 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:55:05' and `end` < '2025-02-17 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:55:19] Production.INFO: count ==4902 [2025-02-17 19:55:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:55:05 - End Time 2025-02-17 19:55:05 [2025-02-17 19:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498003', 'tblTempUsageDetail_20' ) start [2025-02-17 19:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498003', 'tblTempUsageDetail_20' ) end [2025-02-17 19:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498003', 'tblTempVendorCDR_20' ) start [2025-02-17 19:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498003', 'tblTempVendorCDR_20' ) end [2025-02-17 19:55:21] Production.INFO: ProcessCDR(1,14498003,1,1,2) [2025-02-17 19:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498003', 'tblTempUsageDetail_20' ) start [2025-02-17 19:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498003', 'tblTempUsageDetail_20' ) end [2025-02-17 19:55:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:55:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:55:26] Production.INFO: ==32209== Releasing lock... [2025-02-17 19:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:55:26] Production.INFO: 64.5 MB #Memory Used# [2025-02-17 19:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:56:06 [end_date_ymd] => 2025-02-17 19:56:06 [RateCDR] => 1 ) [2025-02-17 19:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:56:06' and `end` < '2025-02-17 19:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:56:20] Production.INFO: count ==4895 [2025-02-17 19:56:22] Production.ERROR: pbx CDR StartTime 2025-02-17 16:56:06 - End Time 2025-02-17 19:56:06 [2025-02-17 19:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498008', 'tblTempUsageDetail_20' ) start [2025-02-17 19:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498008', 'tblTempUsageDetail_20' ) end [2025-02-17 19:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498008', 'tblTempVendorCDR_20' ) start [2025-02-17 19:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498008', 'tblTempVendorCDR_20' ) end [2025-02-17 19:56:22] Production.INFO: ProcessCDR(1,14498008,1,1,2) [2025-02-17 19:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498008', 'tblTempUsageDetail_20' ) start [2025-02-17 19:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498008', 'tblTempUsageDetail_20' ) end [2025-02-17 19:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:56:25] Production.INFO: ==32298== Releasing lock... [2025-02-17 19:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:56:25] Production.INFO: 64.5 MB #Memory Used# [2025-02-17 19:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:57:04 [end_date_ymd] => 2025-02-17 19:57:04 [RateCDR] => 1 ) [2025-02-17 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-02-17 16:57:04' and `end` < '2025-02-17 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-02-17 19:57:18] Production.INFO: count ==4895 [2025-02-17 19:57:20] Production.ERROR: pbx CDR StartTime 2025-02-17 16:57:04 - End Time 2025-02-17 19:57:04 [2025-02-17 19:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498013', 'tblTempUsageDetail_20' ) start [2025-02-17 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498013', 'tblTempUsageDetail_20' ) end [2025-02-17 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498013', 'tblTempVendorCDR_20' ) start [2025-02-17 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498013', 'tblTempVendorCDR_20' ) end [2025-02-17 19:57:20] Production.INFO: ProcessCDR(1,14498013,1,1,2) [2025-02-17 19:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498013', 'tblTempUsageDetail_20' ) start [2025-02-17 19:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498013', 'tblTempUsageDetail_20' ) end [2025-02-17 19:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:57:25] Production.INFO: ==32386== Releasing lock... [2025-02-17 19:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:57:25] Production.INFO: 64.5 MB #Memory Used# [2025-02-17 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:58:05 [end_date_ymd] => 2025-02-17 19:58:05 [RateCDR] => 1 ) [2025-02-17 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 16:58:05' and `end` < '2025-02-17 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 19:58:19] Production.INFO: count ==4890 [2025-02-17 19:58:21] Production.ERROR: pbx CDR StartTime 2025-02-17 16:58:05 - End Time 2025-02-17 19:58:05 [2025-02-17 19:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498018', 'tblTempUsageDetail_20' ) start [2025-02-17 19:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498018', 'tblTempUsageDetail_20' ) end [2025-02-17 19:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498018', 'tblTempVendorCDR_20' ) start [2025-02-17 19:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498018', 'tblTempVendorCDR_20' ) end [2025-02-17 19:58:21] Production.INFO: ProcessCDR(1,14498018,1,1,2) [2025-02-17 19:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498018', 'tblTempUsageDetail_20' ) start [2025-02-17 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498018', 'tblTempUsageDetail_20' ) end [2025-02-17 19:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:58:24] Production.INFO: ==32475== Releasing lock... [2025-02-17 19:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:58:24] Production.INFO: 64.5 MB #Memory Used# [2025-02-17 19:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 16:59:04 [end_date_ymd] => 2025-02-17 19:59:04 [RateCDR] => 1 ) [2025-02-17 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-02-17 16:59:04' and `end` < '2025-02-17 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-02-17 19:59:18] Production.INFO: count ==4871 [2025-02-17 19:59:20] Production.ERROR: pbx CDR StartTime 2025-02-17 16:59:04 - End Time 2025-02-17 19:59:04 [2025-02-17 19:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498023', 'tblTempUsageDetail_20' ) start [2025-02-17 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498023', 'tblTempUsageDetail_20' ) end [2025-02-17 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498023', 'tblTempVendorCDR_20' ) start [2025-02-17 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498023', 'tblTempVendorCDR_20' ) end [2025-02-17 19:59:20] Production.INFO: ProcessCDR(1,14498023,1,1,2) [2025-02-17 19:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 19:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498023', 'tblTempUsageDetail_20' ) start [2025-02-17 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498023', 'tblTempUsageDetail_20' ) end [2025-02-17 19:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 19:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 19:59:23] Production.INFO: ==32569== Releasing lock... [2025-02-17 19:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 19:59:23] Production.INFO: 64.25 MB #Memory Used# [2025-02-17 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:00:05 [end_date_ymd] => 2025-02-17 20:00:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 17:00:05' and `end` < '2025-02-17 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-02-17 20:00:18] Production.INFO: count ==4870 [2025-02-17 20:00:21] Production.ERROR: pbx CDR StartTime 2025-02-17 17:00:05 - End Time 2025-02-17 20:00:05 [2025-02-17 20:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498028', 'tblTempUsageDetail_20' ) start [2025-02-17 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498028', 'tblTempUsageDetail_20' ) end [2025-02-17 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498028', 'tblTempVendorCDR_20' ) start [2025-02-17 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498028', 'tblTempVendorCDR_20' ) end [2025-02-17 20:00:21] Production.INFO: ProcessCDR(1,14498028,1,1,2) [2025-02-17 20:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498028', 'tblTempUsageDetail_20' ) start [2025-02-17 20:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498028', 'tblTempUsageDetail_20' ) end [2025-02-17 20:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:00:26] Production.INFO: ==32660== Releasing lock... [2025-02-17 20:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:00:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-17 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:01:05 [end_date_ymd] => 2025-02-17 20:01:05 [RateCDR] => 1 ) [2025-02-17 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:01:05' and `end` < '2025-02-17 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:01:19] Production.INFO: count ==4854 [2025-02-17 20:01:21] Production.ERROR: pbx CDR StartTime 2025-02-17 17:01:05 - End Time 2025-02-17 20:01:05 [2025-02-17 20:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498034', 'tblTempUsageDetail_20' ) start [2025-02-17 20:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498034', 'tblTempUsageDetail_20' ) end [2025-02-17 20:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498034', 'tblTempVendorCDR_20' ) start [2025-02-17 20:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498034', 'tblTempVendorCDR_20' ) end [2025-02-17 20:01:21] Production.INFO: ProcessCDR(1,14498034,1,1,2) [2025-02-17 20:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498034', 'tblTempUsageDetail_20' ) start [2025-02-17 20:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498034', 'tblTempUsageDetail_20' ) end [2025-02-17 20:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:01:26] Production.INFO: ==336== Releasing lock... [2025-02-17 20:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:01:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-17 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:02:05 [end_date_ymd] => 2025-02-17 20:02:05 [RateCDR] => 1 ) [2025-02-17 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:02:05' and `end` < '2025-02-17 20:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:02:19] Production.INFO: count ==4855 [2025-02-17 20:02:22] Production.ERROR: pbx CDR StartTime 2025-02-17 17:02:05 - End Time 2025-02-17 20:02:05 [2025-02-17 20:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498039', 'tblTempUsageDetail_20' ) start [2025-02-17 20:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498039', 'tblTempUsageDetail_20' ) end [2025-02-17 20:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498039', 'tblTempVendorCDR_20' ) start [2025-02-17 20:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498039', 'tblTempVendorCDR_20' ) end [2025-02-17 20:02:22] Production.INFO: ProcessCDR(1,14498039,1,1,2) [2025-02-17 20:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498039', 'tblTempUsageDetail_20' ) start [2025-02-17 20:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498039', 'tblTempUsageDetail_20' ) end [2025-02-17 20:02:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:02:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:02:27] Production.INFO: ==418== Releasing lock... [2025-02-17 20:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:02:27] Production.INFO: 64.25 MB #Memory Used# [2025-02-17 20:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:03:06 [end_date_ymd] => 2025-02-17 20:03:06 [RateCDR] => 1 ) [2025-02-17 20:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:03:06' and `end` < '2025-02-17 20:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:03:20] Production.INFO: count ==4854 [2025-02-17 20:03:23] Production.ERROR: pbx CDR StartTime 2025-02-17 17:03:06 - End Time 2025-02-17 20:03:06 [2025-02-17 20:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498044', 'tblTempUsageDetail_20' ) start [2025-02-17 20:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498044', 'tblTempUsageDetail_20' ) end [2025-02-17 20:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498044', 'tblTempVendorCDR_20' ) start [2025-02-17 20:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498044', 'tblTempVendorCDR_20' ) end [2025-02-17 20:03:23] Production.INFO: ProcessCDR(1,14498044,1,1,2) [2025-02-17 20:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498044', 'tblTempUsageDetail_20' ) start [2025-02-17 20:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498044', 'tblTempUsageDetail_20' ) end [2025-02-17 20:03:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:03:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:03:27] Production.INFO: ==533== Releasing lock... [2025-02-17 20:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:03:27] Production.INFO: 64.25 MB #Memory Used# [2025-02-17 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:04:05 [end_date_ymd] => 2025-02-17 20:04:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 17:04:05' and `end` < '2025-02-17 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-02-17 20:04:19] Production.INFO: count ==4848 [2025-02-17 20:04:22] Production.ERROR: pbx CDR StartTime 2025-02-17 17:04:05 - End Time 2025-02-17 20:04:05 [2025-02-17 20:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498049', 'tblTempUsageDetail_20' ) start [2025-02-17 20:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498049', 'tblTempUsageDetail_20' ) end [2025-02-17 20:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498049', 'tblTempVendorCDR_20' ) start [2025-02-17 20:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498049', 'tblTempVendorCDR_20' ) end [2025-02-17 20:04:22] Production.INFO: ProcessCDR(1,14498049,1,1,2) [2025-02-17 20:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498049', 'tblTempUsageDetail_20' ) start [2025-02-17 20:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498049', 'tblTempUsageDetail_20' ) end [2025-02-17 20:04:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:04:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:04:27] Production.INFO: ==610== Releasing lock... [2025-02-17 20:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:04:27] Production.INFO: 64.25 MB #Memory Used# [2025-02-17 20:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:05:06 [end_date_ymd] => 2025-02-17 20:05:06 [RateCDR] => 1 ) [2025-02-17 20:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:05:06' and `end` < '2025-02-17 20:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:05:19] Production.INFO: count ==4847 [2025-02-17 20:05:22] Production.ERROR: pbx CDR StartTime 2025-02-17 17:05:06 - End Time 2025-02-17 20:05:06 [2025-02-17 20:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498054', 'tblTempUsageDetail_20' ) start [2025-02-17 20:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498054', 'tblTempUsageDetail_20' ) end [2025-02-17 20:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498054', 'tblTempVendorCDR_20' ) start [2025-02-17 20:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498054', 'tblTempVendorCDR_20' ) end [2025-02-17 20:05:22] Production.INFO: ProcessCDR(1,14498054,1,1,2) [2025-02-17 20:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498054', 'tblTempUsageDetail_20' ) start [2025-02-17 20:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498054', 'tblTempUsageDetail_20' ) end [2025-02-17 20:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:05:26] Production.INFO: ==712== Releasing lock... [2025-02-17 20:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:05:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-17 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:06:05 [end_date_ymd] => 2025-02-17 20:06:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 17:06:05' and `end` < '2025-02-17 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-02-17 20:06:19] Production.INFO: count ==4842 [2025-02-17 20:06:21] Production.ERROR: pbx CDR StartTime 2025-02-17 17:06:05 - End Time 2025-02-17 20:06:05 [2025-02-17 20:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498059', 'tblTempUsageDetail_20' ) start [2025-02-17 20:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498059', 'tblTempUsageDetail_20' ) end [2025-02-17 20:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498059', 'tblTempVendorCDR_20' ) start [2025-02-17 20:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498059', 'tblTempVendorCDR_20' ) end [2025-02-17 20:06:22] Production.INFO: ProcessCDR(1,14498059,1,1,2) [2025-02-17 20:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498059', 'tblTempUsageDetail_20' ) start [2025-02-17 20:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498059', 'tblTempUsageDetail_20' ) end [2025-02-17 20:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:06:25] Production.INFO: ==786== Releasing lock... [2025-02-17 20:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:06:25] Production.INFO: 64 MB #Memory Used# [2025-02-17 20:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:07:06 [end_date_ymd] => 2025-02-17 20:07:06 [RateCDR] => 1 ) [2025-02-17 20:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:07:06' and `end` < '2025-02-17 20:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:07:19] Production.INFO: count ==4847 [2025-02-17 20:07:21] Production.ERROR: pbx CDR StartTime 2025-02-17 17:07:06 - End Time 2025-02-17 20:07:06 [2025-02-17 20:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498064', 'tblTempUsageDetail_20' ) start [2025-02-17 20:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498064', 'tblTempUsageDetail_20' ) end [2025-02-17 20:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498064', 'tblTempVendorCDR_20' ) start [2025-02-17 20:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498064', 'tblTempVendorCDR_20' ) end [2025-02-17 20:07:21] Production.INFO: ProcessCDR(1,14498064,1,1,2) [2025-02-17 20:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498064', 'tblTempUsageDetail_20' ) start [2025-02-17 20:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498064', 'tblTempUsageDetail_20' ) end [2025-02-17 20:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:07:25] Production.INFO: ==858== Releasing lock... [2025-02-17 20:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:07:25] Production.INFO: 64.25 MB #Memory Used# [2025-02-17 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:08:05 [end_date_ymd] => 2025-02-17 20:08:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 17:08:05' and `end` < '2025-02-17 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-02-17 20:08:19] Production.INFO: count ==4848 [2025-02-17 20:08:21] Production.ERROR: pbx CDR StartTime 2025-02-17 17:08:05 - End Time 2025-02-17 20:08:05 [2025-02-17 20:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498069', 'tblTempUsageDetail_20' ) start [2025-02-17 20:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498069', 'tblTempUsageDetail_20' ) end [2025-02-17 20:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498069', 'tblTempVendorCDR_20' ) start [2025-02-17 20:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498069', 'tblTempVendorCDR_20' ) end [2025-02-17 20:08:21] Production.INFO: ProcessCDR(1,14498069,1,1,2) [2025-02-17 20:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498069', 'tblTempUsageDetail_20' ) start [2025-02-17 20:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498069', 'tblTempUsageDetail_20' ) end [2025-02-17 20:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:08:26] Production.INFO: ==929== Releasing lock... [2025-02-17 20:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:08:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-17 20:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:09:06 [end_date_ymd] => 2025-02-17 20:09:06 [RateCDR] => 1 ) [2025-02-17 20:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:09:06' and `end` < '2025-02-17 20:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:09:19] Production.INFO: count ==4847 [2025-02-17 20:09:21] Production.ERROR: pbx CDR StartTime 2025-02-17 17:09:06 - End Time 2025-02-17 20:09:06 [2025-02-17 20:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498074', 'tblTempUsageDetail_20' ) start [2025-02-17 20:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498074', 'tblTempUsageDetail_20' ) end [2025-02-17 20:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498074', 'tblTempVendorCDR_20' ) start [2025-02-17 20:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498074', 'tblTempVendorCDR_20' ) end [2025-02-17 20:09:21] Production.INFO: ProcessCDR(1,14498074,1,1,2) [2025-02-17 20:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498074', 'tblTempUsageDetail_20' ) start [2025-02-17 20:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498074', 'tblTempUsageDetail_20' ) end [2025-02-17 20:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:09:25] Production.INFO: ==1003== Releasing lock... [2025-02-17 20:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:09:25] Production.INFO: 64.25 MB #Memory Used# [2025-02-17 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:10:06 [end_date_ymd] => 2025-02-17 20:10:06 [RateCDR] => 1 ) [2025-02-17 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:10:06' and `end` < '2025-02-17 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:10:20] Production.INFO: count ==4848 [2025-02-17 20:10:22] Production.ERROR: pbx CDR StartTime 2025-02-17 17:10:06 - End Time 2025-02-17 20:10:06 [2025-02-17 20:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498079', 'tblTempUsageDetail_20' ) start [2025-02-17 20:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498079', 'tblTempUsageDetail_20' ) end [2025-02-17 20:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498079', 'tblTempVendorCDR_20' ) start [2025-02-17 20:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498079', 'tblTempVendorCDR_20' ) end [2025-02-17 20:10:22] Production.INFO: ProcessCDR(1,14498079,1,1,2) [2025-02-17 20:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498079', 'tblTempUsageDetail_20' ) start [2025-02-17 20:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498079', 'tblTempUsageDetail_20' ) end [2025-02-17 20:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:10:26] Production.INFO: ==1075== Releasing lock... [2025-02-17 20:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:10:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-17 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:11:05 [end_date_ymd] => 2025-02-17 20:11:05 [RateCDR] => 1 ) [2025-02-17 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:11:05' and `end` < '2025-02-17 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:11:18] Production.INFO: count ==4830 [2025-02-17 20:11:21] Production.ERROR: pbx CDR StartTime 2025-02-17 17:11:05 - End Time 2025-02-17 20:11:05 [2025-02-17 20:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498085', 'tblTempUsageDetail_20' ) start [2025-02-17 20:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498085', 'tblTempUsageDetail_20' ) end [2025-02-17 20:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498085', 'tblTempVendorCDR_20' ) start [2025-02-17 20:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498085', 'tblTempVendorCDR_20' ) end [2025-02-17 20:11:21] Production.INFO: ProcessCDR(1,14498085,1,1,2) [2025-02-17 20:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498085', 'tblTempUsageDetail_20' ) start [2025-02-17 20:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498085', 'tblTempUsageDetail_20' ) end [2025-02-17 20:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:11:26] Production.INFO: ==1157== Releasing lock... [2025-02-17 20:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:11:26] Production.INFO: 64 MB #Memory Used# [2025-02-17 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:12:06 [end_date_ymd] => 2025-02-17 20:12:06 [RateCDR] => 1 ) [2025-02-17 20:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:12:06' and `end` < '2025-02-17 20:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:12:20] Production.INFO: count ==4828 [2025-02-17 20:12:22] Production.ERROR: pbx CDR StartTime 2025-02-17 17:12:06 - End Time 2025-02-17 20:12:06 [2025-02-17 20:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498090', 'tblTempUsageDetail_20' ) start [2025-02-17 20:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498090', 'tblTempUsageDetail_20' ) end [2025-02-17 20:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498090', 'tblTempVendorCDR_20' ) start [2025-02-17 20:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498090', 'tblTempVendorCDR_20' ) end [2025-02-17 20:12:22] Production.INFO: ProcessCDR(1,14498090,1,1,2) [2025-02-17 20:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498090', 'tblTempUsageDetail_20' ) start [2025-02-17 20:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498090', 'tblTempUsageDetail_20' ) end [2025-02-17 20:12:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:12:28] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:12:28] Production.INFO: ==1233== Releasing lock... [2025-02-17 20:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:12:28] Production.INFO: 64 MB #Memory Used# [2025-02-17 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:13:05 [end_date_ymd] => 2025-02-17 20:13:05 [RateCDR] => 1 ) [2025-02-17 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:13:05' and `end` < '2025-02-17 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:13:18] Production.INFO: count ==4823 [2025-02-17 20:13:21] Production.ERROR: pbx CDR StartTime 2025-02-17 17:13:05 - End Time 2025-02-17 20:13:05 [2025-02-17 20:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498095', 'tblTempUsageDetail_20' ) start [2025-02-17 20:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498095', 'tblTempUsageDetail_20' ) end [2025-02-17 20:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498095', 'tblTempVendorCDR_20' ) start [2025-02-17 20:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498095', 'tblTempVendorCDR_20' ) end [2025-02-17 20:13:21] Production.INFO: ProcessCDR(1,14498095,1,1,2) [2025-02-17 20:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498095', 'tblTempUsageDetail_20' ) start [2025-02-17 20:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498095', 'tblTempUsageDetail_20' ) end [2025-02-17 20:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:13:25] Production.INFO: ==1315== Releasing lock... [2025-02-17 20:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:13:25] Production.INFO: 64 MB #Memory Used# [2025-02-17 20:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:14:06 [end_date_ymd] => 2025-02-17 20:14:06 [RateCDR] => 1 ) [2025-02-17 20:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:14:06' and `end` < '2025-02-17 20:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:14:19] Production.INFO: count ==4802 [2025-02-17 20:14:21] Production.ERROR: pbx CDR StartTime 2025-02-17 17:14:06 - End Time 2025-02-17 20:14:06 [2025-02-17 20:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498100', 'tblTempUsageDetail_20' ) start [2025-02-17 20:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498100', 'tblTempUsageDetail_20' ) end [2025-02-17 20:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498100', 'tblTempVendorCDR_20' ) start [2025-02-17 20:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498100', 'tblTempVendorCDR_20' ) end [2025-02-17 20:14:22] Production.INFO: ProcessCDR(1,14498100,1,1,2) [2025-02-17 20:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498100', 'tblTempUsageDetail_20' ) start [2025-02-17 20:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498100', 'tblTempUsageDetail_20' ) end [2025-02-17 20:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:14:25] Production.INFO: ==1384== Releasing lock... [2025-02-17 20:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:14:25] Production.INFO: 63.75 MB #Memory Used# [2025-02-17 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:15:05 [end_date_ymd] => 2025-02-17 20:15:05 [RateCDR] => 1 ) [2025-02-17 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:15:05' and `end` < '2025-02-17 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:15:19] Production.INFO: count ==4776 [2025-02-17 20:15:21] Production.ERROR: pbx CDR StartTime 2025-02-17 17:15:05 - End Time 2025-02-17 20:15:05 [2025-02-17 20:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498105', 'tblTempUsageDetail_20' ) start [2025-02-17 20:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498105', 'tblTempUsageDetail_20' ) end [2025-02-17 20:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498105', 'tblTempVendorCDR_20' ) start [2025-02-17 20:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498105', 'tblTempVendorCDR_20' ) end [2025-02-17 20:15:21] Production.INFO: ProcessCDR(1,14498105,1,1,2) [2025-02-17 20:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498105', 'tblTempUsageDetail_20' ) start [2025-02-17 20:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498105', 'tblTempUsageDetail_20' ) end [2025-02-17 20:15:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:15:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:15:27] Production.INFO: ==1456== Releasing lock... [2025-02-17 20:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:15:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-17 20:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:16:06 [end_date_ymd] => 2025-02-17 20:16:06 [RateCDR] => 1 ) [2025-02-17 20:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:16:06' and `end` < '2025-02-17 20:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:16:19] Production.INFO: count ==4775 [2025-02-17 20:16:22] Production.ERROR: pbx CDR StartTime 2025-02-17 17:16:06 - End Time 2025-02-17 20:16:06 [2025-02-17 20:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498110', 'tblTempUsageDetail_20' ) start [2025-02-17 20:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498110', 'tblTempUsageDetail_20' ) end [2025-02-17 20:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498110', 'tblTempVendorCDR_20' ) start [2025-02-17 20:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498110', 'tblTempVendorCDR_20' ) end [2025-02-17 20:16:22] Production.INFO: ProcessCDR(1,14498110,1,1,2) [2025-02-17 20:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498110', 'tblTempUsageDetail_20' ) start [2025-02-17 20:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498110', 'tblTempUsageDetail_20' ) end [2025-02-17 20:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:16:25] Production.INFO: ==1562== Releasing lock... [2025-02-17 20:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:16:25] Production.INFO: 63.5 MB #Memory Used# [2025-02-17 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:17:05 [end_date_ymd] => 2025-02-17 20:17:05 [RateCDR] => 1 ) [2025-02-17 20:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:17:05' and `end` < '2025-02-17 20:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:17:20] Production.INFO: count ==4760 [2025-02-17 20:17:22] Production.ERROR: pbx CDR StartTime 2025-02-17 17:17:05 - End Time 2025-02-17 20:17:05 [2025-02-17 20:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498115', 'tblTempUsageDetail_20' ) start [2025-02-17 20:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498115', 'tblTempUsageDetail_20' ) end [2025-02-17 20:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498115', 'tblTempVendorCDR_20' ) start [2025-02-17 20:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498115', 'tblTempVendorCDR_20' ) end [2025-02-17 20:17:22] Production.INFO: ProcessCDR(1,14498115,1,1,2) [2025-02-17 20:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498115', 'tblTempUsageDetail_20' ) start [2025-02-17 20:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498115', 'tblTempUsageDetail_20' ) end [2025-02-17 20:17:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:17:27] Production.INFO: ==1639== Releasing lock... [2025-02-17 20:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:17:27] Production.INFO: 63.5 MB #Memory Used# [2025-02-17 20:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:18:06 [end_date_ymd] => 2025-02-17 20:18:06 [RateCDR] => 1 ) [2025-02-17 20:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:18:06' and `end` < '2025-02-17 20:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:18:19] Production.INFO: count ==4741 [2025-02-17 20:18:21] Production.ERROR: pbx CDR StartTime 2025-02-17 17:18:06 - End Time 2025-02-17 20:18:06 [2025-02-17 20:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498120', 'tblTempUsageDetail_20' ) start [2025-02-17 20:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498120', 'tblTempUsageDetail_20' ) end [2025-02-17 20:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498120', 'tblTempVendorCDR_20' ) start [2025-02-17 20:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498120', 'tblTempVendorCDR_20' ) end [2025-02-17 20:18:22] Production.INFO: ProcessCDR(1,14498120,1,1,2) [2025-02-17 20:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498120', 'tblTempUsageDetail_20' ) start [2025-02-17 20:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498120', 'tblTempUsageDetail_20' ) end [2025-02-17 20:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:18:25] Production.INFO: ==1721== Releasing lock... [2025-02-17 20:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:18:25] Production.INFO: 63.25 MB #Memory Used# [2025-02-17 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:19:05 [end_date_ymd] => 2025-02-17 20:19:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 17:19:05' and `end` < '2025-02-17 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-02-17 20:19:18] Production.INFO: count ==4733 [2025-02-17 20:19:21] Production.ERROR: pbx CDR StartTime 2025-02-17 17:19:05 - End Time 2025-02-17 20:19:05 [2025-02-17 20:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498125', 'tblTempUsageDetail_20' ) start [2025-02-17 20:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498125', 'tblTempUsageDetail_20' ) end [2025-02-17 20:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498125', 'tblTempVendorCDR_20' ) start [2025-02-17 20:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498125', 'tblTempVendorCDR_20' ) end [2025-02-17 20:19:21] Production.INFO: ProcessCDR(1,14498125,1,1,2) [2025-02-17 20:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498125', 'tblTempUsageDetail_20' ) start [2025-02-17 20:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498125', 'tblTempUsageDetail_20' ) end [2025-02-17 20:19:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:19:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:19:26] Production.INFO: ==1835== Releasing lock... [2025-02-17 20:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:19:26] Production.INFO: 63.25 MB #Memory Used# [2025-02-17 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:20:06 [end_date_ymd] => 2025-02-17 20:20:06 [RateCDR] => 1 ) [2025-02-17 20:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:20:06' and `end` < '2025-02-17 20:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:20:20] Production.INFO: count ==4720 [2025-02-17 20:20:22] Production.ERROR: pbx CDR StartTime 2025-02-17 17:20:06 - End Time 2025-02-17 20:20:06 [2025-02-17 20:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498131', 'tblTempUsageDetail_20' ) start [2025-02-17 20:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498131', 'tblTempUsageDetail_20' ) end [2025-02-17 20:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498131', 'tblTempVendorCDR_20' ) start [2025-02-17 20:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498131', 'tblTempVendorCDR_20' ) end [2025-02-17 20:20:22] Production.INFO: ProcessCDR(1,14498131,1,1,2) [2025-02-17 20:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498131', 'tblTempUsageDetail_20' ) start [2025-02-17 20:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498131', 'tblTempUsageDetail_20' ) end [2025-02-17 20:20:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:20:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:20:26] Production.INFO: ==1910== Releasing lock... [2025-02-17 20:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:20:26] Production.INFO: 63.25 MB #Memory Used# [2025-02-17 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:21:05 [end_date_ymd] => 2025-02-17 20:21:05 [RateCDR] => 1 ) [2025-02-17 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:21:05' and `end` < '2025-02-17 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:21:20] Production.INFO: count ==4685 [2025-02-17 20:21:22] Production.ERROR: pbx CDR StartTime 2025-02-17 17:21:05 - End Time 2025-02-17 20:21:05 [2025-02-17 20:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498136', 'tblTempUsageDetail_20' ) start [2025-02-17 20:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498136', 'tblTempUsageDetail_20' ) end [2025-02-17 20:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498136', 'tblTempVendorCDR_20' ) start [2025-02-17 20:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498136', 'tblTempVendorCDR_20' ) end [2025-02-17 20:21:23] Production.INFO: ProcessCDR(1,14498136,1,1,2) [2025-02-17 20:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498136', 'tblTempUsageDetail_20' ) start [2025-02-17 20:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498136', 'tblTempUsageDetail_20' ) end [2025-02-17 20:21:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:21:26] Production.INFO: ==1982== Releasing lock... [2025-02-17 20:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:21:26] Production.INFO: 63 MB #Memory Used# [2025-02-17 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:22:05 [end_date_ymd] => 2025-02-17 20:22:05 [RateCDR] => 1 ) [2025-02-17 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:22:05' and `end` < '2025-02-17 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:22:19] Production.INFO: count ==4685 [2025-02-17 20:22:21] Production.ERROR: pbx CDR StartTime 2025-02-17 17:22:05 - End Time 2025-02-17 20:22:05 [2025-02-17 20:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498141', 'tblTempUsageDetail_20' ) start [2025-02-17 20:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498141', 'tblTempUsageDetail_20' ) end [2025-02-17 20:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498141', 'tblTempVendorCDR_20' ) start [2025-02-17 20:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498141', 'tblTempVendorCDR_20' ) end [2025-02-17 20:22:21] Production.INFO: ProcessCDR(1,14498141,1,1,2) [2025-02-17 20:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498141', 'tblTempUsageDetail_20' ) start [2025-02-17 20:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498141', 'tblTempUsageDetail_20' ) end [2025-02-17 20:22:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:22:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:22:25] Production.INFO: ==2055== Releasing lock... [2025-02-17 20:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:22:25] Production.INFO: 63 MB #Memory Used# [2025-02-17 20:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:23:06 [end_date_ymd] => 2025-02-17 20:23:06 [RateCDR] => 1 ) [2025-02-17 20:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:23:06' and `end` < '2025-02-17 20:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:23:20] Production.INFO: count ==4682 [2025-02-17 20:23:22] Production.ERROR: pbx CDR StartTime 2025-02-17 17:23:06 - End Time 2025-02-17 20:23:06 [2025-02-17 20:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498146', 'tblTempUsageDetail_20' ) start [2025-02-17 20:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498146', 'tblTempUsageDetail_20' ) end [2025-02-17 20:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498146', 'tblTempVendorCDR_20' ) start [2025-02-17 20:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498146', 'tblTempVendorCDR_20' ) end [2025-02-17 20:23:22] Production.INFO: ProcessCDR(1,14498146,1,1,2) [2025-02-17 20:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498146', 'tblTempUsageDetail_20' ) start [2025-02-17 20:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498146', 'tblTempUsageDetail_20' ) end [2025-02-17 20:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:23:25] Production.INFO: ==2125== Releasing lock... [2025-02-17 20:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:23:25] Production.INFO: 63 MB #Memory Used# [2025-02-17 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:24:06 [end_date_ymd] => 2025-02-17 20:24:06 [RateCDR] => 1 ) [2025-02-17 20:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:24:06' and `end` < '2025-02-17 20:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:24:20] Production.INFO: count ==4677 [2025-02-17 20:24:22] Production.ERROR: pbx CDR StartTime 2025-02-17 17:24:06 - End Time 2025-02-17 20:24:06 [2025-02-17 20:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498151', 'tblTempUsageDetail_20' ) start [2025-02-17 20:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498151', 'tblTempUsageDetail_20' ) end [2025-02-17 20:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498151', 'tblTempVendorCDR_20' ) start [2025-02-17 20:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498151', 'tblTempVendorCDR_20' ) end [2025-02-17 20:24:22] Production.INFO: ProcessCDR(1,14498151,1,1,2) [2025-02-17 20:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498151', 'tblTempUsageDetail_20' ) start [2025-02-17 20:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498151', 'tblTempUsageDetail_20' ) end [2025-02-17 20:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:24:27] Production.INFO: ==2205== Releasing lock... [2025-02-17 20:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:24:27] Production.INFO: 63 MB #Memory Used# [2025-02-17 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:25:05 [end_date_ymd] => 2025-02-17 20:25:05 [RateCDR] => 1 ) [2025-02-17 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:25:05' and `end` < '2025-02-17 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:25:19] Production.INFO: count ==4664 [2025-02-17 20:25:21] Production.ERROR: pbx CDR StartTime 2025-02-17 17:25:05 - End Time 2025-02-17 20:25:05 [2025-02-17 20:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498156', 'tblTempUsageDetail_20' ) start [2025-02-17 20:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498156', 'tblTempUsageDetail_20' ) end [2025-02-17 20:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498156', 'tblTempVendorCDR_20' ) start [2025-02-17 20:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498156', 'tblTempVendorCDR_20' ) end [2025-02-17 20:25:21] Production.INFO: ProcessCDR(1,14498156,1,1,2) [2025-02-17 20:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498156', 'tblTempUsageDetail_20' ) start [2025-02-17 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498156', 'tblTempUsageDetail_20' ) end [2025-02-17 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:25:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:25:27] Production.INFO: ==2279== Releasing lock... [2025-02-17 20:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:25:27] Production.INFO: 62.75 MB #Memory Used# [2025-02-17 20:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:26:06 [end_date_ymd] => 2025-02-17 20:26:06 [RateCDR] => 1 ) [2025-02-17 20:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:26:06' and `end` < '2025-02-17 20:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:26:19] Production.INFO: count ==4660 [2025-02-17 20:26:22] Production.ERROR: pbx CDR StartTime 2025-02-17 17:26:06 - End Time 2025-02-17 20:26:06 [2025-02-17 20:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498161', 'tblTempUsageDetail_20' ) start [2025-02-17 20:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498161', 'tblTempUsageDetail_20' ) end [2025-02-17 20:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498161', 'tblTempVendorCDR_20' ) start [2025-02-17 20:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498161', 'tblTempVendorCDR_20' ) end [2025-02-17 20:26:22] Production.INFO: ProcessCDR(1,14498161,1,1,2) [2025-02-17 20:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498161', 'tblTempUsageDetail_20' ) start [2025-02-17 20:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498161', 'tblTempUsageDetail_20' ) end [2025-02-17 20:26:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:26:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:26:27] Production.INFO: ==2355== Releasing lock... [2025-02-17 20:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:26:27] Production.INFO: 62.75 MB #Memory Used# [2025-02-17 20:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:27:06 [end_date_ymd] => 2025-02-17 20:27:06 [RateCDR] => 1 ) [2025-02-17 20:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:27:06' and `end` < '2025-02-17 20:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:27:20] Production.INFO: count ==4660 [2025-02-17 20:27:22] Production.ERROR: pbx CDR StartTime 2025-02-17 17:27:06 - End Time 2025-02-17 20:27:06 [2025-02-17 20:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498166', 'tblTempUsageDetail_20' ) start [2025-02-17 20:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498166', 'tblTempUsageDetail_20' ) end [2025-02-17 20:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498166', 'tblTempVendorCDR_20' ) start [2025-02-17 20:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498166', 'tblTempVendorCDR_20' ) end [2025-02-17 20:27:22] Production.INFO: ProcessCDR(1,14498166,1,1,2) [2025-02-17 20:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498166', 'tblTempUsageDetail_20' ) start [2025-02-17 20:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498166', 'tblTempUsageDetail_20' ) end [2025-02-17 20:27:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:27:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:27:26] Production.INFO: ==2426== Releasing lock... [2025-02-17 20:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:27:26] Production.INFO: 62.75 MB #Memory Used# [2025-02-17 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:28:05 [end_date_ymd] => 2025-02-17 20:28:05 [RateCDR] => 1 ) [2025-02-17 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:28:05' and `end` < '2025-02-17 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:28:19] Production.INFO: count ==4660 [2025-02-17 20:28:21] Production.ERROR: pbx CDR StartTime 2025-02-17 17:28:05 - End Time 2025-02-17 20:28:05 [2025-02-17 20:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498171', 'tblTempUsageDetail_20' ) start [2025-02-17 20:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498171', 'tblTempUsageDetail_20' ) end [2025-02-17 20:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498171', 'tblTempVendorCDR_20' ) start [2025-02-17 20:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498171', 'tblTempVendorCDR_20' ) end [2025-02-17 20:28:21] Production.INFO: ProcessCDR(1,14498171,1,1,2) [2025-02-17 20:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498171', 'tblTempUsageDetail_20' ) start [2025-02-17 20:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498171', 'tblTempUsageDetail_20' ) end [2025-02-17 20:28:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:28:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:28:25] Production.INFO: ==2496== Releasing lock... [2025-02-17 20:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:28:25] Production.INFO: 62.75 MB #Memory Used# [2025-02-17 20:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:29:06 [end_date_ymd] => 2025-02-17 20:29:06 [RateCDR] => 1 ) [2025-02-17 20:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:29:06' and `end` < '2025-02-17 20:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:29:20] Production.INFO: count ==4666 [2025-02-17 20:29:22] Production.ERROR: pbx CDR StartTime 2025-02-17 17:29:06 - End Time 2025-02-17 20:29:06 [2025-02-17 20:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498176', 'tblTempUsageDetail_20' ) start [2025-02-17 20:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498176', 'tblTempUsageDetail_20' ) end [2025-02-17 20:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498176', 'tblTempVendorCDR_20' ) start [2025-02-17 20:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498176', 'tblTempVendorCDR_20' ) end [2025-02-17 20:29:22] Production.INFO: ProcessCDR(1,14498176,1,1,2) [2025-02-17 20:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498176', 'tblTempUsageDetail_20' ) start [2025-02-17 20:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498176', 'tblTempUsageDetail_20' ) end [2025-02-17 20:29:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:29:26] Production.INFO: ==2566== Releasing lock... [2025-02-17 20:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:29:26] Production.INFO: 62.75 MB #Memory Used# [2025-02-17 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:30:06 [end_date_ymd] => 2025-02-17 20:30:06 [RateCDR] => 1 ) [2025-02-17 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:30:06' and `end` < '2025-02-17 20:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:30:19] Production.INFO: count ==4667 [2025-02-17 20:30:21] Production.ERROR: pbx CDR StartTime 2025-02-17 17:30:06 - End Time 2025-02-17 20:30:06 [2025-02-17 20:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498182', 'tblTempUsageDetail_20' ) start [2025-02-17 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498182', 'tblTempUsageDetail_20' ) end [2025-02-17 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498182', 'tblTempVendorCDR_20' ) start [2025-02-17 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498182', 'tblTempVendorCDR_20' ) end [2025-02-17 20:30:21] Production.INFO: ProcessCDR(1,14498182,1,1,2) [2025-02-17 20:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498182', 'tblTempUsageDetail_20' ) start [2025-02-17 20:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498182', 'tblTempUsageDetail_20' ) end [2025-02-17 20:30:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:30:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:30:25] Production.INFO: ==2639== Releasing lock... [2025-02-17 20:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:30:25] Production.INFO: 62.75 MB #Memory Used# [2025-02-17 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:31:05 [end_date_ymd] => 2025-02-17 20:31:05 [RateCDR] => 1 ) [2025-02-17 20:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:31:05' and `end` < '2025-02-17 20:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:31:19] Production.INFO: count ==4633 [2025-02-17 20:31:21] Production.ERROR: pbx CDR StartTime 2025-02-17 17:31:05 - End Time 2025-02-17 20:31:05 [2025-02-17 20:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498187', 'tblTempUsageDetail_20' ) start [2025-02-17 20:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498187', 'tblTempUsageDetail_20' ) end [2025-02-17 20:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498187', 'tblTempVendorCDR_20' ) start [2025-02-17 20:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498187', 'tblTempVendorCDR_20' ) end [2025-02-17 20:31:21] Production.INFO: ProcessCDR(1,14498187,1,1,2) [2025-02-17 20:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498187', 'tblTempUsageDetail_20' ) start [2025-02-17 20:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498187', 'tblTempUsageDetail_20' ) end [2025-02-17 20:31:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:31:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:31:25] Production.INFO: ==2713== Releasing lock... [2025-02-17 20:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:31:25] Production.INFO: 62.5 MB #Memory Used# [2025-02-17 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:32:05 [end_date_ymd] => 2025-02-17 20:32:05 [RateCDR] => 1 ) [2025-02-17 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:32:05' and `end` < '2025-02-17 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:32:19] Production.INFO: count ==4631 [2025-02-17 20:32:21] Production.ERROR: pbx CDR StartTime 2025-02-17 17:32:05 - End Time 2025-02-17 20:32:05 [2025-02-17 20:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498192', 'tblTempUsageDetail_20' ) start [2025-02-17 20:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498192', 'tblTempUsageDetail_20' ) end [2025-02-17 20:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498192', 'tblTempVendorCDR_20' ) start [2025-02-17 20:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498192', 'tblTempVendorCDR_20' ) end [2025-02-17 20:32:21] Production.INFO: ProcessCDR(1,14498192,1,1,2) [2025-02-17 20:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498192', 'tblTempUsageDetail_20' ) start [2025-02-17 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498192', 'tblTempUsageDetail_20' ) end [2025-02-17 20:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:32:24] Production.INFO: ==2785== Releasing lock... [2025-02-17 20:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:32:24] Production.INFO: 62.5 MB #Memory Used# [2025-02-17 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:33:05 [end_date_ymd] => 2025-02-17 20:33:05 [RateCDR] => 1 ) [2025-02-17 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:33:05' and `end` < '2025-02-17 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:33:19] Production.INFO: count ==4628 [2025-02-17 20:33:21] Production.ERROR: pbx CDR StartTime 2025-02-17 17:33:05 - End Time 2025-02-17 20:33:05 [2025-02-17 20:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498197', 'tblTempUsageDetail_20' ) start [2025-02-17 20:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498197', 'tblTempUsageDetail_20' ) end [2025-02-17 20:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498197', 'tblTempVendorCDR_20' ) start [2025-02-17 20:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498197', 'tblTempVendorCDR_20' ) end [2025-02-17 20:33:21] Production.INFO: ProcessCDR(1,14498197,1,1,2) [2025-02-17 20:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498197', 'tblTempUsageDetail_20' ) start [2025-02-17 20:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498197', 'tblTempUsageDetail_20' ) end [2025-02-17 20:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:33:24] Production.INFO: ==2855== Releasing lock... [2025-02-17 20:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:33:24] Production.INFO: 62.5 MB #Memory Used# [2025-02-17 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:34:05 [end_date_ymd] => 2025-02-17 20:34:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 17:34:05' and `end` < '2025-02-17 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-02-17 20:34:19] Production.INFO: count ==4625 [2025-02-17 20:34:21] Production.ERROR: pbx CDR StartTime 2025-02-17 17:34:05 - End Time 2025-02-17 20:34:05 [2025-02-17 20:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498202', 'tblTempUsageDetail_20' ) start [2025-02-17 20:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498202', 'tblTempUsageDetail_20' ) end [2025-02-17 20:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498202', 'tblTempVendorCDR_20' ) start [2025-02-17 20:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498202', 'tblTempVendorCDR_20' ) end [2025-02-17 20:34:21] Production.INFO: ProcessCDR(1,14498202,1,1,2) [2025-02-17 20:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498202', 'tblTempUsageDetail_20' ) start [2025-02-17 20:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498202', 'tblTempUsageDetail_20' ) end [2025-02-17 20:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:34:26] Production.INFO: ==2966== Releasing lock... [2025-02-17 20:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:34:26] Production.INFO: 62.5 MB #Memory Used# [2025-02-17 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:35:05 [end_date_ymd] => 2025-02-17 20:35:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 17:35:05' and `end` < '2025-02-17 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-02-17 20:35:19] Production.INFO: count ==4622 [2025-02-17 20:35:21] Production.ERROR: pbx CDR StartTime 2025-02-17 17:35:05 - End Time 2025-02-17 20:35:05 [2025-02-17 20:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498207', 'tblTempUsageDetail_20' ) start [2025-02-17 20:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498207', 'tblTempUsageDetail_20' ) end [2025-02-17 20:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498207', 'tblTempVendorCDR_20' ) start [2025-02-17 20:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498207', 'tblTempVendorCDR_20' ) end [2025-02-17 20:35:21] Production.INFO: ProcessCDR(1,14498207,1,1,2) [2025-02-17 20:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498207', 'tblTempUsageDetail_20' ) start [2025-02-17 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498207', 'tblTempUsageDetail_20' ) end [2025-02-17 20:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:35:24] Production.INFO: ==3039== Releasing lock... [2025-02-17 20:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:35:24] Production.INFO: 62.5 MB #Memory Used# [2025-02-17 20:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:36:06 [end_date_ymd] => 2025-02-17 20:36:06 [RateCDR] => 1 ) [2025-02-17 20:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:36:06' and `end` < '2025-02-17 20:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:36:21] Production.INFO: count ==4605 [2025-02-17 20:36:23] Production.ERROR: pbx CDR StartTime 2025-02-17 17:36:06 - End Time 2025-02-17 20:36:06 [2025-02-17 20:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498212', 'tblTempUsageDetail_20' ) start [2025-02-17 20:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498212', 'tblTempUsageDetail_20' ) end [2025-02-17 20:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498212', 'tblTempVendorCDR_20' ) start [2025-02-17 20:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498212', 'tblTempVendorCDR_20' ) end [2025-02-17 20:36:23] Production.INFO: ProcessCDR(1,14498212,1,1,2) [2025-02-17 20:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498212', 'tblTempUsageDetail_20' ) start [2025-02-17 20:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498212', 'tblTempUsageDetail_20' ) end [2025-02-17 20:36:28] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:36:28] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:36:28] Production.INFO: ==3113== Releasing lock... [2025-02-17 20:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:36:28] Production.INFO: 62.25 MB #Memory Used# [2025-02-17 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:37:05 [end_date_ymd] => 2025-02-17 20:37:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 17:37:05' and `end` < '2025-02-17 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-02-17 20:37:19] Production.INFO: count ==4600 [2025-02-17 20:37:21] Production.ERROR: pbx CDR StartTime 2025-02-17 17:37:05 - End Time 2025-02-17 20:37:05 [2025-02-17 20:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498217', 'tblTempUsageDetail_20' ) start [2025-02-17 20:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498217', 'tblTempUsageDetail_20' ) end [2025-02-17 20:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498217', 'tblTempVendorCDR_20' ) start [2025-02-17 20:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498217', 'tblTempVendorCDR_20' ) end [2025-02-17 20:37:21] Production.INFO: ProcessCDR(1,14498217,1,1,2) [2025-02-17 20:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498217', 'tblTempUsageDetail_20' ) start [2025-02-17 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498217', 'tblTempUsageDetail_20' ) end [2025-02-17 20:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:37:24] Production.INFO: ==3185== Releasing lock... [2025-02-17 20:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:37:24] Production.INFO: 62.25 MB #Memory Used# [2025-02-17 20:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:38:06 [end_date_ymd] => 2025-02-17 20:38:06 [RateCDR] => 1 ) [2025-02-17 20:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:38:06' and `end` < '2025-02-17 20:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:38:20] Production.INFO: count ==4599 [2025-02-17 20:38:22] Production.ERROR: pbx CDR StartTime 2025-02-17 17:38:06 - End Time 2025-02-17 20:38:06 [2025-02-17 20:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498222', 'tblTempUsageDetail_20' ) start [2025-02-17 20:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498222', 'tblTempUsageDetail_20' ) end [2025-02-17 20:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498222', 'tblTempVendorCDR_20' ) start [2025-02-17 20:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498222', 'tblTempVendorCDR_20' ) end [2025-02-17 20:38:22] Production.INFO: ProcessCDR(1,14498222,1,1,2) [2025-02-17 20:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498222', 'tblTempUsageDetail_20' ) start [2025-02-17 20:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498222', 'tblTempUsageDetail_20' ) end [2025-02-17 20:38:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:38:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:38:26] Production.INFO: ==3261== Releasing lock... [2025-02-17 20:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:38:26] Production.INFO: 62.25 MB #Memory Used# [2025-02-17 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:39:05 [end_date_ymd] => 2025-02-17 20:39:05 [RateCDR] => 1 ) [2025-02-17 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:39:05' and `end` < '2025-02-17 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:39:18] Production.INFO: count ==4598 [2025-02-17 20:39:20] Production.ERROR: pbx CDR StartTime 2025-02-17 17:39:05 - End Time 2025-02-17 20:39:05 [2025-02-17 20:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498227', 'tblTempUsageDetail_20' ) start [2025-02-17 20:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498227', 'tblTempUsageDetail_20' ) end [2025-02-17 20:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498227', 'tblTempVendorCDR_20' ) start [2025-02-17 20:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498227', 'tblTempVendorCDR_20' ) end [2025-02-17 20:39:21] Production.INFO: ProcessCDR(1,14498227,1,1,2) [2025-02-17 20:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498227', 'tblTempUsageDetail_20' ) start [2025-02-17 20:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498227', 'tblTempUsageDetail_20' ) end [2025-02-17 20:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:39:24] Production.INFO: ==3334== Releasing lock... [2025-02-17 20:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:39:24] Production.INFO: 62.25 MB #Memory Used# [2025-02-17 20:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:40:07 [end_date_ymd] => 2025-02-17 20:40:07 [RateCDR] => 1 ) [2025-02-17 20:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:40:07' and `end` < '2025-02-17 20:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:40:20] Production.INFO: count ==4599 [2025-02-17 20:40:22] Production.ERROR: pbx CDR StartTime 2025-02-17 17:40:07 - End Time 2025-02-17 20:40:07 [2025-02-17 20:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498233', 'tblTempUsageDetail_20' ) start [2025-02-17 20:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498233', 'tblTempUsageDetail_20' ) end [2025-02-17 20:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498233', 'tblTempVendorCDR_20' ) start [2025-02-17 20:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498233', 'tblTempVendorCDR_20' ) end [2025-02-17 20:40:22] Production.INFO: ProcessCDR(1,14498233,1,1,2) [2025-02-17 20:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498233', 'tblTempUsageDetail_20' ) start [2025-02-17 20:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498233', 'tblTempUsageDetail_20' ) end [2025-02-17 20:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:40:27] Production.INFO: ==3407== Releasing lock... [2025-02-17 20:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:40:27] Production.INFO: 62.25 MB #Memory Used# [2025-02-17 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:41:05 [end_date_ymd] => 2025-02-17 20:41:05 [RateCDR] => 1 ) [2025-02-17 20:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:41:05' and `end` < '2025-02-17 20:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:41:19] Production.INFO: count ==4590 [2025-02-17 20:41:21] Production.ERROR: pbx CDR StartTime 2025-02-17 17:41:05 - End Time 2025-02-17 20:41:05 [2025-02-17 20:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498238', 'tblTempUsageDetail_20' ) start [2025-02-17 20:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498238', 'tblTempUsageDetail_20' ) end [2025-02-17 20:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498238', 'tblTempVendorCDR_20' ) start [2025-02-17 20:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498238', 'tblTempVendorCDR_20' ) end [2025-02-17 20:41:21] Production.INFO: ProcessCDR(1,14498238,1,1,2) [2025-02-17 20:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498238', 'tblTempUsageDetail_20' ) start [2025-02-17 20:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498238', 'tblTempUsageDetail_20' ) end [2025-02-17 20:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:41:24] Production.INFO: ==3483== Releasing lock... [2025-02-17 20:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:41:24] Production.INFO: 62.25 MB #Memory Used# [2025-02-17 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:42:05 [end_date_ymd] => 2025-02-17 20:42:05 [RateCDR] => 1 ) [2025-02-17 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:42:05' and `end` < '2025-02-17 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:42:19] Production.INFO: count ==4588 [2025-02-17 20:42:21] Production.ERROR: pbx CDR StartTime 2025-02-17 17:42:05 - End Time 2025-02-17 20:42:05 [2025-02-17 20:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498243', 'tblTempUsageDetail_20' ) start [2025-02-17 20:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498243', 'tblTempUsageDetail_20' ) end [2025-02-17 20:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498243', 'tblTempVendorCDR_20' ) start [2025-02-17 20:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498243', 'tblTempVendorCDR_20' ) end [2025-02-17 20:42:21] Production.INFO: ProcessCDR(1,14498243,1,1,2) [2025-02-17 20:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498243', 'tblTempUsageDetail_20' ) start [2025-02-17 20:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498243', 'tblTempUsageDetail_20' ) end [2025-02-17 20:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:42:26] Production.INFO: ==3555== Releasing lock... [2025-02-17 20:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:42:26] Production.INFO: 62.25 MB #Memory Used# [2025-02-17 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:43:05 [end_date_ymd] => 2025-02-17 20:43:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 17:43:05' and `end` < '2025-02-17 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-02-17 20:43:19] Production.INFO: count ==4589 [2025-02-17 20:43:21] Production.ERROR: pbx CDR StartTime 2025-02-17 17:43:05 - End Time 2025-02-17 20:43:05 [2025-02-17 20:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498248', 'tblTempUsageDetail_20' ) start [2025-02-17 20:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498248', 'tblTempUsageDetail_20' ) end [2025-02-17 20:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498248', 'tblTempVendorCDR_20' ) start [2025-02-17 20:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498248', 'tblTempVendorCDR_20' ) end [2025-02-17 20:43:21] Production.INFO: ProcessCDR(1,14498248,1,1,2) [2025-02-17 20:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498248', 'tblTempUsageDetail_20' ) start [2025-02-17 20:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498248', 'tblTempUsageDetail_20' ) end [2025-02-17 20:43:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:43:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:43:26] Production.INFO: ==3633== Releasing lock... [2025-02-17 20:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:43:26] Production.INFO: 62.25 MB #Memory Used# [2025-02-17 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:44:05 [end_date_ymd] => 2025-02-17 20:44:05 [RateCDR] => 1 ) [2025-02-17 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:44:05' and `end` < '2025-02-17 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:44:18] Production.INFO: count ==4582 [2025-02-17 20:44:20] Production.ERROR: pbx CDR StartTime 2025-02-17 17:44:05 - End Time 2025-02-17 20:44:05 [2025-02-17 20:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498253', 'tblTempUsageDetail_20' ) start [2025-02-17 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498253', 'tblTempUsageDetail_20' ) end [2025-02-17 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498253', 'tblTempVendorCDR_20' ) start [2025-02-17 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498253', 'tblTempVendorCDR_20' ) end [2025-02-17 20:44:20] Production.INFO: ProcessCDR(1,14498253,1,1,2) [2025-02-17 20:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498253', 'tblTempUsageDetail_20' ) start [2025-02-17 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498253', 'tblTempUsageDetail_20' ) end [2025-02-17 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:44:23] Production.INFO: ==3703== Releasing lock... [2025-02-17 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:44:23] Production.INFO: 62.25 MB #Memory Used# [2025-02-17 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:45:05 [end_date_ymd] => 2025-02-17 20:45:05 [RateCDR] => 1 ) [2025-02-17 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:45:05' and `end` < '2025-02-17 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:45:19] Production.INFO: count ==4562 [2025-02-17 20:45:21] Production.ERROR: pbx CDR StartTime 2025-02-17 17:45:05 - End Time 2025-02-17 20:45:05 [2025-02-17 20:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498258', 'tblTempUsageDetail_20' ) start [2025-02-17 20:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498258', 'tblTempUsageDetail_20' ) end [2025-02-17 20:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498258', 'tblTempVendorCDR_20' ) start [2025-02-17 20:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498258', 'tblTempVendorCDR_20' ) end [2025-02-17 20:45:21] Production.INFO: ProcessCDR(1,14498258,1,1,2) [2025-02-17 20:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498258', 'tblTempUsageDetail_20' ) start [2025-02-17 20:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498258', 'tblTempUsageDetail_20' ) end [2025-02-17 20:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:45:24] Production.INFO: ==3777== Releasing lock... [2025-02-17 20:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:45:24] Production.INFO: 62 MB #Memory Used# [2025-02-17 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:46:05 [end_date_ymd] => 2025-02-17 20:46:05 [RateCDR] => 1 ) [2025-02-17 20:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:46:05' and `end` < '2025-02-17 20:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:46:18] Production.INFO: count ==4546 [2025-02-17 20:46:20] Production.ERROR: pbx CDR StartTime 2025-02-17 17:46:05 - End Time 2025-02-17 20:46:05 [2025-02-17 20:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498263', 'tblTempUsageDetail_20' ) start [2025-02-17 20:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498263', 'tblTempUsageDetail_20' ) end [2025-02-17 20:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498263', 'tblTempVendorCDR_20' ) start [2025-02-17 20:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498263', 'tblTempVendorCDR_20' ) end [2025-02-17 20:46:20] Production.INFO: ProcessCDR(1,14498263,1,1,2) [2025-02-17 20:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498263', 'tblTempUsageDetail_20' ) start [2025-02-17 20:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498263', 'tblTempUsageDetail_20' ) end [2025-02-17 20:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:46:24] Production.INFO: ==3848== Releasing lock... [2025-02-17 20:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:46:24] Production.INFO: 62 MB #Memory Used# [2025-02-17 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:47:05 [end_date_ymd] => 2025-02-17 20:47:05 [RateCDR] => 1 ) [2025-02-17 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:47:05' and `end` < '2025-02-17 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:47:18] Production.INFO: count ==4539 [2025-02-17 20:47:20] Production.ERROR: pbx CDR StartTime 2025-02-17 17:47:05 - End Time 2025-02-17 20:47:05 [2025-02-17 20:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498268', 'tblTempUsageDetail_20' ) start [2025-02-17 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498268', 'tblTempUsageDetail_20' ) end [2025-02-17 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498268', 'tblTempVendorCDR_20' ) start [2025-02-17 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498268', 'tblTempVendorCDR_20' ) end [2025-02-17 20:47:20] Production.INFO: ProcessCDR(1,14498268,1,1,2) [2025-02-17 20:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498268', 'tblTempUsageDetail_20' ) start [2025-02-17 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498268', 'tblTempUsageDetail_20' ) end [2025-02-17 20:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:47:23] Production.INFO: ==3920== Releasing lock... [2025-02-17 20:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:47:23] Production.INFO: 61.75 MB #Memory Used# [2025-02-17 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:48:05 [end_date_ymd] => 2025-02-17 20:48:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 17:48:05' and `end` < '2025-02-17 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-02-17 20:48:19] Production.INFO: count ==4541 [2025-02-17 20:48:21] Production.ERROR: pbx CDR StartTime 2025-02-17 17:48:05 - End Time 2025-02-17 20:48:05 [2025-02-17 20:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498273', 'tblTempUsageDetail_20' ) start [2025-02-17 20:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498273', 'tblTempUsageDetail_20' ) end [2025-02-17 20:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498273', 'tblTempVendorCDR_20' ) start [2025-02-17 20:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498273', 'tblTempVendorCDR_20' ) end [2025-02-17 20:48:21] Production.INFO: ProcessCDR(1,14498273,1,1,2) [2025-02-17 20:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498273', 'tblTempUsageDetail_20' ) start [2025-02-17 20:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498273', 'tblTempUsageDetail_20' ) end [2025-02-17 20:48:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:48:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:48:26] Production.INFO: ==3990== Releasing lock... [2025-02-17 20:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:48:26] Production.INFO: 61.75 MB #Memory Used# [2025-02-17 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:49:05 [end_date_ymd] => 2025-02-17 20:49:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 17:49:05' and `end` < '2025-02-17 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-02-17 20:49:18] Production.INFO: count ==4527 [2025-02-17 20:49:20] Production.ERROR: pbx CDR StartTime 2025-02-17 17:49:05 - End Time 2025-02-17 20:49:05 [2025-02-17 20:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498278', 'tblTempUsageDetail_20' ) start [2025-02-17 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498278', 'tblTempUsageDetail_20' ) end [2025-02-17 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498278', 'tblTempVendorCDR_20' ) start [2025-02-17 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498278', 'tblTempVendorCDR_20' ) end [2025-02-17 20:49:20] Production.INFO: ProcessCDR(1,14498278,1,1,2) [2025-02-17 20:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498278', 'tblTempUsageDetail_20' ) start [2025-02-17 20:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498278', 'tblTempUsageDetail_20' ) end [2025-02-17 20:49:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:49:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:49:25] Production.INFO: ==4067== Releasing lock... [2025-02-17 20:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:49:25] Production.INFO: 61.75 MB #Memory Used# [2025-02-17 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:50:06 [end_date_ymd] => 2025-02-17 20:50:06 [RateCDR] => 1 ) [2025-02-17 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:50:06' and `end` < '2025-02-17 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:50:19] Production.INFO: count ==4522 [2025-02-17 20:50:21] Production.ERROR: pbx CDR StartTime 2025-02-17 17:50:06 - End Time 2025-02-17 20:50:06 [2025-02-17 20:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498284', 'tblTempUsageDetail_20' ) start [2025-02-17 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498284', 'tblTempUsageDetail_20' ) end [2025-02-17 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498284', 'tblTempVendorCDR_20' ) start [2025-02-17 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498284', 'tblTempVendorCDR_20' ) end [2025-02-17 20:50:21] Production.INFO: ProcessCDR(1,14498284,1,1,2) [2025-02-17 20:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498284', 'tblTempUsageDetail_20' ) start [2025-02-17 20:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498284', 'tblTempUsageDetail_20' ) end [2025-02-17 20:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:50:25] Production.INFO: ==4180== Releasing lock... [2025-02-17 20:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:50:25] Production.INFO: 61.75 MB #Memory Used# [2025-02-17 20:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:51:04 [end_date_ymd] => 2025-02-17 20:51:04 [RateCDR] => 1 ) [2025-02-17 20: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-02-17 17:51:04' and `end` < '2025-02-17 20: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-02-17 20:51:17] Production.INFO: count ==4501 [2025-02-17 20:51:19] Production.ERROR: pbx CDR StartTime 2025-02-17 17:51:04 - End Time 2025-02-17 20:51:04 [2025-02-17 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498289', 'tblTempUsageDetail_20' ) start [2025-02-17 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498289', 'tblTempUsageDetail_20' ) end [2025-02-17 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498289', 'tblTempVendorCDR_20' ) start [2025-02-17 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498289', 'tblTempVendorCDR_20' ) end [2025-02-17 20:51:19] Production.INFO: ProcessCDR(1,14498289,1,1,2) [2025-02-17 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498289', 'tblTempUsageDetail_20' ) start [2025-02-17 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498289', 'tblTempUsageDetail_20' ) end [2025-02-17 20:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:51:23] Production.INFO: ==4252== Releasing lock... [2025-02-17 20:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:51:23] Production.INFO: 61.5 MB #Memory Used# [2025-02-17 20:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:52:06 [end_date_ymd] => 2025-02-17 20:52:06 [RateCDR] => 1 ) [2025-02-17 20:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:52:06' and `end` < '2025-02-17 20:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:52:19] Production.INFO: count ==4500 [2025-02-17 20:52:21] Production.ERROR: pbx CDR StartTime 2025-02-17 17:52:06 - End Time 2025-02-17 20:52:06 [2025-02-17 20:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498294', 'tblTempUsageDetail_20' ) start [2025-02-17 20:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498294', 'tblTempUsageDetail_20' ) end [2025-02-17 20:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498294', 'tblTempVendorCDR_20' ) start [2025-02-17 20:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498294', 'tblTempVendorCDR_20' ) end [2025-02-17 20:52:21] Production.INFO: ProcessCDR(1,14498294,1,1,2) [2025-02-17 20:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498294', 'tblTempUsageDetail_20' ) start [2025-02-17 20:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498294', 'tblTempUsageDetail_20' ) end [2025-02-17 20:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:52:24] Production.INFO: ==4325== Releasing lock... [2025-02-17 20:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:52:24] Production.INFO: 61.5 MB #Memory Used# [2025-02-17 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:53:05 [end_date_ymd] => 2025-02-17 20:53:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 17:53:05' and `end` < '2025-02-17 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-02-17 20:53:18] Production.INFO: count ==4504 [2025-02-17 20:53:20] Production.ERROR: pbx CDR StartTime 2025-02-17 17:53:05 - End Time 2025-02-17 20:53:05 [2025-02-17 20:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498299', 'tblTempUsageDetail_20' ) start [2025-02-17 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498299', 'tblTempUsageDetail_20' ) end [2025-02-17 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498299', 'tblTempVendorCDR_20' ) start [2025-02-17 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498299', 'tblTempVendorCDR_20' ) end [2025-02-17 20:53:20] Production.INFO: ProcessCDR(1,14498299,1,1,2) [2025-02-17 20:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498299', 'tblTempUsageDetail_20' ) start [2025-02-17 20:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498299', 'tblTempUsageDetail_20' ) end [2025-02-17 20:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:53:24] Production.INFO: ==4396== Releasing lock... [2025-02-17 20:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:53:24] Production.INFO: 61.5 MB #Memory Used# [2025-02-17 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:54:05 [end_date_ymd] => 2025-02-17 20:54:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 17:54:05' and `end` < '2025-02-17 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-02-17 20:54:19] Production.INFO: count ==4503 [2025-02-17 20:54:21] Production.ERROR: pbx CDR StartTime 2025-02-17 17:54:05 - End Time 2025-02-17 20:54:05 [2025-02-17 20:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498304', 'tblTempUsageDetail_20' ) start [2025-02-17 20:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498304', 'tblTempUsageDetail_20' ) end [2025-02-17 20:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498304', 'tblTempVendorCDR_20' ) start [2025-02-17 20:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498304', 'tblTempVendorCDR_20' ) end [2025-02-17 20:54:21] Production.INFO: ProcessCDR(1,14498304,1,1,2) [2025-02-17 20:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498304', 'tblTempUsageDetail_20' ) start [2025-02-17 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498304', 'tblTempUsageDetail_20' ) end [2025-02-17 20:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:54:24] Production.INFO: ==4465== Releasing lock... [2025-02-17 20:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:54:24] Production.INFO: 61.5 MB #Memory Used# [2025-02-17 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:55:05 [end_date_ymd] => 2025-02-17 20:55:05 [RateCDR] => 1 ) [2025-02-17 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:55:05' and `end` < '2025-02-17 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:55:18] Production.INFO: count ==4503 [2025-02-17 20:55:20] Production.ERROR: pbx CDR StartTime 2025-02-17 17:55:05 - End Time 2025-02-17 20:55:05 [2025-02-17 20:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498309', 'tblTempUsageDetail_20' ) start [2025-02-17 20:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498309', 'tblTempUsageDetail_20' ) end [2025-02-17 20:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498309', 'tblTempVendorCDR_20' ) start [2025-02-17 20:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498309', 'tblTempVendorCDR_20' ) end [2025-02-17 20:55:20] Production.INFO: ProcessCDR(1,14498309,1,1,2) [2025-02-17 20:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498309', 'tblTempUsageDetail_20' ) start [2025-02-17 20:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498309', 'tblTempUsageDetail_20' ) end [2025-02-17 20:55:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:55:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:55:25] Production.INFO: ==4538== Releasing lock... [2025-02-17 20:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:55:25] Production.INFO: 61.5 MB #Memory Used# [2025-02-17 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:56:05 [end_date_ymd] => 2025-02-17 20:56:05 [RateCDR] => 1 ) [2025-02-17 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:56:05' and `end` < '2025-02-17 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:56:18] Production.INFO: count ==4504 [2025-02-17 20:56:20] Production.ERROR: pbx CDR StartTime 2025-02-17 17:56:05 - End Time 2025-02-17 20:56:05 [2025-02-17 20:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498314', 'tblTempUsageDetail_20' ) start [2025-02-17 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498314', 'tblTempUsageDetail_20' ) end [2025-02-17 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498314', 'tblTempVendorCDR_20' ) start [2025-02-17 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498314', 'tblTempVendorCDR_20' ) end [2025-02-17 20:56:20] Production.INFO: ProcessCDR(1,14498314,1,1,2) [2025-02-17 20:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498314', 'tblTempUsageDetail_20' ) start [2025-02-17 20:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498314', 'tblTempUsageDetail_20' ) end [2025-02-17 20:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:56:25] Production.INFO: ==4620== Releasing lock... [2025-02-17 20:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:56:25] Production.INFO: 61.5 MB #Memory Used# [2025-02-17 20:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:57:06 [end_date_ymd] => 2025-02-17 20:57:06 [RateCDR] => 1 ) [2025-02-17 20:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:57:06' and `end` < '2025-02-17 20:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:57:20] Production.INFO: count ==4498 [2025-02-17 20:57:22] Production.ERROR: pbx CDR StartTime 2025-02-17 17:57:06 - End Time 2025-02-17 20:57:06 [2025-02-17 20:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498319', 'tblTempUsageDetail_20' ) start [2025-02-17 20:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498319', 'tblTempUsageDetail_20' ) end [2025-02-17 20:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498319', 'tblTempVendorCDR_20' ) start [2025-02-17 20:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498319', 'tblTempVendorCDR_20' ) end [2025-02-17 20:57:22] Production.INFO: ProcessCDR(1,14498319,1,1,2) [2025-02-17 20:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498319', 'tblTempUsageDetail_20' ) start [2025-02-17 20:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498319', 'tblTempUsageDetail_20' ) end [2025-02-17 20:57:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:57:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:57:27] Production.INFO: ==4699== Releasing lock... [2025-02-17 20:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:57:27] Production.INFO: 61.5 MB #Memory Used# [2025-02-17 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:58:05 [end_date_ymd] => 2025-02-17 20:58:05 [RateCDR] => 1 ) [2025-02-17 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:58:05' and `end` < '2025-02-17 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:58:18] Production.INFO: count ==4498 [2025-02-17 20:58:20] Production.ERROR: pbx CDR StartTime 2025-02-17 17:58:05 - End Time 2025-02-17 20:58:05 [2025-02-17 20:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498324', 'tblTempUsageDetail_20' ) start [2025-02-17 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498324', 'tblTempUsageDetail_20' ) end [2025-02-17 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498324', 'tblTempVendorCDR_20' ) start [2025-02-17 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498324', 'tblTempVendorCDR_20' ) end [2025-02-17 20:58:20] Production.INFO: ProcessCDR(1,14498324,1,1,2) [2025-02-17 20:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498324', 'tblTempUsageDetail_20' ) start [2025-02-17 20:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498324', 'tblTempUsageDetail_20' ) end [2025-02-17 20:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:58:24] Production.INFO: ==4772== Releasing lock... [2025-02-17 20:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:58:24] Production.INFO: 61.5 MB #Memory Used# [2025-02-17 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 17:59:05 [end_date_ymd] => 2025-02-17 20:59:05 [RateCDR] => 1 ) [2025-02-17 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 17:59:05' and `end` < '2025-02-17 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 20:59:20] Production.INFO: count ==4499 [2025-02-17 20:59:22] Production.ERROR: pbx CDR StartTime 2025-02-17 17:59:05 - End Time 2025-02-17 20:59:05 [2025-02-17 20:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 20:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498329', 'tblTempUsageDetail_20' ) start [2025-02-17 20:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498329', 'tblTempUsageDetail_20' ) end [2025-02-17 20:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498329', 'tblTempVendorCDR_20' ) start [2025-02-17 20:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498329', 'tblTempVendorCDR_20' ) end [2025-02-17 20:59:22] Production.INFO: ProcessCDR(1,14498329,1,1,2) [2025-02-17 20:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 20:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 20:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498329', 'tblTempUsageDetail_20' ) start [2025-02-17 20:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498329', 'tblTempUsageDetail_20' ) end [2025-02-17 20:59:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 20:59:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 20:59:27] Production.INFO: ==4847== Releasing lock... [2025-02-17 20:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 20:59:27] Production.INFO: 61.5 MB #Memory Used# [2025-02-17 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:00:05 [end_date_ymd] => 2025-02-17 21:00:05 [RateCDR] => 1 ) [2025-02-17 21:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:00:05' and `end` < '2025-02-17 21:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:00:20] Production.INFO: count ==4498 [2025-02-17 21:00:22] Production.ERROR: pbx CDR StartTime 2025-02-17 18:00:05 - End Time 2025-02-17 21:00:05 [2025-02-17 21:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498334', 'tblTempUsageDetail_20' ) start [2025-02-17 21:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498334', 'tblTempUsageDetail_20' ) end [2025-02-17 21:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498334', 'tblTempVendorCDR_20' ) start [2025-02-17 21:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498334', 'tblTempVendorCDR_20' ) end [2025-02-17 21:00:22] Production.INFO: ProcessCDR(1,14498334,1,1,2) [2025-02-17 21:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498334', 'tblTempUsageDetail_20' ) start [2025-02-17 21:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498334', 'tblTempUsageDetail_20' ) end [2025-02-17 21:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:00:26] Production.INFO: ==4924== Releasing lock... [2025-02-17 21:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:00:26] Production.INFO: 61.5 MB #Memory Used# [2025-02-17 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:01:05 [end_date_ymd] => 2025-02-17 21:01:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 18:01:05' and `end` < '2025-02-17 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-02-17 21:01:20] Production.INFO: count ==4455 [2025-02-17 21:01:21] Production.ERROR: pbx CDR StartTime 2025-02-17 18:01:05 - End Time 2025-02-17 21:01:05 [2025-02-17 21:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498340', 'tblTempUsageDetail_20' ) start [2025-02-17 21:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498340', 'tblTempUsageDetail_20' ) end [2025-02-17 21:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498340', 'tblTempVendorCDR_20' ) start [2025-02-17 21:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498340', 'tblTempVendorCDR_20' ) end [2025-02-17 21:01:22] Production.INFO: ProcessCDR(1,14498340,1,1,2) [2025-02-17 21:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498340', 'tblTempUsageDetail_20' ) start [2025-02-17 21:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498340', 'tblTempUsageDetail_20' ) end [2025-02-17 21:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:01:25] Production.INFO: ==5015== Releasing lock... [2025-02-17 21:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:01:25] Production.INFO: 61.25 MB #Memory Used# [2025-02-17 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:02:05 [end_date_ymd] => 2025-02-17 21:02:05 [RateCDR] => 1 ) [2025-02-17 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:02:05' and `end` < '2025-02-17 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:02:19] Production.INFO: count ==4452 [2025-02-17 21:02:21] Production.ERROR: pbx CDR StartTime 2025-02-17 18:02:05 - End Time 2025-02-17 21:02:05 [2025-02-17 21:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498345', 'tblTempUsageDetail_20' ) start [2025-02-17 21:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498345', 'tblTempUsageDetail_20' ) end [2025-02-17 21:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498345', 'tblTempVendorCDR_20' ) start [2025-02-17 21:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498345', 'tblTempVendorCDR_20' ) end [2025-02-17 21:02:21] Production.INFO: ProcessCDR(1,14498345,1,1,2) [2025-02-17 21:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498345', 'tblTempUsageDetail_20' ) start [2025-02-17 21:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498345', 'tblTempUsageDetail_20' ) end [2025-02-17 21:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:02:24] Production.INFO: ==5088== Releasing lock... [2025-02-17 21:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:02:24] Production.INFO: 61.25 MB #Memory Used# [2025-02-17 21:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:03:06 [end_date_ymd] => 2025-02-17 21:03:06 [RateCDR] => 1 ) [2025-02-17 21:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:03:06' and `end` < '2025-02-17 21:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:03:19] Production.INFO: count ==4451 [2025-02-17 21:03:21] Production.ERROR: pbx CDR StartTime 2025-02-17 18:03:06 - End Time 2025-02-17 21:03:06 [2025-02-17 21:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498350', 'tblTempUsageDetail_20' ) start [2025-02-17 21:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498350', 'tblTempUsageDetail_20' ) end [2025-02-17 21:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498350', 'tblTempVendorCDR_20' ) start [2025-02-17 21:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498350', 'tblTempVendorCDR_20' ) end [2025-02-17 21:03:22] Production.INFO: ProcessCDR(1,14498350,1,1,2) [2025-02-17 21:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498350', 'tblTempUsageDetail_20' ) start [2025-02-17 21:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498350', 'tblTempUsageDetail_20' ) end [2025-02-17 21:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:03:25] Production.INFO: ==5177== Releasing lock... [2025-02-17 21:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:03:25] Production.INFO: 61.25 MB #Memory Used# [2025-02-17 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:04:05 [end_date_ymd] => 2025-02-17 21:04:05 [RateCDR] => 1 ) [2025-02-17 21:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:04:05' and `end` < '2025-02-17 21:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:04:18] Production.INFO: count ==4453 [2025-02-17 21:04:20] Production.ERROR: pbx CDR StartTime 2025-02-17 18:04:05 - End Time 2025-02-17 21:04:05 [2025-02-17 21:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498355', 'tblTempUsageDetail_20' ) start [2025-02-17 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498355', 'tblTempUsageDetail_20' ) end [2025-02-17 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498355', 'tblTempVendorCDR_20' ) start [2025-02-17 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498355', 'tblTempVendorCDR_20' ) end [2025-02-17 21:04:20] Production.INFO: ProcessCDR(1,14498355,1,1,2) [2025-02-17 21:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498355', 'tblTempUsageDetail_20' ) start [2025-02-17 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498355', 'tblTempUsageDetail_20' ) end [2025-02-17 21:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:04:24] Production.INFO: ==5264== Releasing lock... [2025-02-17 21:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:04:24] Production.INFO: 61.25 MB #Memory Used# [2025-02-17 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:05:05 [end_date_ymd] => 2025-02-17 21:05:05 [RateCDR] => 1 ) [2025-02-17 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:05:05' and `end` < '2025-02-17 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:05:19] Production.INFO: count ==4451 [2025-02-17 21:05:21] Production.ERROR: pbx CDR StartTime 2025-02-17 18:05:05 - End Time 2025-02-17 21:05:05 [2025-02-17 21:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498360', 'tblTempUsageDetail_20' ) start [2025-02-17 21:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498360', 'tblTempUsageDetail_20' ) end [2025-02-17 21:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498360', 'tblTempVendorCDR_20' ) start [2025-02-17 21:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498360', 'tblTempVendorCDR_20' ) end [2025-02-17 21:05:21] Production.INFO: ProcessCDR(1,14498360,1,1,2) [2025-02-17 21:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498360', 'tblTempUsageDetail_20' ) start [2025-02-17 21:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498360', 'tblTempUsageDetail_20' ) end [2025-02-17 21:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:05:25] Production.INFO: ==5385== Releasing lock... [2025-02-17 21:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:05:25] Production.INFO: 61.25 MB #Memory Used# [2025-02-17 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:06:05 [end_date_ymd] => 2025-02-17 21:06:05 [RateCDR] => 1 ) [2025-02-17 21:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:06:05' and `end` < '2025-02-17 21:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:06:19] Production.INFO: count ==4439 [2025-02-17 21:06:20] Production.ERROR: pbx CDR StartTime 2025-02-17 18:06:05 - End Time 2025-02-17 21:06:05 [2025-02-17 21:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498365', 'tblTempUsageDetail_20' ) start [2025-02-17 21:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498365', 'tblTempUsageDetail_20' ) end [2025-02-17 21:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498365', 'tblTempVendorCDR_20' ) start [2025-02-17 21:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498365', 'tblTempVendorCDR_20' ) end [2025-02-17 21:06:21] Production.INFO: ProcessCDR(1,14498365,1,1,2) [2025-02-17 21:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498365', 'tblTempUsageDetail_20' ) start [2025-02-17 21:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498365', 'tblTempUsageDetail_20' ) end [2025-02-17 21:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:06:24] Production.INFO: ==5470== Releasing lock... [2025-02-17 21:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:06:24] Production.INFO: 61 MB #Memory Used# [2025-02-17 21:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:07:06 [end_date_ymd] => 2025-02-17 21:07:06 [RateCDR] => 1 ) [2025-02-17 21:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:07:06' and `end` < '2025-02-17 21:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:07:19] Production.INFO: count ==4423 [2025-02-17 21:07:21] Production.ERROR: pbx CDR StartTime 2025-02-17 18:07:06 - End Time 2025-02-17 21:07:06 [2025-02-17 21:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498370', 'tblTempUsageDetail_20' ) start [2025-02-17 21:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498370', 'tblTempUsageDetail_20' ) end [2025-02-17 21:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498370', 'tblTempVendorCDR_20' ) start [2025-02-17 21:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498370', 'tblTempVendorCDR_20' ) end [2025-02-17 21:07:21] Production.INFO: ProcessCDR(1,14498370,1,1,2) [2025-02-17 21:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498370', 'tblTempUsageDetail_20' ) start [2025-02-17 21:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498370', 'tblTempUsageDetail_20' ) end [2025-02-17 21:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:07:24] Production.INFO: ==5557== Releasing lock... [2025-02-17 21:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:07:24] Production.INFO: 61 MB #Memory Used# [2025-02-17 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:08:05 [end_date_ymd] => 2025-02-17 21:08:05 [RateCDR] => 1 ) [2025-02-17 21:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:08:05' and `end` < '2025-02-17 21:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:08:18] Production.INFO: count ==4416 [2025-02-17 21:08:20] Production.ERROR: pbx CDR StartTime 2025-02-17 18:08:05 - End Time 2025-02-17 21:08:05 [2025-02-17 21:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498375', 'tblTempUsageDetail_20' ) start [2025-02-17 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498375', 'tblTempUsageDetail_20' ) end [2025-02-17 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498375', 'tblTempVendorCDR_20' ) start [2025-02-17 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498375', 'tblTempVendorCDR_20' ) end [2025-02-17 21:08:20] Production.INFO: ProcessCDR(1,14498375,1,1,2) [2025-02-17 21:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498375', 'tblTempUsageDetail_20' ) start [2025-02-17 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498375', 'tblTempUsageDetail_20' ) end [2025-02-17 21:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:08:24] Production.INFO: ==5635== Releasing lock... [2025-02-17 21:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:08:24] Production.INFO: 61 MB #Memory Used# [2025-02-17 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:09:05 [end_date_ymd] => 2025-02-17 21:09:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 18:09:05' and `end` < '2025-02-17 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-02-17 21:09:19] Production.INFO: count ==4403 [2025-02-17 21:09:21] Production.ERROR: pbx CDR StartTime 2025-02-17 18:09:05 - End Time 2025-02-17 21:09:05 [2025-02-17 21:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498380', 'tblTempUsageDetail_20' ) start [2025-02-17 21:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498380', 'tblTempUsageDetail_20' ) end [2025-02-17 21:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498380', 'tblTempVendorCDR_20' ) start [2025-02-17 21:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498380', 'tblTempVendorCDR_20' ) end [2025-02-17 21:09:22] Production.INFO: ProcessCDR(1,14498380,1,1,2) [2025-02-17 21:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498380', 'tblTempUsageDetail_20' ) start [2025-02-17 21:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498380', 'tblTempUsageDetail_20' ) end [2025-02-17 21:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:09:26] Production.INFO: ==5716== Releasing lock... [2025-02-17 21:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:09:26] Production.INFO: 60.75 MB #Memory Used# [2025-02-17 21:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:10:05 [end_date_ymd] => 2025-02-17 21:10:05 [RateCDR] => 1 ) [2025-02-17 21:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:10:05' and `end` < '2025-02-17 21:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:10:19] Production.INFO: count ==4401 [2025-02-17 21:10:21] Production.ERROR: pbx CDR StartTime 2025-02-17 18:10:05 - End Time 2025-02-17 21:10:05 [2025-02-17 21:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498385', 'tblTempUsageDetail_20' ) start [2025-02-17 21:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498385', 'tblTempUsageDetail_20' ) end [2025-02-17 21:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498385', 'tblTempVendorCDR_20' ) start [2025-02-17 21:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498385', 'tblTempVendorCDR_20' ) end [2025-02-17 21:10:21] Production.INFO: ProcessCDR(1,14498385,1,1,2) [2025-02-17 21:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498385', 'tblTempUsageDetail_20' ) start [2025-02-17 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498385', 'tblTempUsageDetail_20' ) end [2025-02-17 21:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:10:24] Production.INFO: ==5800== Releasing lock... [2025-02-17 21:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:10:24] Production.INFO: 60.75 MB #Memory Used# [2025-02-17 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:11:05 [end_date_ymd] => 2025-02-17 21:11:05 [RateCDR] => 1 ) [2025-02-17 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:11:05' and `end` < '2025-02-17 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:11:18] Production.INFO: count ==4343 [2025-02-17 21:11:20] Production.ERROR: pbx CDR StartTime 2025-02-17 18:11:05 - End Time 2025-02-17 21:11:05 [2025-02-17 21:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498391', 'tblTempUsageDetail_20' ) start [2025-02-17 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498391', 'tblTempUsageDetail_20' ) end [2025-02-17 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498391', 'tblTempVendorCDR_20' ) start [2025-02-17 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498391', 'tblTempVendorCDR_20' ) end [2025-02-17 21:11:20] Production.INFO: ProcessCDR(1,14498391,1,1,2) [2025-02-17 21:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498391', 'tblTempUsageDetail_20' ) start [2025-02-17 21:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498391', 'tblTempUsageDetail_20' ) end [2025-02-17 21:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:11:24] Production.INFO: ==5883== Releasing lock... [2025-02-17 21:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:11:24] Production.INFO: 60.5 MB #Memory Used# [2025-02-17 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:12:05 [end_date_ymd] => 2025-02-17 21:12:05 [RateCDR] => 1 ) [2025-02-17 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:12:05' and `end` < '2025-02-17 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:12:18] Production.INFO: count ==4343 [2025-02-17 21:12:20] Production.ERROR: pbx CDR StartTime 2025-02-17 18:12:05 - End Time 2025-02-17 21:12:05 [2025-02-17 21:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498396', 'tblTempUsageDetail_20' ) start [2025-02-17 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498396', 'tblTempUsageDetail_20' ) end [2025-02-17 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498396', 'tblTempVendorCDR_20' ) start [2025-02-17 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498396', 'tblTempVendorCDR_20' ) end [2025-02-17 21:12:20] Production.INFO: ProcessCDR(1,14498396,1,1,2) [2025-02-17 21:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498396', 'tblTempUsageDetail_20' ) start [2025-02-17 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498396', 'tblTempUsageDetail_20' ) end [2025-02-17 21:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:12:23] Production.INFO: ==5968== Releasing lock... [2025-02-17 21:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:12:23] Production.INFO: 60.5 MB #Memory Used# [2025-02-17 21:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:13:06 [end_date_ymd] => 2025-02-17 21:13:06 [RateCDR] => 1 ) [2025-02-17 21:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:13:06' and `end` < '2025-02-17 21:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:13:19] Production.INFO: count ==4343 [2025-02-17 21:13:21] Production.ERROR: pbx CDR StartTime 2025-02-17 18:13:06 - End Time 2025-02-17 21:13:06 [2025-02-17 21:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498401', 'tblTempUsageDetail_20' ) start [2025-02-17 21:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498401', 'tblTempUsageDetail_20' ) end [2025-02-17 21:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498401', 'tblTempVendorCDR_20' ) start [2025-02-17 21:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498401', 'tblTempVendorCDR_20' ) end [2025-02-17 21:13:21] Production.INFO: ProcessCDR(1,14498401,1,1,2) [2025-02-17 21:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498401', 'tblTempUsageDetail_20' ) start [2025-02-17 21:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498401', 'tblTempUsageDetail_20' ) end [2025-02-17 21:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:13:24] Production.INFO: ==6050== Releasing lock... [2025-02-17 21:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:13:24] Production.INFO: 60.5 MB #Memory Used# [2025-02-17 21:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:14:06 [end_date_ymd] => 2025-02-17 21:14:06 [RateCDR] => 1 ) [2025-02-17 21:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:14:06' and `end` < '2025-02-17 21:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:14:20] Production.INFO: count ==4343 [2025-02-17 21:14:21] Production.ERROR: pbx CDR StartTime 2025-02-17 18:14:06 - End Time 2025-02-17 21:14:06 [2025-02-17 21:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498406', 'tblTempUsageDetail_20' ) start [2025-02-17 21:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498406', 'tblTempUsageDetail_20' ) end [2025-02-17 21:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498406', 'tblTempVendorCDR_20' ) start [2025-02-17 21:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498406', 'tblTempVendorCDR_20' ) end [2025-02-17 21:14:22] Production.INFO: ProcessCDR(1,14498406,1,1,2) [2025-02-17 21:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498406', 'tblTempUsageDetail_20' ) start [2025-02-17 21:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498406', 'tblTempUsageDetail_20' ) end [2025-02-17 21:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:14:25] Production.INFO: ==6135== Releasing lock... [2025-02-17 21:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:14:25] Production.INFO: 60.5 MB #Memory Used# [2025-02-17 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:15:05 [end_date_ymd] => 2025-02-17 21:15:05 [RateCDR] => 1 ) [2025-02-17 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:15:05' and `end` < '2025-02-17 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:15:18] Production.INFO: count ==4343 [2025-02-17 21:15:20] Production.ERROR: pbx CDR StartTime 2025-02-17 18:15:05 - End Time 2025-02-17 21:15:05 [2025-02-17 21:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498411', 'tblTempUsageDetail_20' ) start [2025-02-17 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498411', 'tblTempUsageDetail_20' ) end [2025-02-17 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498411', 'tblTempVendorCDR_20' ) start [2025-02-17 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498411', 'tblTempVendorCDR_20' ) end [2025-02-17 21:15:20] Production.INFO: ProcessCDR(1,14498411,1,1,2) [2025-02-17 21:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498411', 'tblTempUsageDetail_20' ) start [2025-02-17 21:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498411', 'tblTempUsageDetail_20' ) end [2025-02-17 21:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:15:24] Production.INFO: ==6219== Releasing lock... [2025-02-17 21:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:15:24] Production.INFO: 60.5 MB #Memory Used# [2025-02-17 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:16:05 [end_date_ymd] => 2025-02-17 21:16:05 [RateCDR] => 1 ) [2025-02-17 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:16:05' and `end` < '2025-02-17 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:16:19] Production.INFO: count ==4336 [2025-02-17 21:16:20] Production.ERROR: pbx CDR StartTime 2025-02-17 18:16:05 - End Time 2025-02-17 21:16:05 [2025-02-17 21:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498416', 'tblTempUsageDetail_20' ) start [2025-02-17 21:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498416', 'tblTempUsageDetail_20' ) end [2025-02-17 21:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498416', 'tblTempVendorCDR_20' ) start [2025-02-17 21:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498416', 'tblTempVendorCDR_20' ) end [2025-02-17 21:16:21] Production.INFO: ProcessCDR(1,14498416,1,1,2) [2025-02-17 21:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498416', 'tblTempUsageDetail_20' ) start [2025-02-17 21:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498416', 'tblTempUsageDetail_20' ) end [2025-02-17 21:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:16:24] Production.INFO: ==6304== Releasing lock... [2025-02-17 21:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:16:24] Production.INFO: 60.25 MB #Memory Used# [2025-02-17 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:17:05 [end_date_ymd] => 2025-02-17 21:17:05 [RateCDR] => 1 ) [2025-02-17 21:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:17:05' and `end` < '2025-02-17 21:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:17:19] Production.INFO: count ==4325 [2025-02-17 21:17:21] Production.ERROR: pbx CDR StartTime 2025-02-17 18:17:05 - End Time 2025-02-17 21:17:05 [2025-02-17 21:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498421', 'tblTempUsageDetail_20' ) start [2025-02-17 21:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498421', 'tblTempUsageDetail_20' ) end [2025-02-17 21:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498421', 'tblTempVendorCDR_20' ) start [2025-02-17 21:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498421', 'tblTempVendorCDR_20' ) end [2025-02-17 21:17:21] Production.INFO: ProcessCDR(1,14498421,1,1,2) [2025-02-17 21:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498421', 'tblTempUsageDetail_20' ) start [2025-02-17 21:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498421', 'tblTempUsageDetail_20' ) end [2025-02-17 21:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:17:26] Production.INFO: ==6389== Releasing lock... [2025-02-17 21:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:17:26] Production.INFO: 60.25 MB #Memory Used# [2025-02-17 21:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:18:06 [end_date_ymd] => 2025-02-17 21:18:06 [RateCDR] => 1 ) [2025-02-17 21:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:18:06' and `end` < '2025-02-17 21:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:18:20] Production.INFO: count ==4308 [2025-02-17 21:18:22] Production.ERROR: pbx CDR StartTime 2025-02-17 18:18:06 - End Time 2025-02-17 21:18:06 [2025-02-17 21:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498426', 'tblTempUsageDetail_20' ) start [2025-02-17 21:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498426', 'tblTempUsageDetail_20' ) end [2025-02-17 21:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498426', 'tblTempVendorCDR_20' ) start [2025-02-17 21:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498426', 'tblTempVendorCDR_20' ) end [2025-02-17 21:18:22] Production.INFO: ProcessCDR(1,14498426,1,1,2) [2025-02-17 21:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498426', 'tblTempUsageDetail_20' ) start [2025-02-17 21:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498426', 'tblTempUsageDetail_20' ) end [2025-02-17 21:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:18:25] Production.INFO: ==6472== Releasing lock... [2025-02-17 21:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:18:25] Production.INFO: 60 MB #Memory Used# [2025-02-17 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:19:05 [end_date_ymd] => 2025-02-17 21:19:05 [RateCDR] => 1 ) [2025-02-17 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:19:05' and `end` < '2025-02-17 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:19:19] Production.INFO: count ==4306 [2025-02-17 21:19:21] Production.ERROR: pbx CDR StartTime 2025-02-17 18:19:05 - End Time 2025-02-17 21:19:05 [2025-02-17 21:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498431', 'tblTempUsageDetail_20' ) start [2025-02-17 21:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498431', 'tblTempUsageDetail_20' ) end [2025-02-17 21:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498431', 'tblTempVendorCDR_20' ) start [2025-02-17 21:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498431', 'tblTempVendorCDR_20' ) end [2025-02-17 21:19:21] Production.INFO: ProcessCDR(1,14498431,1,1,2) [2025-02-17 21:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498431', 'tblTempUsageDetail_20' ) start [2025-02-17 21:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498431', 'tblTempUsageDetail_20' ) end [2025-02-17 21:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:19:24] Production.INFO: ==6554== Releasing lock... [2025-02-17 21:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:19:24] Production.INFO: 60 MB #Memory Used# [2025-02-17 21:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:20:07 [end_date_ymd] => 2025-02-17 21:20:07 [RateCDR] => 1 ) [2025-02-17 21:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:20:07' and `end` < '2025-02-17 21:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:20:20] Production.INFO: count ==4309 [2025-02-17 21:20:22] Production.ERROR: pbx CDR StartTime 2025-02-17 18:20:07 - End Time 2025-02-17 21:20:07 [2025-02-17 21:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498437', 'tblTempUsageDetail_20' ) start [2025-02-17 21:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498437', 'tblTempUsageDetail_20' ) end [2025-02-17 21:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498437', 'tblTempVendorCDR_20' ) start [2025-02-17 21:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498437', 'tblTempVendorCDR_20' ) end [2025-02-17 21:20:22] Production.INFO: ProcessCDR(1,14498437,1,1,2) [2025-02-17 21:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498437', 'tblTempUsageDetail_20' ) start [2025-02-17 21:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498437', 'tblTempUsageDetail_20' ) end [2025-02-17 21:20:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:20:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:20:26] Production.INFO: ==6647== Releasing lock... [2025-02-17 21:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:20:26] Production.INFO: 60.25 MB #Memory Used# [2025-02-17 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:21:05 [end_date_ymd] => 2025-02-17 21:21:05 [RateCDR] => 1 ) [2025-02-17 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:21:05' and `end` < '2025-02-17 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:21:18] Production.INFO: count ==4283 [2025-02-17 21:21:20] Production.ERROR: pbx CDR StartTime 2025-02-17 18:21:05 - End Time 2025-02-17 21:21:05 [2025-02-17 21:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498442', 'tblTempUsageDetail_20' ) start [2025-02-17 21:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498442', 'tblTempUsageDetail_20' ) end [2025-02-17 21:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498442', 'tblTempVendorCDR_20' ) start [2025-02-17 21:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498442', 'tblTempVendorCDR_20' ) end [2025-02-17 21:21:20] Production.INFO: ProcessCDR(1,14498442,1,1,2) [2025-02-17 21:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498442', 'tblTempUsageDetail_20' ) start [2025-02-17 21:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498442', 'tblTempUsageDetail_20' ) end [2025-02-17 21:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:21:25] Production.INFO: ==6750== Releasing lock... [2025-02-17 21:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:21:25] Production.INFO: 60 MB #Memory Used# [2025-02-17 21:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:22:06 [end_date_ymd] => 2025-02-17 21:22:06 [RateCDR] => 1 ) [2025-02-17 21:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:22:06' and `end` < '2025-02-17 21:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:22:19] Production.INFO: count ==4280 [2025-02-17 21:22:21] Production.ERROR: pbx CDR StartTime 2025-02-17 18:22:06 - End Time 2025-02-17 21:22:06 [2025-02-17 21:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498447', 'tblTempUsageDetail_20' ) start [2025-02-17 21:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498447', 'tblTempUsageDetail_20' ) end [2025-02-17 21:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498447', 'tblTempVendorCDR_20' ) start [2025-02-17 21:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498447', 'tblTempVendorCDR_20' ) end [2025-02-17 21:22:21] Production.INFO: ProcessCDR(1,14498447,1,1,2) [2025-02-17 21:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498447', 'tblTempUsageDetail_20' ) start [2025-02-17 21:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498447', 'tblTempUsageDetail_20' ) end [2025-02-17 21:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:22:26] Production.INFO: ==6833== Releasing lock... [2025-02-17 21:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:22:26] Production.INFO: 60 MB #Memory Used# [2025-02-17 21:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:23:04 [end_date_ymd] => 2025-02-17 21:23:04 [RateCDR] => 1 ) [2025-02-17 21:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:23:04' and `end` < '2025-02-17 21:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:23:18] Production.INFO: count ==4275 [2025-02-17 21:23:20] Production.ERROR: pbx CDR StartTime 2025-02-17 18:23:04 - End Time 2025-02-17 21:23:04 [2025-02-17 21:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498452', 'tblTempUsageDetail_20' ) start [2025-02-17 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498452', 'tblTempUsageDetail_20' ) end [2025-02-17 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498452', 'tblTempVendorCDR_20' ) start [2025-02-17 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498452', 'tblTempVendorCDR_20' ) end [2025-02-17 21:23:20] Production.INFO: ProcessCDR(1,14498452,1,1,2) [2025-02-17 21:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498452', 'tblTempUsageDetail_20' ) start [2025-02-17 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498452', 'tblTempUsageDetail_20' ) end [2025-02-17 21:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:23:23] Production.INFO: ==6911== Releasing lock... [2025-02-17 21:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:23:23] Production.INFO: 59.75 MB #Memory Used# [2025-02-17 21:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:24:06 [end_date_ymd] => 2025-02-17 21:24:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 18:24:06' and `end` < '2025-02-17 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-02-17 21:24:20] Production.INFO: count ==4265 [2025-02-17 21:24:21] Production.ERROR: pbx CDR StartTime 2025-02-17 18:24:06 - End Time 2025-02-17 21:24:06 [2025-02-17 21:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498457', 'tblTempUsageDetail_20' ) start [2025-02-17 21:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498457', 'tblTempUsageDetail_20' ) end [2025-02-17 21:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498457', 'tblTempVendorCDR_20' ) start [2025-02-17 21:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498457', 'tblTempVendorCDR_20' ) end [2025-02-17 21:24:22] Production.INFO: ProcessCDR(1,14498457,1,1,2) [2025-02-17 21:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498457', 'tblTempUsageDetail_20' ) start [2025-02-17 21:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498457', 'tblTempUsageDetail_20' ) end [2025-02-17 21:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:24:25] Production.INFO: ==6996== Releasing lock... [2025-02-17 21:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:24:25] Production.INFO: 59.75 MB #Memory Used# [2025-02-17 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:25:06 [end_date_ymd] => 2025-02-17 21:25:06 [RateCDR] => 1 ) [2025-02-17 21:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:25:06' and `end` < '2025-02-17 21:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:25:19] Production.INFO: count ==4247 [2025-02-17 21:25:21] Production.ERROR: pbx CDR StartTime 2025-02-17 18:25:06 - End Time 2025-02-17 21:25:06 [2025-02-17 21:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498462', 'tblTempUsageDetail_20' ) start [2025-02-17 21:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498462', 'tblTempUsageDetail_20' ) end [2025-02-17 21:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498462', 'tblTempVendorCDR_20' ) start [2025-02-17 21:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498462', 'tblTempVendorCDR_20' ) end [2025-02-17 21:25:21] Production.INFO: ProcessCDR(1,14498462,1,1,2) [2025-02-17 21:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498462', 'tblTempUsageDetail_20' ) start [2025-02-17 21:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498462', 'tblTempUsageDetail_20' ) end [2025-02-17 21:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:25:25] Production.INFO: ==7081== Releasing lock... [2025-02-17 21:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:25:25] Production.INFO: 59.75 MB #Memory Used# [2025-02-17 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:26:05 [end_date_ymd] => 2025-02-17 21:26:05 [RateCDR] => 1 ) [2025-02-17 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:26:05' and `end` < '2025-02-17 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:26:18] Production.INFO: count ==4241 [2025-02-17 21:26:20] Production.ERROR: pbx CDR StartTime 2025-02-17 18:26:05 - End Time 2025-02-17 21:26:05 [2025-02-17 21:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498467', 'tblTempUsageDetail_20' ) start [2025-02-17 21:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498467', 'tblTempUsageDetail_20' ) end [2025-02-17 21:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498467', 'tblTempVendorCDR_20' ) start [2025-02-17 21:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498467', 'tblTempVendorCDR_20' ) end [2025-02-17 21:26:20] Production.INFO: ProcessCDR(1,14498467,1,1,2) [2025-02-17 21:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498467', 'tblTempUsageDetail_20' ) start [2025-02-17 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498467', 'tblTempUsageDetail_20' ) end [2025-02-17 21:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:26:23] Production.INFO: ==7162== Releasing lock... [2025-02-17 21:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:26:23] Production.INFO: 59.5 MB #Memory Used# [2025-02-17 21:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:27:06 [end_date_ymd] => 2025-02-17 21:27:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 18:27:06' and `end` < '2025-02-17 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-02-17 21:27:19] Production.INFO: count ==4241 [2025-02-17 21:27:21] Production.ERROR: pbx CDR StartTime 2025-02-17 18:27:06 - End Time 2025-02-17 21:27:06 [2025-02-17 21:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498472', 'tblTempUsageDetail_20' ) start [2025-02-17 21:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498472', 'tblTempUsageDetail_20' ) end [2025-02-17 21:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498472', 'tblTempVendorCDR_20' ) start [2025-02-17 21:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498472', 'tblTempVendorCDR_20' ) end [2025-02-17 21:27:21] Production.INFO: ProcessCDR(1,14498472,1,1,2) [2025-02-17 21:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498472', 'tblTempUsageDetail_20' ) start [2025-02-17 21:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498472', 'tblTempUsageDetail_20' ) end [2025-02-17 21:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:27:24] Production.INFO: ==7237== Releasing lock... [2025-02-17 21:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:27:24] Production.INFO: 59.5 MB #Memory Used# [2025-02-17 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:28:05 [end_date_ymd] => 2025-02-17 21:28:05 [RateCDR] => 1 ) [2025-02-17 21:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:28:05' and `end` < '2025-02-17 21:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:28:18] Production.INFO: count ==4244 [2025-02-17 21:28:20] Production.ERROR: pbx CDR StartTime 2025-02-17 18:28:05 - End Time 2025-02-17 21:28:05 [2025-02-17 21:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498477', 'tblTempUsageDetail_20' ) start [2025-02-17 21:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498477', 'tblTempUsageDetail_20' ) end [2025-02-17 21:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498477', 'tblTempVendorCDR_20' ) start [2025-02-17 21:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498477', 'tblTempVendorCDR_20' ) end [2025-02-17 21:28:20] Production.INFO: ProcessCDR(1,14498477,1,1,2) [2025-02-17 21:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498477', 'tblTempUsageDetail_20' ) start [2025-02-17 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498477', 'tblTempUsageDetail_20' ) end [2025-02-17 21:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:28:24] Production.INFO: ==7313== Releasing lock... [2025-02-17 21:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:28:24] Production.INFO: 59.75 MB #Memory Used# [2025-02-17 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:29:05 [end_date_ymd] => 2025-02-17 21:29:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 18:29:05' and `end` < '2025-02-17 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-02-17 21:29:19] Production.INFO: count ==4244 [2025-02-17 21:29:21] Production.ERROR: pbx CDR StartTime 2025-02-17 18:29:05 - End Time 2025-02-17 21:29:05 [2025-02-17 21:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498482', 'tblTempUsageDetail_20' ) start [2025-02-17 21:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498482', 'tblTempUsageDetail_20' ) end [2025-02-17 21:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498482', 'tblTempVendorCDR_20' ) start [2025-02-17 21:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498482', 'tblTempVendorCDR_20' ) end [2025-02-17 21:29:21] Production.INFO: ProcessCDR(1,14498482,1,1,2) [2025-02-17 21:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498482', 'tblTempUsageDetail_20' ) start [2025-02-17 21:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498482', 'tblTempUsageDetail_20' ) end [2025-02-17 21:29:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:29:26] Production.INFO: ==7391== Releasing lock... [2025-02-17 21:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:29:26] Production.INFO: 59.75 MB #Memory Used# [2025-02-17 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:30:06 [end_date_ymd] => 2025-02-17 21:30:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 18:30:06' and `end` < '2025-02-17 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-02-17 21:30:19] Production.INFO: count ==4240 [2025-02-17 21:30:21] Production.ERROR: pbx CDR StartTime 2025-02-17 18:30:06 - End Time 2025-02-17 21:30:06 [2025-02-17 21:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498488', 'tblTempUsageDetail_20' ) start [2025-02-17 21:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498488', 'tblTempUsageDetail_20' ) end [2025-02-17 21:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498488', 'tblTempVendorCDR_20' ) start [2025-02-17 21:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498488', 'tblTempVendorCDR_20' ) end [2025-02-17 21:30:21] Production.INFO: ProcessCDR(1,14498488,1,1,2) [2025-02-17 21:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498488', 'tblTempUsageDetail_20' ) start [2025-02-17 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498488', 'tblTempUsageDetail_20' ) end [2025-02-17 21:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:30:24] Production.INFO: ==7480== Releasing lock... [2025-02-17 21:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:30:24] Production.INFO: 59.5 MB #Memory Used# [2025-02-17 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:31:05 [end_date_ymd] => 2025-02-17 21:31:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 18:31:05' and `end` < '2025-02-17 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-02-17 21:31:18] Production.INFO: count ==4211 [2025-02-17 21:31:20] Production.ERROR: pbx CDR StartTime 2025-02-17 18:31:05 - End Time 2025-02-17 21:31:05 [2025-02-17 21:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498493', 'tblTempUsageDetail_20' ) start [2025-02-17 21:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498493', 'tblTempUsageDetail_20' ) end [2025-02-17 21:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498493', 'tblTempVendorCDR_20' ) start [2025-02-17 21:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498493', 'tblTempVendorCDR_20' ) end [2025-02-17 21:31:20] Production.INFO: ProcessCDR(1,14498493,1,1,2) [2025-02-17 21:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498493', 'tblTempUsageDetail_20' ) start [2025-02-17 21:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498493', 'tblTempUsageDetail_20' ) end [2025-02-17 21:31:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:31:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:31:25] Production.INFO: ==7562== Releasing lock... [2025-02-17 21:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:31:25] Production.INFO: 59.5 MB #Memory Used# [2025-02-17 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:32:05 [end_date_ymd] => 2025-02-17 21:32:05 [RateCDR] => 1 ) [2025-02-17 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:32:05' and `end` < '2025-02-17 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:32:19] Production.INFO: count ==4210 [2025-02-17 21:32:21] Production.ERROR: pbx CDR StartTime 2025-02-17 18:32:05 - End Time 2025-02-17 21:32:05 [2025-02-17 21:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498498', 'tblTempUsageDetail_20' ) start [2025-02-17 21:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498498', 'tblTempUsageDetail_20' ) end [2025-02-17 21:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498498', 'tblTempVendorCDR_20' ) start [2025-02-17 21:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498498', 'tblTempVendorCDR_20' ) end [2025-02-17 21:32:21] Production.INFO: ProcessCDR(1,14498498,1,1,2) [2025-02-17 21:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498498', 'tblTempUsageDetail_20' ) start [2025-02-17 21:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498498', 'tblTempUsageDetail_20' ) end [2025-02-17 21:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:32:24] Production.INFO: ==7643== Releasing lock... [2025-02-17 21:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:32:24] Production.INFO: 59.5 MB #Memory Used# [2025-02-17 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:33:05 [end_date_ymd] => 2025-02-17 21:33:05 [RateCDR] => 1 ) [2025-02-17 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:33:05' and `end` < '2025-02-17 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:33:19] Production.INFO: count ==4200 [2025-02-17 21:33:21] Production.ERROR: pbx CDR StartTime 2025-02-17 18:33:05 - End Time 2025-02-17 21:33:05 [2025-02-17 21:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498503', 'tblTempUsageDetail_20' ) start [2025-02-17 21:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498503', 'tblTempUsageDetail_20' ) end [2025-02-17 21:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498503', 'tblTempVendorCDR_20' ) start [2025-02-17 21:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498503', 'tblTempVendorCDR_20' ) end [2025-02-17 21:33:21] Production.INFO: ProcessCDR(1,14498503,1,1,2) [2025-02-17 21:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498503', 'tblTempUsageDetail_20' ) start [2025-02-17 21:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498503', 'tblTempUsageDetail_20' ) end [2025-02-17 21:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:33:26] Production.INFO: ==7721== Releasing lock... [2025-02-17 21:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:33:26] Production.INFO: 59.25 MB #Memory Used# [2025-02-17 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:34:05 [end_date_ymd] => 2025-02-17 21:34:05 [RateCDR] => 1 ) [2025-02-17 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:34:05' and `end` < '2025-02-17 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:34:18] Production.INFO: count ==4184 [2025-02-17 21:34:20] Production.ERROR: pbx CDR StartTime 2025-02-17 18:34:05 - End Time 2025-02-17 21:34:05 [2025-02-17 21:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498508', 'tblTempUsageDetail_20' ) start [2025-02-17 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498508', 'tblTempUsageDetail_20' ) end [2025-02-17 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498508', 'tblTempVendorCDR_20' ) start [2025-02-17 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498508', 'tblTempVendorCDR_20' ) end [2025-02-17 21:34:20] Production.INFO: ProcessCDR(1,14498508,1,1,2) [2025-02-17 21:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498508', 'tblTempUsageDetail_20' ) start [2025-02-17 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498508', 'tblTempUsageDetail_20' ) end [2025-02-17 21:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:34:23] Production.INFO: ==7806== Releasing lock... [2025-02-17 21:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:34:23] Production.INFO: 59.25 MB #Memory Used# [2025-02-17 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:35:05 [end_date_ymd] => 2025-02-17 21:35:05 [RateCDR] => 1 ) [2025-02-17 21:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:35:05' and `end` < '2025-02-17 21:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:35:19] Production.INFO: count ==4185 [2025-02-17 21:35:21] Production.ERROR: pbx CDR StartTime 2025-02-17 18:35:05 - End Time 2025-02-17 21:35:05 [2025-02-17 21:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498513', 'tblTempUsageDetail_20' ) start [2025-02-17 21:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498513', 'tblTempUsageDetail_20' ) end [2025-02-17 21:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498513', 'tblTempVendorCDR_20' ) start [2025-02-17 21:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498513', 'tblTempVendorCDR_20' ) end [2025-02-17 21:35:21] Production.INFO: ProcessCDR(1,14498513,1,1,2) [2025-02-17 21:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498513', 'tblTempUsageDetail_20' ) start [2025-02-17 21:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498513', 'tblTempUsageDetail_20' ) end [2025-02-17 21:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:35:25] Production.INFO: ==7890== Releasing lock... [2025-02-17 21:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:35:25] Production.INFO: 59.25 MB #Memory Used# [2025-02-17 21:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:36:06 [end_date_ymd] => 2025-02-17 21:36:06 [RateCDR] => 1 ) [2025-02-17 21:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:36:06' and `end` < '2025-02-17 21:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:36:19] Production.INFO: count ==4186 [2025-02-17 21:36:21] Production.ERROR: pbx CDR StartTime 2025-02-17 18:36:06 - End Time 2025-02-17 21:36:06 [2025-02-17 21:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498518', 'tblTempUsageDetail_20' ) start [2025-02-17 21:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498518', 'tblTempUsageDetail_20' ) end [2025-02-17 21:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498518', 'tblTempVendorCDR_20' ) start [2025-02-17 21:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498518', 'tblTempVendorCDR_20' ) end [2025-02-17 21:36:21] Production.INFO: ProcessCDR(1,14498518,1,1,2) [2025-02-17 21:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498518', 'tblTempUsageDetail_20' ) start [2025-02-17 21:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498518', 'tblTempUsageDetail_20' ) end [2025-02-17 21:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:36:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:36:26] Production.INFO: ==8012== Releasing lock... [2025-02-17 21:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:36:26] Production.INFO: 59.25 MB #Memory Used# [2025-02-17 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:37:05 [end_date_ymd] => 2025-02-17 21:37:05 [RateCDR] => 1 ) [2025-02-17 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:37:05' and `end` < '2025-02-17 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:37:18] Production.INFO: count ==4176 [2025-02-17 21:37:20] Production.ERROR: pbx CDR StartTime 2025-02-17 18:37:05 - End Time 2025-02-17 21:37:05 [2025-02-17 21:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498523', 'tblTempUsageDetail_20' ) start [2025-02-17 21:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498523', 'tblTempUsageDetail_20' ) end [2025-02-17 21:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498523', 'tblTempVendorCDR_20' ) start [2025-02-17 21:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498523', 'tblTempVendorCDR_20' ) end [2025-02-17 21:37:21] Production.INFO: ProcessCDR(1,14498523,1,1,2) [2025-02-17 21:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498523', 'tblTempUsageDetail_20' ) start [2025-02-17 21:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498523', 'tblTempUsageDetail_20' ) end [2025-02-17 21:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:37:25] Production.INFO: ==8088== Releasing lock... [2025-02-17 21:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:37:25] Production.INFO: 59.25 MB #Memory Used# [2025-02-17 21:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:38:06 [end_date_ymd] => 2025-02-17 21:38:06 [RateCDR] => 1 ) [2025-02-17 21:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:38:06' and `end` < '2025-02-17 21:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:38:20] Production.INFO: count ==4056 [2025-02-17 21:38:21] Production.ERROR: pbx CDR StartTime 2025-02-17 18:38:06 - End Time 2025-02-17 21:38:06 [2025-02-17 21:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498528', 'tblTempUsageDetail_20' ) start [2025-02-17 21:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498528', 'tblTempUsageDetail_20' ) end [2025-02-17 21:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498528', 'tblTempVendorCDR_20' ) start [2025-02-17 21:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498528', 'tblTempVendorCDR_20' ) end [2025-02-17 21:38:22] Production.INFO: ProcessCDR(1,14498528,1,1,2) [2025-02-17 21:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498528', 'tblTempUsageDetail_20' ) start [2025-02-17 21:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498528', 'tblTempUsageDetail_20' ) end [2025-02-17 21:38:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:38:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:38:26] Production.INFO: ==8166== Releasing lock... [2025-02-17 21:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:38:26] Production.INFO: 58.25 MB #Memory Used# [2025-02-17 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:39:05 [end_date_ymd] => 2025-02-17 21:39:05 [RateCDR] => 1 ) [2025-02-17 21:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:39:05' and `end` < '2025-02-17 21:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:39:20] Production.INFO: count ==3920 [2025-02-17 21:39:22] Production.ERROR: pbx CDR StartTime 2025-02-17 18:39:05 - End Time 2025-02-17 21:39:05 [2025-02-17 21:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498533', 'tblTempUsageDetail_20' ) start [2025-02-17 21:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498533', 'tblTempUsageDetail_20' ) end [2025-02-17 21:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498533', 'tblTempVendorCDR_20' ) start [2025-02-17 21:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498533', 'tblTempVendorCDR_20' ) end [2025-02-17 21:39:22] Production.INFO: ProcessCDR(1,14498533,1,1,2) [2025-02-17 21:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498533', 'tblTempUsageDetail_20' ) start [2025-02-17 21:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498533', 'tblTempUsageDetail_20' ) end [2025-02-17 21:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:39:26] Production.INFO: ==8246== Releasing lock... [2025-02-17 21:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:39:26] Production.INFO: 57.25 MB #Memory Used# [2025-02-17 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:40:06 [end_date_ymd] => 2025-02-17 21:40:06 [RateCDR] => 1 ) [2025-02-17 21:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:40:06' and `end` < '2025-02-17 21:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:40:19] Production.INFO: count ==3769 [2025-02-17 21:40:21] Production.ERROR: pbx CDR StartTime 2025-02-17 18:40:06 - End Time 2025-02-17 21:40:06 [2025-02-17 21:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498538', 'tblTempUsageDetail_20' ) start [2025-02-17 21:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498538', 'tblTempUsageDetail_20' ) end [2025-02-17 21:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498538', 'tblTempVendorCDR_20' ) start [2025-02-17 21:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498538', 'tblTempVendorCDR_20' ) end [2025-02-17 21:40:21] Production.INFO: ProcessCDR(1,14498538,1,1,2) [2025-02-17 21:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498538', 'tblTempUsageDetail_20' ) start [2025-02-17 21:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498538', 'tblTempUsageDetail_20' ) end [2025-02-17 21:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:40:26] Production.INFO: ==8332== Releasing lock... [2025-02-17 21:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:40:26] Production.INFO: 56 MB #Memory Used# [2025-02-17 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:41:05 [end_date_ymd] => 2025-02-17 21:41:05 [RateCDR] => 1 ) [2025-02-17 21:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:41:05' and `end` < '2025-02-17 21:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:41:19] Production.INFO: count ==3578 [2025-02-17 21:41:21] Production.ERROR: pbx CDR StartTime 2025-02-17 18:41:05 - End Time 2025-02-17 21:41:05 [2025-02-17 21:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498544', 'tblTempUsageDetail_20' ) start [2025-02-17 21:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498544', 'tblTempUsageDetail_20' ) end [2025-02-17 21:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498544', 'tblTempVendorCDR_20' ) start [2025-02-17 21:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498544', 'tblTempVendorCDR_20' ) end [2025-02-17 21:41:21] Production.INFO: ProcessCDR(1,14498544,1,1,2) [2025-02-17 21:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498544', 'tblTempUsageDetail_20' ) start [2025-02-17 21:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498544', 'tblTempUsageDetail_20' ) end [2025-02-17 21:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:41:25] Production.INFO: ==8426== Releasing lock... [2025-02-17 21:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:41:25] Production.INFO: 54.75 MB #Memory Used# [2025-02-17 21:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:42:06 [end_date_ymd] => 2025-02-17 21:42:06 [RateCDR] => 1 ) [2025-02-17 21:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:42:06' and `end` < '2025-02-17 21:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:42:20] Production.INFO: count ==3420 [2025-02-17 21:42:21] Production.ERROR: pbx CDR StartTime 2025-02-17 18:42:06 - End Time 2025-02-17 21:42:06 [2025-02-17 21:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498549', 'tblTempUsageDetail_20' ) start [2025-02-17 21:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498549', 'tblTempUsageDetail_20' ) end [2025-02-17 21:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498549', 'tblTempVendorCDR_20' ) start [2025-02-17 21:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498549', 'tblTempVendorCDR_20' ) end [2025-02-17 21:42:21] Production.INFO: ProcessCDR(1,14498549,1,1,2) [2025-02-17 21:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498549', 'tblTempUsageDetail_20' ) start [2025-02-17 21:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498549', 'tblTempUsageDetail_20' ) end [2025-02-17 21:42:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:42:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:42:25] Production.INFO: ==8514== Releasing lock... [2025-02-17 21:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:42:25] Production.INFO: 54 MB #Memory Used# [2025-02-17 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:43:05 [end_date_ymd] => 2025-02-17 21:43:05 [RateCDR] => 1 ) [2025-02-17 21:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:43:05' and `end` < '2025-02-17 21:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:43:18] Production.INFO: count ==3276 [2025-02-17 21:43:20] Production.ERROR: pbx CDR StartTime 2025-02-17 18:43:05 - End Time 2025-02-17 21:43:05 [2025-02-17 21:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498554', 'tblTempUsageDetail_20' ) start [2025-02-17 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498554', 'tblTempUsageDetail_20' ) end [2025-02-17 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498554', 'tblTempVendorCDR_20' ) start [2025-02-17 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498554', 'tblTempVendorCDR_20' ) end [2025-02-17 21:43:20] Production.INFO: ProcessCDR(1,14498554,1,1,2) [2025-02-17 21:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498554', 'tblTempUsageDetail_20' ) start [2025-02-17 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498554', 'tblTempUsageDetail_20' ) end [2025-02-17 21:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:43:23] Production.INFO: ==8598== Releasing lock... [2025-02-17 21:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:43:23] Production.INFO: 52.25 MB #Memory Used# [2025-02-17 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:44:05 [end_date_ymd] => 2025-02-17 21:44:05 [RateCDR] => 1 ) [2025-02-17 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:44:05' and `end` < '2025-02-17 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:44:19] Production.INFO: count ==3121 [2025-02-17 21:44:20] Production.ERROR: pbx CDR StartTime 2025-02-17 18:44:05 - End Time 2025-02-17 21:44:05 [2025-02-17 21:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498559', 'tblTempUsageDetail_20' ) start [2025-02-17 21:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498559', 'tblTempUsageDetail_20' ) end [2025-02-17 21:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498559', 'tblTempVendorCDR_20' ) start [2025-02-17 21:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498559', 'tblTempVendorCDR_20' ) end [2025-02-17 21:44:20] Production.INFO: ProcessCDR(1,14498559,1,1,2) [2025-02-17 21:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498559', 'tblTempUsageDetail_20' ) start [2025-02-17 21:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498559', 'tblTempUsageDetail_20' ) end [2025-02-17 21:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:44:24] Production.INFO: ==8680== Releasing lock... [2025-02-17 21:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:44:24] Production.INFO: 51.25 MB #Memory Used# [2025-02-17 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:45:05 [end_date_ymd] => 2025-02-17 21:45:05 [RateCDR] => 1 ) [2025-02-17 21:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:45:05' and `end` < '2025-02-17 21:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:45:18] Production.INFO: count ==2955 [2025-02-17 21:45:19] Production.ERROR: pbx CDR StartTime 2025-02-17 18:45:05 - End Time 2025-02-17 21:45:05 [2025-02-17 21:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498564', 'tblTempUsageDetail_20' ) start [2025-02-17 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498564', 'tblTempUsageDetail_20' ) end [2025-02-17 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498564', 'tblTempVendorCDR_20' ) start [2025-02-17 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498564', 'tblTempVendorCDR_20' ) end [2025-02-17 21:45:19] Production.INFO: ProcessCDR(1,14498564,1,1,2) [2025-02-17 21:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498564', 'tblTempUsageDetail_20' ) start [2025-02-17 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498564', 'tblTempUsageDetail_20' ) end [2025-02-17 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:45:22] Production.INFO: ==8762== Releasing lock... [2025-02-17 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:45:22] Production.INFO: 50.75 MB #Memory Used# [2025-02-17 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:46:05 [end_date_ymd] => 2025-02-17 21:46:05 [RateCDR] => 1 ) [2025-02-17 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:46:05' and `end` < '2025-02-17 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:46:18] Production.INFO: count ==2818 [2025-02-17 21:46:20] Production.ERROR: pbx CDR StartTime 2025-02-17 18:46:05 - End Time 2025-02-17 21:46:05 [2025-02-17 21:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498569', 'tblTempUsageDetail_20' ) start [2025-02-17 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498569', 'tblTempUsageDetail_20' ) end [2025-02-17 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498569', 'tblTempVendorCDR_20' ) start [2025-02-17 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498569', 'tblTempVendorCDR_20' ) end [2025-02-17 21:46:20] Production.INFO: ProcessCDR(1,14498569,1,1,2) [2025-02-17 21:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498569', 'tblTempUsageDetail_20' ) start [2025-02-17 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498569', 'tblTempUsageDetail_20' ) end [2025-02-17 21:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:46:23] Production.INFO: ==8832== Releasing lock... [2025-02-17 21:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:46:23] Production.INFO: 48.75 MB #Memory Used# [2025-02-17 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:47:05 [end_date_ymd] => 2025-02-17 21:47:05 [RateCDR] => 1 ) [2025-02-17 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:47:05' and `end` < '2025-02-17 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:47:19] Production.INFO: count ==2676 [2025-02-17 21:47:20] Production.ERROR: pbx CDR StartTime 2025-02-17 18:47:05 - End Time 2025-02-17 21:47:05 [2025-02-17 21:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498574', 'tblTempUsageDetail_20' ) start [2025-02-17 21:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498574', 'tblTempUsageDetail_20' ) end [2025-02-17 21:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498574', 'tblTempVendorCDR_20' ) start [2025-02-17 21:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498574', 'tblTempVendorCDR_20' ) end [2025-02-17 21:47:20] Production.INFO: ProcessCDR(1,14498574,1,1,2) [2025-02-17 21:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498574', 'tblTempUsageDetail_20' ) start [2025-02-17 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498574', 'tblTempUsageDetail_20' ) end [2025-02-17 21:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:47:23] Production.INFO: ==8902== Releasing lock... [2025-02-17 21:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:47:23] Production.INFO: 48 MB #Memory Used# [2025-02-17 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:48:05 [end_date_ymd] => 2025-02-17 21:48:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 18:48:05' and `end` < '2025-02-17 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-02-17 21:48:18] Production.INFO: count ==2580 [2025-02-17 21:48:19] Production.ERROR: pbx CDR StartTime 2025-02-17 18:48:05 - End Time 2025-02-17 21:48:05 [2025-02-17 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498579', 'tblTempUsageDetail_20' ) start [2025-02-17 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498579', 'tblTempUsageDetail_20' ) end [2025-02-17 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498579', 'tblTempVendorCDR_20' ) start [2025-02-17 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498579', 'tblTempVendorCDR_20' ) end [2025-02-17 21:48:19] Production.INFO: ProcessCDR(1,14498579,1,1,2) [2025-02-17 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498579', 'tblTempUsageDetail_20' ) start [2025-02-17 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498579', 'tblTempUsageDetail_20' ) end [2025-02-17 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:48:22] Production.INFO: ==8977== Releasing lock... [2025-02-17 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:48:22] Production.INFO: 47.5 MB #Memory Used# [2025-02-17 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:49:05 [end_date_ymd] => 2025-02-17 21:49:05 [RateCDR] => 1 ) [2025-02-17 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:49:05' and `end` < '2025-02-17 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:49:19] Production.INFO: count ==2454 [2025-02-17 21:49:20] Production.ERROR: pbx CDR StartTime 2025-02-17 18:49:05 - End Time 2025-02-17 21:49:05 [2025-02-17 21:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498584', 'tblTempUsageDetail_20' ) start [2025-02-17 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498584', 'tblTempUsageDetail_20' ) end [2025-02-17 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498584', 'tblTempVendorCDR_20' ) start [2025-02-17 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498584', 'tblTempVendorCDR_20' ) end [2025-02-17 21:49:20] Production.INFO: ProcessCDR(1,14498584,1,1,2) [2025-02-17 21:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498584', 'tblTempUsageDetail_20' ) start [2025-02-17 21:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498584', 'tblTempUsageDetail_20' ) end [2025-02-17 21:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:49:24] Production.INFO: ==9048== Releasing lock... [2025-02-17 21:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:49:24] Production.INFO: 46.5 MB #Memory Used# [2025-02-17 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:50:06 [end_date_ymd] => 2025-02-17 21:50:06 [RateCDR] => 1 ) [2025-02-17 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:50:06' and `end` < '2025-02-17 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:50:19] Production.INFO: count ==2406 [2025-02-17 21:50:20] Production.ERROR: pbx CDR StartTime 2025-02-17 18:50:06 - End Time 2025-02-17 21:50:06 [2025-02-17 21:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498590', 'tblTempUsageDetail_20' ) start [2025-02-17 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498590', 'tblTempUsageDetail_20' ) end [2025-02-17 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498590', 'tblTempVendorCDR_20' ) start [2025-02-17 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498590', 'tblTempVendorCDR_20' ) end [2025-02-17 21:50:20] Production.INFO: ProcessCDR(1,14498590,1,1,2) [2025-02-17 21:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498590', 'tblTempUsageDetail_20' ) start [2025-02-17 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498590', 'tblTempUsageDetail_20' ) end [2025-02-17 21:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:50:24] Production.INFO: ==9122== Releasing lock... [2025-02-17 21:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:50:24] Production.INFO: 46 MB #Memory Used# [2025-02-17 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:51:05 [end_date_ymd] => 2025-02-17 21:51:05 [RateCDR] => 1 ) [2025-02-17 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:51:05' and `end` < '2025-02-17 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:51:18] Production.INFO: count ==2347 [2025-02-17 21:51:19] Production.ERROR: pbx CDR StartTime 2025-02-17 18:51:05 - End Time 2025-02-17 21:51:05 [2025-02-17 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498595', 'tblTempUsageDetail_20' ) start [2025-02-17 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498595', 'tblTempUsageDetail_20' ) end [2025-02-17 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498595', 'tblTempVendorCDR_20' ) start [2025-02-17 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498595', 'tblTempVendorCDR_20' ) end [2025-02-17 21:51:19] Production.INFO: ProcessCDR(1,14498595,1,1,2) [2025-02-17 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498595', 'tblTempUsageDetail_20' ) start [2025-02-17 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498595', 'tblTempUsageDetail_20' ) end [2025-02-17 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:51:22] Production.INFO: ==9233== Releasing lock... [2025-02-17 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:51:22] Production.INFO: 45.75 MB #Memory Used# [2025-02-17 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:52:05 [end_date_ymd] => 2025-02-17 21:52:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 18:52:05' and `end` < '2025-02-17 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-02-17 21:52:19] Production.INFO: count ==2294 [2025-02-17 21:52:19] Production.ERROR: pbx CDR StartTime 2025-02-17 18:52:05 - End Time 2025-02-17 21:52:05 [2025-02-17 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498600', 'tblTempUsageDetail_20' ) start [2025-02-17 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498600', 'tblTempUsageDetail_20' ) end [2025-02-17 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498600', 'tblTempVendorCDR_20' ) start [2025-02-17 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498600', 'tblTempVendorCDR_20' ) end [2025-02-17 21:52:19] Production.INFO: ProcessCDR(1,14498600,1,1,2) [2025-02-17 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498600', 'tblTempUsageDetail_20' ) start [2025-02-17 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498600', 'tblTempUsageDetail_20' ) end [2025-02-17 21:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:52:23] Production.INFO: ==9302== Releasing lock... [2025-02-17 21:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:52:23] Production.INFO: 45.5 MB #Memory Used# [2025-02-17 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:53:05 [end_date_ymd] => 2025-02-17 21:53:05 [RateCDR] => 1 ) [2025-02-17 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:53:05' and `end` < '2025-02-17 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:53:19] Production.INFO: count ==2211 [2025-02-17 21:53:20] Production.ERROR: pbx CDR StartTime 2025-02-17 18:53:05 - End Time 2025-02-17 21:53:05 [2025-02-17 21:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498605', 'tblTempUsageDetail_20' ) start [2025-02-17 21:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498605', 'tblTempUsageDetail_20' ) end [2025-02-17 21:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498605', 'tblTempVendorCDR_20' ) start [2025-02-17 21:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498605', 'tblTempVendorCDR_20' ) end [2025-02-17 21:53:20] Production.INFO: ProcessCDR(1,14498605,1,1,2) [2025-02-17 21:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498605', 'tblTempUsageDetail_20' ) start [2025-02-17 21:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498605', 'tblTempUsageDetail_20' ) end [2025-02-17 21:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:53:24] Production.INFO: ==9373== Releasing lock... [2025-02-17 21:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:53:24] Production.INFO: 45 MB #Memory Used# [2025-02-17 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:54:05 [end_date_ymd] => 2025-02-17 21:54:05 [RateCDR] => 1 ) [2025-02-17 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:54:05' and `end` < '2025-02-17 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:54:20] Production.INFO: count ==2161 [2025-02-17 21:54:21] Production.ERROR: pbx CDR StartTime 2025-02-17 18:54:05 - End Time 2025-02-17 21:54:05 [2025-02-17 21:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498610', 'tblTempUsageDetail_20' ) start [2025-02-17 21:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498610', 'tblTempUsageDetail_20' ) end [2025-02-17 21:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498610', 'tblTempVendorCDR_20' ) start [2025-02-17 21:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498610', 'tblTempVendorCDR_20' ) end [2025-02-17 21:54:21] Production.INFO: ProcessCDR(1,14498610,1,1,2) [2025-02-17 21:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498610', 'tblTempUsageDetail_20' ) start [2025-02-17 21:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498610', 'tblTempUsageDetail_20' ) end [2025-02-17 21:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:54:25] Production.INFO: ==9448== Releasing lock... [2025-02-17 21:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:54:25] Production.INFO: 44.25 MB #Memory Used# [2025-02-17 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:55:05 [end_date_ymd] => 2025-02-17 21:55:05 [RateCDR] => 1 ) [2025-02-17 21:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:55:05' and `end` < '2025-02-17 21:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:55:18] Production.INFO: count ==2072 [2025-02-17 21:55:19] Production.ERROR: pbx CDR StartTime 2025-02-17 18:55:05 - End Time 2025-02-17 21:55:05 [2025-02-17 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498615', 'tblTempUsageDetail_20' ) start [2025-02-17 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498615', 'tblTempUsageDetail_20' ) end [2025-02-17 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498615', 'tblTempVendorCDR_20' ) start [2025-02-17 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498615', 'tblTempVendorCDR_20' ) end [2025-02-17 21:55:19] Production.INFO: ProcessCDR(1,14498615,1,1,2) [2025-02-17 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498615', 'tblTempUsageDetail_20' ) start [2025-02-17 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498615', 'tblTempUsageDetail_20' ) end [2025-02-17 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:55:22] Production.INFO: ==9523== Releasing lock... [2025-02-17 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:55:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-17 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:56:05 [end_date_ymd] => 2025-02-17 21:56:05 [RateCDR] => 1 ) [2025-02-17 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:56:05' and `end` < '2025-02-17 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:56:18] Production.INFO: count ==1992 [2025-02-17 21:56:19] Production.ERROR: pbx CDR StartTime 2025-02-17 18:56:05 - End Time 2025-02-17 21:56:05 [2025-02-17 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498620', 'tblTempUsageDetail_20' ) start [2025-02-17 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498620', 'tblTempUsageDetail_20' ) end [2025-02-17 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498620', 'tblTempVendorCDR_20' ) start [2025-02-17 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498620', 'tblTempVendorCDR_20' ) end [2025-02-17 21:56:19] Production.INFO: ProcessCDR(1,14498620,1,1,2) [2025-02-17 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498620', 'tblTempUsageDetail_20' ) start [2025-02-17 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498620', 'tblTempUsageDetail_20' ) end [2025-02-17 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:56:22] Production.INFO: ==9598== Releasing lock... [2025-02-17 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:56:22] Production.INFO: 43 MB #Memory Used# [2025-02-17 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:57:05 [end_date_ymd] => 2025-02-17 21:57:05 [RateCDR] => 1 ) [2025-02-17 21:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:57:05' and `end` < '2025-02-17 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:57:18] Production.INFO: count ==1908 [2025-02-17 21:57:19] Production.ERROR: pbx CDR StartTime 2025-02-17 18:57:05 - End Time 2025-02-17 21:57:05 [2025-02-17 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498625', 'tblTempUsageDetail_20' ) start [2025-02-17 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498625', 'tblTempUsageDetail_20' ) end [2025-02-17 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498625', 'tblTempVendorCDR_20' ) start [2025-02-17 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498625', 'tblTempVendorCDR_20' ) end [2025-02-17 21:57:19] Production.INFO: ProcessCDR(1,14498625,1,1,2) [2025-02-17 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498625', 'tblTempUsageDetail_20' ) start [2025-02-17 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498625', 'tblTempUsageDetail_20' ) end [2025-02-17 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:57:22] Production.INFO: ==9669== Releasing lock... [2025-02-17 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:57:22] Production.INFO: 42.5 MB #Memory Used# [2025-02-17 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:58:05 [end_date_ymd] => 2025-02-17 21:58:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 18:58:05' and `end` < '2025-02-17 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-02-17 21:58:19] Production.INFO: count ==1824 [2025-02-17 21:58:20] Production.ERROR: pbx CDR StartTime 2025-02-17 18:58:05 - End Time 2025-02-17 21:58:05 [2025-02-17 21:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498630', 'tblTempUsageDetail_20' ) start [2025-02-17 21:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498630', 'tblTempUsageDetail_20' ) end [2025-02-17 21:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498630', 'tblTempVendorCDR_20' ) start [2025-02-17 21:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498630', 'tblTempVendorCDR_20' ) end [2025-02-17 21:58:20] Production.INFO: ProcessCDR(1,14498630,1,1,2) [2025-02-17 21:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498630', 'tblTempUsageDetail_20' ) start [2025-02-17 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498630', 'tblTempUsageDetail_20' ) end [2025-02-17 21:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:58:23] Production.INFO: ==9740== Releasing lock... [2025-02-17 21:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:58:23] Production.INFO: 42 MB #Memory Used# [2025-02-17 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 18:59:05 [end_date_ymd] => 2025-02-17 21:59:05 [RateCDR] => 1 ) [2025-02-17 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 18:59:05' and `end` < '2025-02-17 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 21:59:19] Production.INFO: count ==1734 [2025-02-17 21:59:20] Production.ERROR: pbx CDR StartTime 2025-02-17 18:59:05 - End Time 2025-02-17 21:59:05 [2025-02-17 21:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 21:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498635', 'tblTempUsageDetail_20' ) start [2025-02-17 21:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498635', 'tblTempUsageDetail_20' ) end [2025-02-17 21:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498635', 'tblTempVendorCDR_20' ) start [2025-02-17 21:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498635', 'tblTempVendorCDR_20' ) end [2025-02-17 21:59:20] Production.INFO: ProcessCDR(1,14498635,1,1,2) [2025-02-17 21:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 21:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 21:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498635', 'tblTempUsageDetail_20' ) start [2025-02-17 21:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498635', 'tblTempUsageDetail_20' ) end [2025-02-17 21:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 21:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 21:59:25] Production.INFO: ==9809== Releasing lock... [2025-02-17 21:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 21:59:25] Production.INFO: 40.75 MB #Memory Used# [2025-02-17 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:00:06 [end_date_ymd] => 2025-02-17 22:00:06 [RateCDR] => 1 ) [2025-02-17 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:00:06' and `end` < '2025-02-17 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:00:19] Production.INFO: count ==1644 [2025-02-17 22:00:19] Production.ERROR: pbx CDR StartTime 2025-02-17 19:00:06 - End Time 2025-02-17 22:00:06 [2025-02-17 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498641', 'tblTempUsageDetail_20' ) start [2025-02-17 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498641', 'tblTempUsageDetail_20' ) end [2025-02-17 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498641', 'tblTempVendorCDR_20' ) start [2025-02-17 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498641', 'tblTempVendorCDR_20' ) end [2025-02-17 22:00:19] Production.INFO: ProcessCDR(1,14498641,1,1,2) [2025-02-17 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498641', 'tblTempUsageDetail_20' ) start [2025-02-17 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498641', 'tblTempUsageDetail_20' ) end [2025-02-17 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:00:23] Production.INFO: ==9884== Releasing lock... [2025-02-17 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:00:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-17 22:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:01:06 [end_date_ymd] => 2025-02-17 22:01:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 19:01:06' and `end` < '2025-02-17 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-02-17 22:01:20] Production.INFO: count ==1485 [2025-02-17 22:01:20] Production.ERROR: pbx CDR StartTime 2025-02-17 19:01:06 - End Time 2025-02-17 22:01:06 [2025-02-17 22:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498646', 'tblTempUsageDetail_20' ) start [2025-02-17 22:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498646', 'tblTempUsageDetail_20' ) end [2025-02-17 22:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498646', 'tblTempVendorCDR_20' ) start [2025-02-17 22:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498646', 'tblTempVendorCDR_20' ) end [2025-02-17 22:01:21] Production.INFO: ProcessCDR(1,14498646,1,1,2) [2025-02-17 22:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498646', 'tblTempUsageDetail_20' ) start [2025-02-17 22:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498646', 'tblTempUsageDetail_20' ) end [2025-02-17 22:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:01:24] Production.INFO: ==9975== Releasing lock... [2025-02-17 22:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:01:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-17 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:02:05 [end_date_ymd] => 2025-02-17 22:02:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 19:02:05' and `end` < '2025-02-17 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-02-17 22:02:18] Production.INFO: count ==1403 [2025-02-17 22:02:19] Production.ERROR: pbx CDR StartTime 2025-02-17 19:02:05 - End Time 2025-02-17 22:02:05 [2025-02-17 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498651', 'tblTempUsageDetail_20' ) start [2025-02-17 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498651', 'tblTempUsageDetail_20' ) end [2025-02-17 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498651', 'tblTempVendorCDR_20' ) start [2025-02-17 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498651', 'tblTempVendorCDR_20' ) end [2025-02-17 22:02:19] Production.INFO: ProcessCDR(1,14498651,1,1,2) [2025-02-17 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498651', 'tblTempUsageDetail_20' ) start [2025-02-17 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498651', 'tblTempUsageDetail_20' ) end [2025-02-17 22:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:02:22] Production.INFO: ==10044== Releasing lock... [2025-02-17 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:02:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-17 22:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:03:06 [end_date_ymd] => 2025-02-17 22:03:06 [RateCDR] => 1 ) [2025-02-17 22:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:03:06' and `end` < '2025-02-17 22:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:03:19] Production.INFO: count ==1351 [2025-02-17 22:03:19] Production.ERROR: pbx CDR StartTime 2025-02-17 19:03:06 - End Time 2025-02-17 22:03:06 [2025-02-17 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498656', 'tblTempUsageDetail_20' ) start [2025-02-17 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498656', 'tblTempUsageDetail_20' ) end [2025-02-17 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498656', 'tblTempVendorCDR_20' ) start [2025-02-17 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498656', 'tblTempVendorCDR_20' ) end [2025-02-17 22:03:19] Production.INFO: ProcessCDR(1,14498656,1,1,2) [2025-02-17 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498656', 'tblTempUsageDetail_20' ) start [2025-02-17 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498656', 'tblTempUsageDetail_20' ) end [2025-02-17 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:03:22] Production.INFO: ==10117== Releasing lock... [2025-02-17 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:03:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-17 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:04:05 [end_date_ymd] => 2025-02-17 22:04:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 19:04:05' and `end` < '2025-02-17 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-02-17 22:04:18] Production.INFO: count ==1226 [2025-02-17 22:04:18] Production.ERROR: pbx CDR StartTime 2025-02-17 19:04:05 - End Time 2025-02-17 22:04:05 [2025-02-17 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498661', 'tblTempUsageDetail_20' ) start [2025-02-17 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498661', 'tblTempUsageDetail_20' ) end [2025-02-17 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498661', 'tblTempVendorCDR_20' ) start [2025-02-17 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498661', 'tblTempVendorCDR_20' ) end [2025-02-17 22:04:18] Production.INFO: ProcessCDR(1,14498661,1,1,2) [2025-02-17 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498661', 'tblTempUsageDetail_20' ) start [2025-02-17 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498661', 'tblTempUsageDetail_20' ) end [2025-02-17 22:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:04:21] Production.INFO: ==10189== Releasing lock... [2025-02-17 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:04:21] Production.INFO: 37 MB #Memory Used# [2025-02-17 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:05:05 [end_date_ymd] => 2025-02-17 22:05:05 [RateCDR] => 1 ) [2025-02-17 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:05:05' and `end` < '2025-02-17 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:05:18] Production.INFO: count ==1131 [2025-02-17 22:05:18] Production.ERROR: pbx CDR StartTime 2025-02-17 19:05:05 - End Time 2025-02-17 22:05:05 [2025-02-17 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498666', 'tblTempUsageDetail_20' ) start [2025-02-17 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498666', 'tblTempUsageDetail_20' ) end [2025-02-17 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498666', 'tblTempVendorCDR_20' ) start [2025-02-17 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498666', 'tblTempVendorCDR_20' ) end [2025-02-17 22:05:19] Production.INFO: ProcessCDR(1,14498666,1,1,2) [2025-02-17 22:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498666', 'tblTempUsageDetail_20' ) start [2025-02-17 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498666', 'tblTempUsageDetail_20' ) end [2025-02-17 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:05:22] Production.INFO: ==10262== Releasing lock... [2025-02-17 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:05:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-17 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:06:05 [end_date_ymd] => 2025-02-17 22:06:05 [RateCDR] => 1 ) [2025-02-17 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:06:05' and `end` < '2025-02-17 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:06:18] Production.INFO: count ==1135 [2025-02-17 22:06:18] Production.ERROR: pbx CDR StartTime 2025-02-17 19:06:05 - End Time 2025-02-17 22:06:05 [2025-02-17 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498671', 'tblTempUsageDetail_20' ) start [2025-02-17 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498671', 'tblTempUsageDetail_20' ) end [2025-02-17 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498671', 'tblTempVendorCDR_20' ) start [2025-02-17 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498671', 'tblTempVendorCDR_20' ) end [2025-02-17 22:06:18] Production.INFO: ProcessCDR(1,14498671,1,1,2) [2025-02-17 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498671', 'tblTempUsageDetail_20' ) start [2025-02-17 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498671', 'tblTempUsageDetail_20' ) end [2025-02-17 22:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:06:23] Production.INFO: ==10334== Releasing lock... [2025-02-17 22:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:06:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-17 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:07:05 [end_date_ymd] => 2025-02-17 22:07:05 [RateCDR] => 1 ) [2025-02-17 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:07:05' and `end` < '2025-02-17 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:07:18] Production.INFO: count ==1134 [2025-02-17 22:07:19] Production.ERROR: pbx CDR StartTime 2025-02-17 19:07:05 - End Time 2025-02-17 22:07:05 [2025-02-17 22:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498676', 'tblTempUsageDetail_20' ) start [2025-02-17 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498676', 'tblTempUsageDetail_20' ) end [2025-02-17 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498676', 'tblTempVendorCDR_20' ) start [2025-02-17 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498676', 'tblTempVendorCDR_20' ) end [2025-02-17 22:07:19] Production.INFO: ProcessCDR(1,14498676,1,1,2) [2025-02-17 22:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498676', 'tblTempUsageDetail_20' ) start [2025-02-17 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498676', 'tblTempUsageDetail_20' ) end [2025-02-17 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:07:22] Production.INFO: ==10444== Releasing lock... [2025-02-17 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:07:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-17 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:08:05 [end_date_ymd] => 2025-02-17 22:08:05 [RateCDR] => 1 ) [2025-02-17 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:08:05' and `end` < '2025-02-17 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:08:18] Production.INFO: count ==1136 [2025-02-17 22:08:18] Production.ERROR: pbx CDR StartTime 2025-02-17 19:08:05 - End Time 2025-02-17 22:08:05 [2025-02-17 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498681', 'tblTempUsageDetail_20' ) start [2025-02-17 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498681', 'tblTempUsageDetail_20' ) end [2025-02-17 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498681', 'tblTempVendorCDR_20' ) start [2025-02-17 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498681', 'tblTempVendorCDR_20' ) end [2025-02-17 22:08:18] Production.INFO: ProcessCDR(1,14498681,1,1,2) [2025-02-17 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498681', 'tblTempUsageDetail_20' ) start [2025-02-17 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498681', 'tblTempUsageDetail_20' ) end [2025-02-17 22:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:08:23] Production.INFO: ==10519== Releasing lock... [2025-02-17 22:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:08:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-17 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:09:05 [end_date_ymd] => 2025-02-17 22:09:05 [RateCDR] => 1 ) [2025-02-17 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:09:05' and `end` < '2025-02-17 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:09:18] Production.INFO: count ==1139 [2025-02-17 22:09:18] Production.ERROR: pbx CDR StartTime 2025-02-17 19:09:05 - End Time 2025-02-17 22:09:05 [2025-02-17 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498686', 'tblTempUsageDetail_20' ) start [2025-02-17 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498686', 'tblTempUsageDetail_20' ) end [2025-02-17 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498686', 'tblTempVendorCDR_20' ) start [2025-02-17 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498686', 'tblTempVendorCDR_20' ) end [2025-02-17 22:09:18] Production.INFO: ProcessCDR(1,14498686,1,1,2) [2025-02-17 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498686', 'tblTempUsageDetail_20' ) start [2025-02-17 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498686', 'tblTempUsageDetail_20' ) end [2025-02-17 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:09:22] Production.INFO: ==10595== Releasing lock... [2025-02-17 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:09:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-17 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:10:06 [end_date_ymd] => 2025-02-17 22:10:06 [RateCDR] => 1 ) [2025-02-17 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:10:06' and `end` < '2025-02-17 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:10:19] Production.INFO: count ==1139 [2025-02-17 22:10:19] Production.ERROR: pbx CDR StartTime 2025-02-17 19:10:06 - End Time 2025-02-17 22:10:06 [2025-02-17 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498692', 'tblTempUsageDetail_20' ) start [2025-02-17 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498692', 'tblTempUsageDetail_20' ) end [2025-02-17 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498692', 'tblTempVendorCDR_20' ) start [2025-02-17 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498692', 'tblTempVendorCDR_20' ) end [2025-02-17 22:10:19] Production.INFO: ProcessCDR(1,14498692,1,1,2) [2025-02-17 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498692', 'tblTempUsageDetail_20' ) start [2025-02-17 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498692', 'tblTempUsageDetail_20' ) end [2025-02-17 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:10:22] Production.INFO: ==10668== Releasing lock... [2025-02-17 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:10:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-17 22:11:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:11:07 [end_date_ymd] => 2025-02-17 22:11:07 [RateCDR] => 1 ) [2025-02-17 22:11:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:11:07' and `end` < '2025-02-17 22:11:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:11:20] Production.INFO: count ==1098 [2025-02-17 22:11:21] Production.ERROR: pbx CDR StartTime 2025-02-17 19:11:07 - End Time 2025-02-17 22:11:07 [2025-02-17 22:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498697', 'tblTempUsageDetail_20' ) start [2025-02-17 22:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498697', 'tblTempUsageDetail_20' ) end [2025-02-17 22:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498697', 'tblTempVendorCDR_20' ) start [2025-02-17 22:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498697', 'tblTempVendorCDR_20' ) end [2025-02-17 22:11:21] Production.INFO: ProcessCDR(1,14498697,1,1,2) [2025-02-17 22:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498697', 'tblTempUsageDetail_20' ) start [2025-02-17 22:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498697', 'tblTempUsageDetail_20' ) end [2025-02-17 22:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:11:25] Production.INFO: ==10744== Releasing lock... [2025-02-17 22:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:11:25] Production.INFO: 36.25 MB #Memory Used# [2025-02-17 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:12:05 [end_date_ymd] => 2025-02-17 22:12:05 [RateCDR] => 1 ) [2025-02-17 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:12:05' and `end` < '2025-02-17 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:12:19] Production.INFO: count ==1097 [2025-02-17 22:12:19] Production.ERROR: pbx CDR StartTime 2025-02-17 19:12:05 - End Time 2025-02-17 22:12:05 [2025-02-17 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498702', 'tblTempUsageDetail_20' ) start [2025-02-17 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498702', 'tblTempUsageDetail_20' ) end [2025-02-17 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498702', 'tblTempVendorCDR_20' ) start [2025-02-17 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498702', 'tblTempVendorCDR_20' ) end [2025-02-17 22:12:19] Production.INFO: ProcessCDR(1,14498702,1,1,2) [2025-02-17 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498702', 'tblTempUsageDetail_20' ) start [2025-02-17 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498702', 'tblTempUsageDetail_20' ) end [2025-02-17 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:12:22] Production.INFO: ==10814== Releasing lock... [2025-02-17 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:12:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-17 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:13:05 [end_date_ymd] => 2025-02-17 22:13:05 [RateCDR] => 1 ) [2025-02-17 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:13:05' and `end` < '2025-02-17 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:13:18] Production.INFO: count ==1093 [2025-02-17 22:13:18] Production.ERROR: pbx CDR StartTime 2025-02-17 19:13:05 - End Time 2025-02-17 22:13:05 [2025-02-17 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498707', 'tblTempUsageDetail_20' ) start [2025-02-17 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498707', 'tblTempUsageDetail_20' ) end [2025-02-17 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498707', 'tblTempVendorCDR_20' ) start [2025-02-17 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498707', 'tblTempVendorCDR_20' ) end [2025-02-17 22:13:18] Production.INFO: ProcessCDR(1,14498707,1,1,2) [2025-02-17 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498707', 'tblTempUsageDetail_20' ) start [2025-02-17 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498707', 'tblTempUsageDetail_20' ) end [2025-02-17 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:13:21] Production.INFO: ==10884== Releasing lock... [2025-02-17 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:13:21] Production.INFO: 36 MB #Memory Used# [2025-02-17 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:14:05 [end_date_ymd] => 2025-02-17 22:14:05 [RateCDR] => 1 ) [2025-02-17 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:14:05' and `end` < '2025-02-17 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:14:19] Production.INFO: count ==1092 [2025-02-17 22:14:19] Production.ERROR: pbx CDR StartTime 2025-02-17 19:14:05 - End Time 2025-02-17 22:14:05 [2025-02-17 22:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498712', 'tblTempUsageDetail_20' ) start [2025-02-17 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498712', 'tblTempUsageDetail_20' ) end [2025-02-17 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498712', 'tblTempVendorCDR_20' ) start [2025-02-17 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498712', 'tblTempVendorCDR_20' ) end [2025-02-17 22:14:19] Production.INFO: ProcessCDR(1,14498712,1,1,2) [2025-02-17 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498712', 'tblTempUsageDetail_20' ) start [2025-02-17 22:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498712', 'tblTempUsageDetail_20' ) end [2025-02-17 22:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:14:24] Production.INFO: ==10956== Releasing lock... [2025-02-17 22:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:14:24] Production.INFO: 36 MB #Memory Used# [2025-02-17 22:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:15:04 [end_date_ymd] => 2025-02-17 22:15:04 [RateCDR] => 1 ) [2025-02-17 22: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-02-17 19:15:04' and `end` < '2025-02-17 22: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-02-17 22:15:18] Production.INFO: count ==1092 [2025-02-17 22:15:19] Production.ERROR: pbx CDR StartTime 2025-02-17 19:15:04 - End Time 2025-02-17 22:15:04 [2025-02-17 22:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498717', 'tblTempUsageDetail_20' ) start [2025-02-17 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498717', 'tblTempUsageDetail_20' ) end [2025-02-17 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498717', 'tblTempVendorCDR_20' ) start [2025-02-17 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498717', 'tblTempVendorCDR_20' ) end [2025-02-17 22:15:19] Production.INFO: ProcessCDR(1,14498717,1,1,2) [2025-02-17 22:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498717', 'tblTempUsageDetail_20' ) start [2025-02-17 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498717', 'tblTempUsageDetail_20' ) end [2025-02-17 22:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:15:23] Production.INFO: ==11027== Releasing lock... [2025-02-17 22:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:15:23] Production.INFO: 36 MB #Memory Used# [2025-02-17 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:16:05 [end_date_ymd] => 2025-02-17 22:16:05 [RateCDR] => 1 ) [2025-02-17 22:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:16:05' and `end` < '2025-02-17 22:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:16:20] Production.INFO: count ==1091 [2025-02-17 22:16:20] Production.ERROR: pbx CDR StartTime 2025-02-17 19:16:05 - End Time 2025-02-17 22:16:05 [2025-02-17 22:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498722', 'tblTempUsageDetail_20' ) start [2025-02-17 22:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498722', 'tblTempUsageDetail_20' ) end [2025-02-17 22:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498722', 'tblTempVendorCDR_20' ) start [2025-02-17 22:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498722', 'tblTempVendorCDR_20' ) end [2025-02-17 22:16:20] Production.INFO: ProcessCDR(1,14498722,1,1,2) [2025-02-17 22:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498722', 'tblTempUsageDetail_20' ) start [2025-02-17 22:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498722', 'tblTempUsageDetail_20' ) end [2025-02-17 22:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:16:25] Production.INFO: ==11100== Releasing lock... [2025-02-17 22:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:16:25] Production.INFO: 36 MB #Memory Used# [2025-02-17 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:17:05 [end_date_ymd] => 2025-02-17 22:17:05 [RateCDR] => 1 ) [2025-02-17 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:17:05' and `end` < '2025-02-17 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:17:18] Production.INFO: count ==1090 [2025-02-17 22:17:19] Production.ERROR: pbx CDR StartTime 2025-02-17 19:17:05 - End Time 2025-02-17 22:17:05 [2025-02-17 22:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498727', 'tblTempUsageDetail_20' ) start [2025-02-17 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498727', 'tblTempUsageDetail_20' ) end [2025-02-17 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498727', 'tblTempVendorCDR_20' ) start [2025-02-17 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498727', 'tblTempVendorCDR_20' ) end [2025-02-17 22:17:19] Production.INFO: ProcessCDR(1,14498727,1,1,2) [2025-02-17 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498727', 'tblTempUsageDetail_20' ) start [2025-02-17 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498727', 'tblTempUsageDetail_20' ) end [2025-02-17 22:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:17:22] Production.INFO: ==11191== Releasing lock... [2025-02-17 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:17:22] Production.INFO: 36 MB #Memory Used# [2025-02-17 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:18:05 [end_date_ymd] => 2025-02-17 22:18:05 [RateCDR] => 1 ) [2025-02-17 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:18:05' and `end` < '2025-02-17 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:18:22] Production.INFO: count ==1082 [2025-02-17 22:18:22] Production.ERROR: pbx CDR StartTime 2025-02-17 19:18:05 - End Time 2025-02-17 22:18:05 [2025-02-17 22:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498732', 'tblTempUsageDetail_20' ) start [2025-02-17 22:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498732', 'tblTempUsageDetail_20' ) end [2025-02-17 22:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498732', 'tblTempVendorCDR_20' ) start [2025-02-17 22:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498732', 'tblTempVendorCDR_20' ) end [2025-02-17 22:18:22] Production.INFO: ProcessCDR(1,14498732,1,1,2) [2025-02-17 22:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498732', 'tblTempUsageDetail_20' ) start [2025-02-17 22:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498732', 'tblTempUsageDetail_20' ) end [2025-02-17 22:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:18:27] Production.INFO: ==11266== Releasing lock... [2025-02-17 22:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:18:27] Production.INFO: 36 MB #Memory Used# [2025-02-17 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:19:05 [end_date_ymd] => 2025-02-17 22:19:05 [RateCDR] => 1 ) [2025-02-17 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:19:05' and `end` < '2025-02-17 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:19:19] Production.INFO: count ==1068 [2025-02-17 22:19:19] Production.ERROR: pbx CDR StartTime 2025-02-17 19:19:05 - End Time 2025-02-17 22:19:05 [2025-02-17 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498737', 'tblTempUsageDetail_20' ) start [2025-02-17 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498737', 'tblTempUsageDetail_20' ) end [2025-02-17 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498737', 'tblTempVendorCDR_20' ) start [2025-02-17 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498737', 'tblTempVendorCDR_20' ) end [2025-02-17 22:19:19] Production.INFO: ProcessCDR(1,14498737,1,1,2) [2025-02-17 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498737', 'tblTempUsageDetail_20' ) start [2025-02-17 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498737', 'tblTempUsageDetail_20' ) end [2025-02-17 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:19:22] Production.INFO: ==11337== Releasing lock... [2025-02-17 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:19:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-17 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:20:05 [end_date_ymd] => 2025-02-17 22:20:05 [RateCDR] => 1 ) [2025-02-17 22:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:20:05' and `end` < '2025-02-17 22:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:20:18] Production.INFO: count ==1076 [2025-02-17 22:20:18] Production.ERROR: pbx CDR StartTime 2025-02-17 19:20:05 - End Time 2025-02-17 22:20:05 [2025-02-17 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498742', 'tblTempUsageDetail_20' ) start [2025-02-17 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498742', 'tblTempUsageDetail_20' ) end [2025-02-17 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498742', 'tblTempVendorCDR_20' ) start [2025-02-17 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498742', 'tblTempVendorCDR_20' ) end [2025-02-17 22:20:18] Production.INFO: ProcessCDR(1,14498742,1,1,2) [2025-02-17 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498742', 'tblTempUsageDetail_20' ) start [2025-02-17 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498742', 'tblTempUsageDetail_20' ) end [2025-02-17 22:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:20:21] Production.INFO: ==11415== Releasing lock... [2025-02-17 22:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:20:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-17 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:21:05 [end_date_ymd] => 2025-02-17 22:21:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 19:21:05' and `end` < '2025-02-17 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-02-17 22:21:22] Production.INFO: count ==1052 [2025-02-17 22:21:22] Production.ERROR: pbx CDR StartTime 2025-02-17 19:21:05 - End Time 2025-02-17 22:21:05 [2025-02-17 22:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498748', 'tblTempUsageDetail_20' ) start [2025-02-17 22:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498748', 'tblTempUsageDetail_20' ) end [2025-02-17 22:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498748', 'tblTempVendorCDR_20' ) start [2025-02-17 22:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498748', 'tblTempVendorCDR_20' ) end [2025-02-17 22:21:22] Production.INFO: ProcessCDR(1,14498748,1,1,2) [2025-02-17 22:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498748', 'tblTempUsageDetail_20' ) start [2025-02-17 22:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498748', 'tblTempUsageDetail_20' ) end [2025-02-17 22:21:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:21:26] Production.INFO: ==11489== Releasing lock... [2025-02-17 22:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:21:26] Production.INFO: 36 MB #Memory Used# [2025-02-17 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:22:05 [end_date_ymd] => 2025-02-17 22:22:05 [RateCDR] => 1 ) [2025-02-17 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:22:05' and `end` < '2025-02-17 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:22:18] Production.INFO: count ==1051 [2025-02-17 22:22:18] Production.ERROR: pbx CDR StartTime 2025-02-17 19:22:05 - End Time 2025-02-17 22:22:05 [2025-02-17 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498753', 'tblTempUsageDetail_20' ) start [2025-02-17 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498753', 'tblTempUsageDetail_20' ) end [2025-02-17 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498753', 'tblTempVendorCDR_20' ) start [2025-02-17 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498753', 'tblTempVendorCDR_20' ) end [2025-02-17 22:22:18] Production.INFO: ProcessCDR(1,14498753,1,1,2) [2025-02-17 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498753', 'tblTempUsageDetail_20' ) start [2025-02-17 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498753', 'tblTempUsageDetail_20' ) end [2025-02-17 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:22:21] Production.INFO: ==11600== Releasing lock... [2025-02-17 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:22:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-17 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:23:05 [end_date_ymd] => 2025-02-17 22:23:05 [RateCDR] => 1 ) [2025-02-17 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:23:05' and `end` < '2025-02-17 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:23:18] Production.INFO: count ==1047 [2025-02-17 22:23:18] Production.ERROR: pbx CDR StartTime 2025-02-17 19:23:05 - End Time 2025-02-17 22:23:05 [2025-02-17 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498758', 'tblTempUsageDetail_20' ) start [2025-02-17 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498758', 'tblTempUsageDetail_20' ) end [2025-02-17 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498758', 'tblTempVendorCDR_20' ) start [2025-02-17 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498758', 'tblTempVendorCDR_20' ) end [2025-02-17 22:23:19] Production.INFO: ProcessCDR(1,14498758,1,1,2) [2025-02-17 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498758', 'tblTempUsageDetail_20' ) start [2025-02-17 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498758', 'tblTempUsageDetail_20' ) end [2025-02-17 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:23:22] Production.INFO: ==11672== Releasing lock... [2025-02-17 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:23:22] Production.INFO: 36 MB #Memory Used# [2025-02-17 22:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:24:06 [end_date_ymd] => 2025-02-17 22:24:06 [RateCDR] => 1 ) [2025-02-17 22:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:24:06' and `end` < '2025-02-17 22:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:24:19] Production.INFO: count ==1050 [2025-02-17 22:24:19] Production.ERROR: pbx CDR StartTime 2025-02-17 19:24:06 - End Time 2025-02-17 22:24:06 [2025-02-17 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498763', 'tblTempUsageDetail_20' ) start [2025-02-17 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498763', 'tblTempUsageDetail_20' ) end [2025-02-17 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498763', 'tblTempVendorCDR_20' ) start [2025-02-17 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498763', 'tblTempVendorCDR_20' ) end [2025-02-17 22:24:19] Production.INFO: ProcessCDR(1,14498763,1,1,2) [2025-02-17 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498763', 'tblTempUsageDetail_20' ) start [2025-02-17 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498763', 'tblTempUsageDetail_20' ) end [2025-02-17 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:24:22] Production.INFO: ==11741== Releasing lock... [2025-02-17 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:24:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-17 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:25:05 [end_date_ymd] => 2025-02-17 22:25:05 [RateCDR] => 1 ) [2025-02-17 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:25:05' and `end` < '2025-02-17 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:25:18] Production.INFO: count ==1047 [2025-02-17 22:25:19] Production.ERROR: pbx CDR StartTime 2025-02-17 19:25:05 - End Time 2025-02-17 22:25:05 [2025-02-17 22:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498768', 'tblTempUsageDetail_20' ) start [2025-02-17 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498768', 'tblTempUsageDetail_20' ) end [2025-02-17 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498768', 'tblTempVendorCDR_20' ) start [2025-02-17 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498768', 'tblTempVendorCDR_20' ) end [2025-02-17 22:25:19] Production.INFO: ProcessCDR(1,14498768,1,1,2) [2025-02-17 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498768', 'tblTempUsageDetail_20' ) start [2025-02-17 22:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498768', 'tblTempUsageDetail_20' ) end [2025-02-17 22:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:25:23] Production.INFO: ==11811== Releasing lock... [2025-02-17 22:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:25:23] Production.INFO: 36 MB #Memory Used# [2025-02-17 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:26:05 [end_date_ymd] => 2025-02-17 22:26:05 [RateCDR] => 1 ) [2025-02-17 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:26:05' and `end` < '2025-02-17 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:26:18] Production.INFO: count ==1056 [2025-02-17 22:26:18] Production.ERROR: pbx CDR StartTime 2025-02-17 19:26:05 - End Time 2025-02-17 22:26:05 [2025-02-17 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498773', 'tblTempUsageDetail_20' ) start [2025-02-17 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498773', 'tblTempUsageDetail_20' ) end [2025-02-17 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498773', 'tblTempVendorCDR_20' ) start [2025-02-17 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498773', 'tblTempVendorCDR_20' ) end [2025-02-17 22:26:18] Production.INFO: ProcessCDR(1,14498773,1,1,2) [2025-02-17 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498773', 'tblTempUsageDetail_20' ) start [2025-02-17 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498773', 'tblTempUsageDetail_20' ) end [2025-02-17 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:26:22] Production.INFO: ==11885== Releasing lock... [2025-02-17 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:26:22] Production.INFO: 36 MB #Memory Used# [2025-02-17 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:27:05 [end_date_ymd] => 2025-02-17 22:27:05 [RateCDR] => 1 ) [2025-02-17 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:27:05' and `end` < '2025-02-17 22:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:27:19] Production.INFO: count ==1063 [2025-02-17 22:27:19] Production.ERROR: pbx CDR StartTime 2025-02-17 19:27:05 - End Time 2025-02-17 22:27:05 [2025-02-17 22:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498778', 'tblTempUsageDetail_20' ) start [2025-02-17 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498778', 'tblTempUsageDetail_20' ) end [2025-02-17 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498778', 'tblTempVendorCDR_20' ) start [2025-02-17 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498778', 'tblTempVendorCDR_20' ) end [2025-02-17 22:27:19] Production.INFO: ProcessCDR(1,14498778,1,1,2) [2025-02-17 22:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498778', 'tblTempUsageDetail_20' ) start [2025-02-17 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498778', 'tblTempUsageDetail_20' ) end [2025-02-17 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:27:22] Production.INFO: ==11955== Releasing lock... [2025-02-17 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:27:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-17 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:28:05 [end_date_ymd] => 2025-02-17 22:28:05 [RateCDR] => 1 ) [2025-02-17 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:28:05' and `end` < '2025-02-17 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:28:18] Production.INFO: count ==1062 [2025-02-17 22:28:19] Production.ERROR: pbx CDR StartTime 2025-02-17 19:28:05 - End Time 2025-02-17 22:28:05 [2025-02-17 22:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498783', 'tblTempUsageDetail_20' ) start [2025-02-17 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498783', 'tblTempUsageDetail_20' ) end [2025-02-17 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498783', 'tblTempVendorCDR_20' ) start [2025-02-17 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498783', 'tblTempVendorCDR_20' ) end [2025-02-17 22:28:19] Production.INFO: ProcessCDR(1,14498783,1,1,2) [2025-02-17 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498783', 'tblTempUsageDetail_20' ) start [2025-02-17 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498783', 'tblTempUsageDetail_20' ) end [2025-02-17 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:28:22] Production.INFO: ==12028== Releasing lock... [2025-02-17 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:28:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-17 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:29:05 [end_date_ymd] => 2025-02-17 22:29:05 [RateCDR] => 1 ) [2025-02-17 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:29:05' and `end` < '2025-02-17 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:29:19] Production.INFO: count ==1062 [2025-02-17 22:29:19] Production.ERROR: pbx CDR StartTime 2025-02-17 19:29:05 - End Time 2025-02-17 22:29:05 [2025-02-17 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498788', 'tblTempUsageDetail_20' ) start [2025-02-17 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498788', 'tblTempUsageDetail_20' ) end [2025-02-17 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498788', 'tblTempVendorCDR_20' ) start [2025-02-17 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498788', 'tblTempVendorCDR_20' ) end [2025-02-17 22:29:19] Production.INFO: ProcessCDR(1,14498788,1,1,2) [2025-02-17 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498788', 'tblTempUsageDetail_20' ) start [2025-02-17 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498788', 'tblTempUsageDetail_20' ) end [2025-02-17 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:29:22] Production.INFO: ==12098== Releasing lock... [2025-02-17 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:29:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-17 22:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:30:05 [end_date_ymd] => 2025-02-17 22:30:05 [RateCDR] => 1 ) [2025-02-17 22:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:30:05' and `end` < '2025-02-17 22:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:30:18] Production.INFO: count ==1066 [2025-02-17 22:30:19] Production.ERROR: pbx CDR StartTime 2025-02-17 19:30:05 - End Time 2025-02-17 22:30:05 [2025-02-17 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498794', 'tblTempUsageDetail_20' ) start [2025-02-17 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498794', 'tblTempUsageDetail_20' ) end [2025-02-17 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498794', 'tblTempVendorCDR_20' ) start [2025-02-17 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498794', 'tblTempVendorCDR_20' ) end [2025-02-17 22:30:19] Production.INFO: ProcessCDR(1,14498794,1,1,2) [2025-02-17 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498794', 'tblTempUsageDetail_20' ) start [2025-02-17 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498794', 'tblTempUsageDetail_20' ) end [2025-02-17 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:30:22] Production.INFO: ==12173== Releasing lock... [2025-02-17 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:30:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-17 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:31:05 [end_date_ymd] => 2025-02-17 22:31:05 [RateCDR] => 1 ) [2025-02-17 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:31:05' and `end` < '2025-02-17 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:31:18] Production.INFO: count ==1041 [2025-02-17 22:31:18] Production.ERROR: pbx CDR StartTime 2025-02-17 19:31:05 - End Time 2025-02-17 22:31:05 [2025-02-17 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498799', 'tblTempUsageDetail_20' ) start [2025-02-17 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498799', 'tblTempUsageDetail_20' ) end [2025-02-17 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498799', 'tblTempVendorCDR_20' ) start [2025-02-17 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498799', 'tblTempVendorCDR_20' ) end [2025-02-17 22:31:19] Production.INFO: ProcessCDR(1,14498799,1,1,2) [2025-02-17 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498799', 'tblTempUsageDetail_20' ) start [2025-02-17 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498799', 'tblTempUsageDetail_20' ) end [2025-02-17 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:31:22] Production.INFO: ==12246== Releasing lock... [2025-02-17 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:31:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-17 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:32:05 [end_date_ymd] => 2025-02-17 22:32:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 19:32:05' and `end` < '2025-02-17 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-02-17 22:32:19] Production.INFO: count ==1040 [2025-02-17 22:32:19] Production.ERROR: pbx CDR StartTime 2025-02-17 19:32:05 - End Time 2025-02-17 22:32:05 [2025-02-17 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498804', 'tblTempUsageDetail_20' ) start [2025-02-17 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498804', 'tblTempUsageDetail_20' ) end [2025-02-17 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498804', 'tblTempVendorCDR_20' ) start [2025-02-17 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498804', 'tblTempVendorCDR_20' ) end [2025-02-17 22:32:19] Production.INFO: ProcessCDR(1,14498804,1,1,2) [2025-02-17 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498804', 'tblTempUsageDetail_20' ) start [2025-02-17 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498804', 'tblTempUsageDetail_20' ) end [2025-02-17 22:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:32:23] Production.INFO: ==12315== Releasing lock... [2025-02-17 22:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:32:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-17 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:33:05 [end_date_ymd] => 2025-02-17 22:33:05 [RateCDR] => 1 ) [2025-02-17 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:33:05' and `end` < '2025-02-17 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:33:22] Production.INFO: count ==1037 [2025-02-17 22:33:22] Production.ERROR: pbx CDR StartTime 2025-02-17 19:33:05 - End Time 2025-02-17 22:33:05 [2025-02-17 22:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498809', 'tblTempUsageDetail_20' ) start [2025-02-17 22:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498809', 'tblTempUsageDetail_20' ) end [2025-02-17 22:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498809', 'tblTempVendorCDR_20' ) start [2025-02-17 22:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498809', 'tblTempVendorCDR_20' ) end [2025-02-17 22:33:22] Production.INFO: ProcessCDR(1,14498809,1,1,2) [2025-02-17 22:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498809', 'tblTempUsageDetail_20' ) start [2025-02-17 22:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498809', 'tblTempUsageDetail_20' ) end [2025-02-17 22:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:33:25] Production.INFO: ==12388== Releasing lock... [2025-02-17 22:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:33:25] Production.INFO: 35.5 MB #Memory Used# [2025-02-17 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:34:05 [end_date_ymd] => 2025-02-17 22:34:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 19:34:05' and `end` < '2025-02-17 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-02-17 22:34:18] Production.INFO: count ==1035 [2025-02-17 22:34:19] Production.ERROR: pbx CDR StartTime 2025-02-17 19:34:05 - End Time 2025-02-17 22:34:05 [2025-02-17 22:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498814', 'tblTempUsageDetail_20' ) start [2025-02-17 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498814', 'tblTempUsageDetail_20' ) end [2025-02-17 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498814', 'tblTempVendorCDR_20' ) start [2025-02-17 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498814', 'tblTempVendorCDR_20' ) end [2025-02-17 22:34:19] Production.INFO: ProcessCDR(1,14498814,1,1,2) [2025-02-17 22:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498814', 'tblTempUsageDetail_20' ) start [2025-02-17 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498814', 'tblTempUsageDetail_20' ) end [2025-02-17 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:34:22] Production.INFO: ==12471== Releasing lock... [2025-02-17 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:34:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-17 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:35:05 [end_date_ymd] => 2025-02-17 22:35:05 [RateCDR] => 1 ) [2025-02-17 22:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:35:05' and `end` < '2025-02-17 22:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:35:19] Production.INFO: count ==1031 [2025-02-17 22:35:19] Production.ERROR: pbx CDR StartTime 2025-02-17 19:35:05 - End Time 2025-02-17 22:35:05 [2025-02-17 22:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498819', 'tblTempUsageDetail_20' ) start [2025-02-17 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498819', 'tblTempUsageDetail_20' ) end [2025-02-17 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498819', 'tblTempVendorCDR_20' ) start [2025-02-17 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498819', 'tblTempVendorCDR_20' ) end [2025-02-17 22:35:19] Production.INFO: ProcessCDR(1,14498819,1,1,2) [2025-02-17 22:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498819', 'tblTempUsageDetail_20' ) start [2025-02-17 22:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498819', 'tblTempUsageDetail_20' ) end [2025-02-17 22:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:35:24] Production.INFO: ==12540== Releasing lock... [2025-02-17 22:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:35:24] Production.INFO: 35.5 MB #Memory Used# [2025-02-17 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:36:05 [end_date_ymd] => 2025-02-17 22:36:05 [RateCDR] => 1 ) [2025-02-17 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:36:05' and `end` < '2025-02-17 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:36:20] Production.INFO: count ==1021 [2025-02-17 22:36:20] Production.ERROR: pbx CDR StartTime 2025-02-17 19:36:05 - End Time 2025-02-17 22:36:05 [2025-02-17 22:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498824', 'tblTempUsageDetail_20' ) start [2025-02-17 22:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498824', 'tblTempUsageDetail_20' ) end [2025-02-17 22:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498824', 'tblTempVendorCDR_20' ) start [2025-02-17 22:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498824', 'tblTempVendorCDR_20' ) end [2025-02-17 22:36:20] Production.INFO: ProcessCDR(1,14498824,1,1,2) [2025-02-17 22:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498824', 'tblTempUsageDetail_20' ) start [2025-02-17 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498824', 'tblTempUsageDetail_20' ) end [2025-02-17 22:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:36:23] Production.INFO: ==12610== Releasing lock... [2025-02-17 22:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:36:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-17 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:37:05 [end_date_ymd] => 2025-02-17 22:37:05 [RateCDR] => 1 ) [2025-02-17 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:37:05' and `end` < '2025-02-17 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:37:18] Production.INFO: count ==1020 [2025-02-17 22:37:18] Production.ERROR: pbx CDR StartTime 2025-02-17 19:37:05 - End Time 2025-02-17 22:37:05 [2025-02-17 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498829', 'tblTempUsageDetail_20' ) start [2025-02-17 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498829', 'tblTempUsageDetail_20' ) end [2025-02-17 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498829', 'tblTempVendorCDR_20' ) start [2025-02-17 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498829', 'tblTempVendorCDR_20' ) end [2025-02-17 22:37:18] Production.INFO: ProcessCDR(1,14498829,1,1,2) [2025-02-17 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498829', 'tblTempUsageDetail_20' ) start [2025-02-17 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498829', 'tblTempUsageDetail_20' ) end [2025-02-17 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:37:21] Production.INFO: ==12681== Releasing lock... [2025-02-17 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:37:21] Production.INFO: 36 MB #Memory Used# [2025-02-17 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:38:05 [end_date_ymd] => 2025-02-17 22:38:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 19:38:05' and `end` < '2025-02-17 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-02-17 22:38:19] Production.INFO: count ==1017 [2025-02-17 22:38:19] Production.ERROR: pbx CDR StartTime 2025-02-17 19:38:05 - End Time 2025-02-17 22:38:05 [2025-02-17 22:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498834', 'tblTempUsageDetail_20' ) start [2025-02-17 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498834', 'tblTempUsageDetail_20' ) end [2025-02-17 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498834', 'tblTempVendorCDR_20' ) start [2025-02-17 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498834', 'tblTempVendorCDR_20' ) end [2025-02-17 22:38:19] Production.INFO: ProcessCDR(1,14498834,1,1,2) [2025-02-17 22:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498834', 'tblTempUsageDetail_20' ) start [2025-02-17 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498834', 'tblTempUsageDetail_20' ) end [2025-02-17 22:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:38:23] Production.INFO: ==12791== Releasing lock... [2025-02-17 22:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:38:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-17 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:39:05 [end_date_ymd] => 2025-02-17 22:39:05 [RateCDR] => 1 ) [2025-02-17 22:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:39:05' and `end` < '2025-02-17 22:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:39:19] Production.INFO: count ==1003 [2025-02-17 22:39:19] Production.ERROR: pbx CDR StartTime 2025-02-17 19:39:05 - End Time 2025-02-17 22:39:05 [2025-02-17 22:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498839', 'tblTempUsageDetail_20' ) start [2025-02-17 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498839', 'tblTempUsageDetail_20' ) end [2025-02-17 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498839', 'tblTempVendorCDR_20' ) start [2025-02-17 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498839', 'tblTempVendorCDR_20' ) end [2025-02-17 22:39:19] Production.INFO: ProcessCDR(1,14498839,1,1,2) [2025-02-17 22:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498839', 'tblTempUsageDetail_20' ) start [2025-02-17 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498839', 'tblTempUsageDetail_20' ) end [2025-02-17 22:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:39:22] Production.INFO: ==12861== Releasing lock... [2025-02-17 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:39:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-17 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:40:06 [end_date_ymd] => 2025-02-17 22:40:06 [RateCDR] => 1 ) [2025-02-17 22:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:40:06' and `end` < '2025-02-17 22:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:40:19] Production.INFO: count ==1001 [2025-02-17 22:40:19] Production.ERROR: pbx CDR StartTime 2025-02-17 19:40:06 - End Time 2025-02-17 22:40:06 [2025-02-17 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498844', 'tblTempUsageDetail_20' ) start [2025-02-17 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498844', 'tblTempUsageDetail_20' ) end [2025-02-17 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498844', 'tblTempVendorCDR_20' ) start [2025-02-17 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498844', 'tblTempVendorCDR_20' ) end [2025-02-17 22:40:19] Production.INFO: ProcessCDR(1,14498844,1,1,2) [2025-02-17 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498844', 'tblTempUsageDetail_20' ) start [2025-02-17 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498844', 'tblTempUsageDetail_20' ) end [2025-02-17 22:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:40:23] Production.INFO: ==12941== Releasing lock... [2025-02-17 22:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:40:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-17 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:41:05 [end_date_ymd] => 2025-02-17 22:41:05 [RateCDR] => 1 ) [2025-02-17 22:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:41:05' and `end` < '2025-02-17 22:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:41:19] Production.INFO: count ==975 [2025-02-17 22:41:19] Production.ERROR: pbx CDR StartTime 2025-02-17 19:41:05 - End Time 2025-02-17 22:41:05 [2025-02-17 22:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498850', 'tblTempUsageDetail_20' ) start [2025-02-17 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498850', 'tblTempUsageDetail_20' ) end [2025-02-17 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498850', 'tblTempVendorCDR_20' ) start [2025-02-17 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498850', 'tblTempVendorCDR_20' ) end [2025-02-17 22:41:19] Production.INFO: ProcessCDR(1,14498850,1,1,2) [2025-02-17 22:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498850', 'tblTempUsageDetail_20' ) start [2025-02-17 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498850', 'tblTempUsageDetail_20' ) end [2025-02-17 22:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:41:23] Production.INFO: ==13017== Releasing lock... [2025-02-17 22:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:41:23] Production.INFO: 35 MB #Memory Used# [2025-02-17 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:42:05 [end_date_ymd] => 2025-02-17 22:42:05 [RateCDR] => 1 ) [2025-02-17 22:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:42:05' and `end` < '2025-02-17 22:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:42:21] Production.INFO: count ==973 [2025-02-17 22:42:21] Production.ERROR: pbx CDR StartTime 2025-02-17 19:42:05 - End Time 2025-02-17 22:42:05 [2025-02-17 22:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498855', 'tblTempUsageDetail_20' ) start [2025-02-17 22:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498855', 'tblTempUsageDetail_20' ) end [2025-02-17 22:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498855', 'tblTempVendorCDR_20' ) start [2025-02-17 22:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498855', 'tblTempVendorCDR_20' ) end [2025-02-17 22:42:21] Production.INFO: ProcessCDR(1,14498855,1,1,2) [2025-02-17 22:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498855', 'tblTempUsageDetail_20' ) start [2025-02-17 22:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498855', 'tblTempUsageDetail_20' ) end [2025-02-17 22:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:42:24] Production.INFO: ==13091== Releasing lock... [2025-02-17 22:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:42:24] Production.INFO: 35 MB #Memory Used# [2025-02-17 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:43:05 [end_date_ymd] => 2025-02-17 22:43:05 [RateCDR] => 1 ) [2025-02-17 22:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:43:05' and `end` < '2025-02-17 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:43:19] Production.INFO: count ==970 [2025-02-17 22:43:19] Production.ERROR: pbx CDR StartTime 2025-02-17 19:43:05 - End Time 2025-02-17 22:43:05 [2025-02-17 22:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498860', 'tblTempUsageDetail_20' ) start [2025-02-17 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498860', 'tblTempUsageDetail_20' ) end [2025-02-17 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498860', 'tblTempVendorCDR_20' ) start [2025-02-17 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498860', 'tblTempVendorCDR_20' ) end [2025-02-17 22:43:19] Production.INFO: ProcessCDR(1,14498860,1,1,2) [2025-02-17 22:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498860', 'tblTempUsageDetail_20' ) start [2025-02-17 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498860', 'tblTempUsageDetail_20' ) end [2025-02-17 22:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:43:24] Production.INFO: ==13160== Releasing lock... [2025-02-17 22:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:43:24] Production.INFO: 35.25 MB #Memory Used# [2025-02-17 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:44:05 [end_date_ymd] => 2025-02-17 22:44:05 [RateCDR] => 1 ) [2025-02-17 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:44:05' and `end` < '2025-02-17 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:44:19] Production.INFO: count ==962 [2025-02-17 22:44:19] Production.ERROR: pbx CDR StartTime 2025-02-17 19:44:05 - End Time 2025-02-17 22:44:05 [2025-02-17 22:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498865', 'tblTempUsageDetail_20' ) start [2025-02-17 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498865', 'tblTempUsageDetail_20' ) end [2025-02-17 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498865', 'tblTempVendorCDR_20' ) start [2025-02-17 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498865', 'tblTempVendorCDR_20' ) end [2025-02-17 22:44:19] Production.INFO: ProcessCDR(1,14498865,1,1,2) [2025-02-17 22:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498865', 'tblTempUsageDetail_20' ) start [2025-02-17 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498865', 'tblTempUsageDetail_20' ) end [2025-02-17 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:44:22] Production.INFO: ==13232== Releasing lock... [2025-02-17 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:44:22] Production.INFO: 35 MB #Memory Used# [2025-02-17 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:45:05 [end_date_ymd] => 2025-02-17 22:45:05 [RateCDR] => 1 ) [2025-02-17 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:45:05' and `end` < '2025-02-17 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:45:18] Production.INFO: count ==962 [2025-02-17 22:45:18] Production.ERROR: pbx CDR StartTime 2025-02-17 19:45:05 - End Time 2025-02-17 22:45:05 [2025-02-17 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498870', 'tblTempUsageDetail_20' ) start [2025-02-17 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498870', 'tblTempUsageDetail_20' ) end [2025-02-17 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498870', 'tblTempVendorCDR_20' ) start [2025-02-17 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498870', 'tblTempVendorCDR_20' ) end [2025-02-17 22:45:18] Production.INFO: ProcessCDR(1,14498870,1,1,2) [2025-02-17 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498870', 'tblTempUsageDetail_20' ) start [2025-02-17 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498870', 'tblTempUsageDetail_20' ) end [2025-02-17 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:45:21] Production.INFO: ==13303== Releasing lock... [2025-02-17 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:45:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-17 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:46:05 [end_date_ymd] => 2025-02-17 22:46:05 [RateCDR] => 1 ) [2025-02-17 22:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:46:05' and `end` < '2025-02-17 22:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:46:18] Production.INFO: count ==963 [2025-02-17 22:46:18] Production.ERROR: pbx CDR StartTime 2025-02-17 19:46:05 - End Time 2025-02-17 22:46:05 [2025-02-17 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498875', 'tblTempUsageDetail_20' ) start [2025-02-17 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498875', 'tblTempUsageDetail_20' ) end [2025-02-17 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498875', 'tblTempVendorCDR_20' ) start [2025-02-17 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498875', 'tblTempVendorCDR_20' ) end [2025-02-17 22:46:18] Production.INFO: ProcessCDR(1,14498875,1,1,2) [2025-02-17 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498875', 'tblTempUsageDetail_20' ) start [2025-02-17 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498875', 'tblTempUsageDetail_20' ) end [2025-02-17 22:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:46:23] Production.INFO: ==13373== Releasing lock... [2025-02-17 22:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:46:23] Production.INFO: 35 MB #Memory Used# [2025-02-17 22:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:47:04 [end_date_ymd] => 2025-02-17 22:47:04 [RateCDR] => 1 ) [2025-02-17 22:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:47:04' and `end` < '2025-02-17 22:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:47:17] Production.INFO: count ==938 [2025-02-17 22:47:18] Production.ERROR: pbx CDR StartTime 2025-02-17 19:47:04 - End Time 2025-02-17 22:47:04 [2025-02-17 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498880', 'tblTempUsageDetail_20' ) start [2025-02-17 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498880', 'tblTempUsageDetail_20' ) end [2025-02-17 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498880', 'tblTempVendorCDR_20' ) start [2025-02-17 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498880', 'tblTempVendorCDR_20' ) end [2025-02-17 22:47:18] Production.INFO: ProcessCDR(1,14498880,1,1,2) [2025-02-17 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498880', 'tblTempUsageDetail_20' ) start [2025-02-17 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498880', 'tblTempUsageDetail_20' ) end [2025-02-17 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:47:21] Production.INFO: ==13449== Releasing lock... [2025-02-17 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:47:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-17 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:48:05 [end_date_ymd] => 2025-02-17 22:48:05 [RateCDR] => 1 ) [2025-02-17 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:48:05' and `end` < '2025-02-17 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:48:18] Production.INFO: count ==931 [2025-02-17 22:48:18] Production.ERROR: pbx CDR StartTime 2025-02-17 19:48:05 - End Time 2025-02-17 22:48:05 [2025-02-17 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498885', 'tblTempUsageDetail_20' ) start [2025-02-17 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498885', 'tblTempUsageDetail_20' ) end [2025-02-17 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498885', 'tblTempVendorCDR_20' ) start [2025-02-17 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498885', 'tblTempVendorCDR_20' ) end [2025-02-17 22:48:18] Production.INFO: ProcessCDR(1,14498885,1,1,2) [2025-02-17 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498885', 'tblTempUsageDetail_20' ) start [2025-02-17 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498885', 'tblTempUsageDetail_20' ) end [2025-02-17 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:48:21] Production.INFO: ==13522== Releasing lock... [2025-02-17 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:48:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-17 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:49:05 [end_date_ymd] => 2025-02-17 22:49:05 [RateCDR] => 1 ) [2025-02-17 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:49:05' and `end` < '2025-02-17 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:49:18] Production.INFO: count ==931 [2025-02-17 22:49:18] Production.ERROR: pbx CDR StartTime 2025-02-17 19:49:05 - End Time 2025-02-17 22:49:05 [2025-02-17 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498890', 'tblTempUsageDetail_20' ) start [2025-02-17 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498890', 'tblTempUsageDetail_20' ) end [2025-02-17 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498890', 'tblTempVendorCDR_20' ) start [2025-02-17 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498890', 'tblTempVendorCDR_20' ) end [2025-02-17 22:49:18] Production.INFO: ProcessCDR(1,14498890,1,1,2) [2025-02-17 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498890', 'tblTempUsageDetail_20' ) start [2025-02-17 22:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498890', 'tblTempUsageDetail_20' ) end [2025-02-17 22:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:49:23] Production.INFO: ==13592== Releasing lock... [2025-02-17 22:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:49:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-17 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:50:06 [end_date_ymd] => 2025-02-17 22:50:06 [RateCDR] => 1 ) [2025-02-17 22:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:50:06' and `end` < '2025-02-17 22:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:50:19] Production.INFO: count ==932 [2025-02-17 22:50:19] Production.ERROR: pbx CDR StartTime 2025-02-17 19:50:06 - End Time 2025-02-17 22:50:06 [2025-02-17 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498896', 'tblTempUsageDetail_20' ) start [2025-02-17 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498896', 'tblTempUsageDetail_20' ) end [2025-02-17 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498896', 'tblTempVendorCDR_20' ) start [2025-02-17 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498896', 'tblTempVendorCDR_20' ) end [2025-02-17 22:50:19] Production.INFO: ProcessCDR(1,14498896,1,1,2) [2025-02-17 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498896', 'tblTempUsageDetail_20' ) start [2025-02-17 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498896', 'tblTempUsageDetail_20' ) end [2025-02-17 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:50:22] Production.INFO: ==13666== Releasing lock... [2025-02-17 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:50:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-17 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:51:05 [end_date_ymd] => 2025-02-17 22:51:05 [RateCDR] => 1 ) [2025-02-17 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:51:05' and `end` < '2025-02-17 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:51:18] Production.INFO: count ==921 [2025-02-17 22:51:18] Production.ERROR: pbx CDR StartTime 2025-02-17 19:51:05 - End Time 2025-02-17 22:51:05 [2025-02-17 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498901', 'tblTempUsageDetail_20' ) start [2025-02-17 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498901', 'tblTempUsageDetail_20' ) end [2025-02-17 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498901', 'tblTempVendorCDR_20' ) start [2025-02-17 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498901', 'tblTempVendorCDR_20' ) end [2025-02-17 22:51:18] Production.INFO: ProcessCDR(1,14498901,1,1,2) [2025-02-17 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498901', 'tblTempUsageDetail_20' ) start [2025-02-17 22:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498901', 'tblTempUsageDetail_20' ) end [2025-02-17 22:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:51:23] Production.INFO: ==13745== Releasing lock... [2025-02-17 22:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:51:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-17 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:52:05 [end_date_ymd] => 2025-02-17 22:52:05 [RateCDR] => 1 ) [2025-02-17 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:52:05' and `end` < '2025-02-17 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:52:18] Production.INFO: count ==918 [2025-02-17 22:52:18] Production.ERROR: pbx CDR StartTime 2025-02-17 19:52:05 - End Time 2025-02-17 22:52:05 [2025-02-17 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498906', 'tblTempUsageDetail_20' ) start [2025-02-17 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498906', 'tblTempUsageDetail_20' ) end [2025-02-17 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498906', 'tblTempVendorCDR_20' ) start [2025-02-17 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498906', 'tblTempVendorCDR_20' ) end [2025-02-17 22:52:18] Production.INFO: ProcessCDR(1,14498906,1,1,2) [2025-02-17 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498906', 'tblTempUsageDetail_20' ) start [2025-02-17 22:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498906', 'tblTempUsageDetail_20' ) end [2025-02-17 22:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:52:23] Production.INFO: ==13819== Releasing lock... [2025-02-17 22:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:52:23] Production.INFO: 34 MB #Memory Used# [2025-02-17 22:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:53:04 [end_date_ymd] => 2025-02-17 22:53:04 [RateCDR] => 1 ) [2025-02-17 22:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:53:04' and `end` < '2025-02-17 22:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:53:18] Production.INFO: count ==916 [2025-02-17 22:53:19] Production.ERROR: pbx CDR StartTime 2025-02-17 19:53:04 - End Time 2025-02-17 22:53:04 [2025-02-17 22:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498911', 'tblTempUsageDetail_20' ) start [2025-02-17 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498911', 'tblTempUsageDetail_20' ) end [2025-02-17 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498911', 'tblTempVendorCDR_20' ) start [2025-02-17 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498911', 'tblTempVendorCDR_20' ) end [2025-02-17 22:53:19] Production.INFO: ProcessCDR(1,14498911,1,1,2) [2025-02-17 22:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498911', 'tblTempUsageDetail_20' ) start [2025-02-17 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498911', 'tblTempUsageDetail_20' ) end [2025-02-17 22:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:53:23] Production.INFO: ==13933== Releasing lock... [2025-02-17 22:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:53:23] Production.INFO: 34 MB #Memory Used# [2025-02-17 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:54:05 [end_date_ymd] => 2025-02-17 22:54:05 [RateCDR] => 1 ) [2025-02-17 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:54:05' and `end` < '2025-02-17 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:54:19] Production.INFO: count ==913 [2025-02-17 22:54:19] Production.ERROR: pbx CDR StartTime 2025-02-17 19:54:05 - End Time 2025-02-17 22:54:05 [2025-02-17 22:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498916', 'tblTempUsageDetail_20' ) start [2025-02-17 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498916', 'tblTempUsageDetail_20' ) end [2025-02-17 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498916', 'tblTempVendorCDR_20' ) start [2025-02-17 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498916', 'tblTempVendorCDR_20' ) end [2025-02-17 22:54:19] Production.INFO: ProcessCDR(1,14498916,1,1,2) [2025-02-17 22:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498916', 'tblTempUsageDetail_20' ) start [2025-02-17 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498916', 'tblTempUsageDetail_20' ) end [2025-02-17 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:54:22] Production.INFO: ==14011== Releasing lock... [2025-02-17 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:54:22] Production.INFO: 34 MB #Memory Used# [2025-02-17 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:55:05 [end_date_ymd] => 2025-02-17 22:55:05 [RateCDR] => 1 ) [2025-02-17 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:55:05' and `end` < '2025-02-17 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:55:18] Production.INFO: count ==913 [2025-02-17 22:55:18] Production.ERROR: pbx CDR StartTime 2025-02-17 19:55:05 - End Time 2025-02-17 22:55:05 [2025-02-17 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498921', 'tblTempUsageDetail_20' ) start [2025-02-17 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498921', 'tblTempUsageDetail_20' ) end [2025-02-17 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498921', 'tblTempVendorCDR_20' ) start [2025-02-17 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498921', 'tblTempVendorCDR_20' ) end [2025-02-17 22:55:18] Production.INFO: ProcessCDR(1,14498921,1,1,2) [2025-02-17 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498921', 'tblTempUsageDetail_20' ) start [2025-02-17 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498921', 'tblTempUsageDetail_20' ) end [2025-02-17 22:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:55:23] Production.INFO: ==14091== Releasing lock... [2025-02-17 22:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:55:23] Production.INFO: 34 MB #Memory Used# [2025-02-17 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:56:05 [end_date_ymd] => 2025-02-17 22:56:05 [RateCDR] => 1 ) [2025-02-17 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:56:05' and `end` < '2025-02-17 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:56:18] Production.INFO: count ==913 [2025-02-17 22:56:18] Production.ERROR: pbx CDR StartTime 2025-02-17 19:56:05 - End Time 2025-02-17 22:56:05 [2025-02-17 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498926', 'tblTempUsageDetail_20' ) start [2025-02-17 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498926', 'tblTempUsageDetail_20' ) end [2025-02-17 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498926', 'tblTempVendorCDR_20' ) start [2025-02-17 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498926', 'tblTempVendorCDR_20' ) end [2025-02-17 22:56:18] Production.INFO: ProcessCDR(1,14498926,1,1,2) [2025-02-17 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498926', 'tblTempUsageDetail_20' ) start [2025-02-17 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498926', 'tblTempUsageDetail_20' ) end [2025-02-17 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:56:22] Production.INFO: ==14167== Releasing lock... [2025-02-17 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:56:22] Production.INFO: 34 MB #Memory Used# [2025-02-17 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:57:05 [end_date_ymd] => 2025-02-17 22:57:05 [RateCDR] => 1 ) [2025-02-17 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:57:05' and `end` < '2025-02-17 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:57:20] Production.INFO: count ==910 [2025-02-17 22:57:20] Production.ERROR: pbx CDR StartTime 2025-02-17 19:57:05 - End Time 2025-02-17 22:57:05 [2025-02-17 22:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498931', 'tblTempUsageDetail_20' ) start [2025-02-17 22:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498931', 'tblTempUsageDetail_20' ) end [2025-02-17 22:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498931', 'tblTempVendorCDR_20' ) start [2025-02-17 22:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498931', 'tblTempVendorCDR_20' ) end [2025-02-17 22:57:20] Production.INFO: ProcessCDR(1,14498931,1,1,2) [2025-02-17 22:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498931', 'tblTempUsageDetail_20' ) start [2025-02-17 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498931', 'tblTempUsageDetail_20' ) end [2025-02-17 22:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:57:23] Production.INFO: ==14247== Releasing lock... [2025-02-17 22:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:57:23] Production.INFO: 34 MB #Memory Used# [2025-02-17 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:58:05 [end_date_ymd] => 2025-02-17 22:58:05 [RateCDR] => 1 ) [2025-02-17 22:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:58:05' and `end` < '2025-02-17 22:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:58:18] Production.INFO: count ==903 [2025-02-17 22:58:18] Production.ERROR: pbx CDR StartTime 2025-02-17 19:58:05 - End Time 2025-02-17 22:58:05 [2025-02-17 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498936', 'tblTempUsageDetail_20' ) start [2025-02-17 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498936', 'tblTempUsageDetail_20' ) end [2025-02-17 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498936', 'tblTempVendorCDR_20' ) start [2025-02-17 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498936', 'tblTempVendorCDR_20' ) end [2025-02-17 22:58:18] Production.INFO: ProcessCDR(1,14498936,1,1,2) [2025-02-17 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498936', 'tblTempUsageDetail_20' ) start [2025-02-17 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498936', 'tblTempUsageDetail_20' ) end [2025-02-17 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:58:21] Production.INFO: ==14327== Releasing lock... [2025-02-17 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:58:21] Production.INFO: 34 MB #Memory Used# [2025-02-17 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 19:59:05 [end_date_ymd] => 2025-02-17 22:59:05 [RateCDR] => 1 ) [2025-02-17 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 19:59:05' and `end` < '2025-02-17 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 22:59:19] Production.INFO: count ==903 [2025-02-17 22:59:19] Production.ERROR: pbx CDR StartTime 2025-02-17 19:59:05 - End Time 2025-02-17 22:59:05 [2025-02-17 22:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498941', 'tblTempUsageDetail_20' ) start [2025-02-17 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498941', 'tblTempUsageDetail_20' ) end [2025-02-17 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498941', 'tblTempVendorCDR_20' ) start [2025-02-17 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498941', 'tblTempVendorCDR_20' ) end [2025-02-17 22:59:19] Production.INFO: ProcessCDR(1,14498941,1,1,2) [2025-02-17 22:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 22:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 22:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498941', 'tblTempUsageDetail_20' ) start [2025-02-17 22:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498941', 'tblTempUsageDetail_20' ) end [2025-02-17 22:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 22:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 22:59:23] Production.INFO: ==14415== Releasing lock... [2025-02-17 22:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 22:59:23] Production.INFO: 34 MB #Memory Used# [2025-02-17 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:00:06 [end_date_ymd] => 2025-02-17 23:00:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 20:00:06' and `end` < '2025-02-17 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-02-17 23:00:19] Production.INFO: count ==900 [2025-02-17 23:00:19] Production.ERROR: pbx CDR StartTime 2025-02-17 20:00:06 - End Time 2025-02-17 23:00:06 [2025-02-17 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498947', 'tblTempUsageDetail_20' ) start [2025-02-17 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498947', 'tblTempUsageDetail_20' ) end [2025-02-17 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498947', 'tblTempVendorCDR_20' ) start [2025-02-17 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498947', 'tblTempVendorCDR_20' ) end [2025-02-17 23:00:19] Production.INFO: ProcessCDR(1,14498947,1,1,2) [2025-02-17 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498947', 'tblTempUsageDetail_20' ) start [2025-02-17 23:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498947', 'tblTempUsageDetail_20' ) end [2025-02-17 23:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:00:24] Production.INFO: ==14504== Releasing lock... [2025-02-17 23:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:00:24] Production.INFO: 34 MB #Memory Used# [2025-02-17 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:01:05 [end_date_ymd] => 2025-02-17 23:01:05 [RateCDR] => 1 ) [2025-02-17 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:01:05' and `end` < '2025-02-17 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:01:18] Production.INFO: count ==904 [2025-02-17 23:01:18] Production.ERROR: pbx CDR StartTime 2025-02-17 20:01:05 - End Time 2025-02-17 23:01:05 [2025-02-17 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498952', 'tblTempUsageDetail_20' ) start [2025-02-17 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498952', 'tblTempUsageDetail_20' ) end [2025-02-17 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498952', 'tblTempVendorCDR_20' ) start [2025-02-17 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498952', 'tblTempVendorCDR_20' ) end [2025-02-17 23:01:18] Production.INFO: ProcessCDR(1,14498952,1,1,2) [2025-02-17 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498952', 'tblTempUsageDetail_20' ) start [2025-02-17 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498952', 'tblTempUsageDetail_20' ) end [2025-02-17 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:01:22] Production.INFO: ==14599== Releasing lock... [2025-02-17 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:01:22] Production.INFO: 34 MB #Memory Used# [2025-02-17 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:02:05 [end_date_ymd] => 2025-02-17 23:02:05 [RateCDR] => 1 ) [2025-02-17 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:02:05' and `end` < '2025-02-17 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:02:19] Production.INFO: count ==904 [2025-02-17 23:02:19] Production.ERROR: pbx CDR StartTime 2025-02-17 20:02:05 - End Time 2025-02-17 23:02:05 [2025-02-17 23:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498957', 'tblTempUsageDetail_20' ) start [2025-02-17 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498957', 'tblTempUsageDetail_20' ) end [2025-02-17 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498957', 'tblTempVendorCDR_20' ) start [2025-02-17 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498957', 'tblTempVendorCDR_20' ) end [2025-02-17 23:02:19] Production.INFO: ProcessCDR(1,14498957,1,1,2) [2025-02-17 23:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498957', 'tblTempUsageDetail_20' ) start [2025-02-17 23:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498957', 'tblTempUsageDetail_20' ) end [2025-02-17 23:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:02:24] Production.INFO: ==14757== Releasing lock... [2025-02-17 23:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:02:24] Production.INFO: 34 MB #Memory Used# [2025-02-17 23:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:03:06 [end_date_ymd] => 2025-02-17 23:03:06 [RateCDR] => 1 ) [2025-02-17 23:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:03:06' and `end` < '2025-02-17 23:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:03:21] Production.INFO: count ==904 [2025-02-17 23:03:21] Production.ERROR: pbx CDR StartTime 2025-02-17 20:03:06 - End Time 2025-02-17 23:03:06 [2025-02-17 23:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498962', 'tblTempUsageDetail_20' ) start [2025-02-17 23:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498962', 'tblTempUsageDetail_20' ) end [2025-02-17 23:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498962', 'tblTempVendorCDR_20' ) start [2025-02-17 23:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498962', 'tblTempVendorCDR_20' ) end [2025-02-17 23:03:21] Production.INFO: ProcessCDR(1,14498962,1,1,2) [2025-02-17 23:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498962', 'tblTempUsageDetail_20' ) start [2025-02-17 23:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498962', 'tblTempUsageDetail_20' ) end [2025-02-17 23:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:03:24] Production.INFO: ==14845== Releasing lock... [2025-02-17 23:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:03:24] Production.INFO: 34 MB #Memory Used# [2025-02-17 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:04:05 [end_date_ymd] => 2025-02-17 23:04:05 [RateCDR] => 1 ) [2025-02-17 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:04:05' and `end` < '2025-02-17 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:04:18] Production.INFO: count ==903 [2025-02-17 23:04:18] Production.ERROR: pbx CDR StartTime 2025-02-17 20:04:05 - End Time 2025-02-17 23:04:05 [2025-02-17 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498967', 'tblTempUsageDetail_20' ) start [2025-02-17 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498967', 'tblTempUsageDetail_20' ) end [2025-02-17 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498967', 'tblTempVendorCDR_20' ) start [2025-02-17 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498967', 'tblTempVendorCDR_20' ) end [2025-02-17 23:04:18] Production.INFO: ProcessCDR(1,14498967,1,1,2) [2025-02-17 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498967', 'tblTempUsageDetail_20' ) start [2025-02-17 23:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498967', 'tblTempUsageDetail_20' ) end [2025-02-17 23:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:04:23] Production.INFO: ==14930== Releasing lock... [2025-02-17 23:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:04:23] Production.INFO: 34 MB #Memory Used# [2025-02-17 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:05:05 [end_date_ymd] => 2025-02-17 23:05:05 [RateCDR] => 1 ) [2025-02-17 23:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:05:05' and `end` < '2025-02-17 23:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:05:18] Production.INFO: count ==898 [2025-02-17 23:05:18] Production.ERROR: pbx CDR StartTime 2025-02-17 20:05:05 - End Time 2025-02-17 23:05:05 [2025-02-17 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498972', 'tblTempUsageDetail_20' ) start [2025-02-17 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498972', 'tblTempUsageDetail_20' ) end [2025-02-17 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498972', 'tblTempVendorCDR_20' ) start [2025-02-17 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498972', 'tblTempVendorCDR_20' ) end [2025-02-17 23:05:18] Production.INFO: ProcessCDR(1,14498972,1,1,2) [2025-02-17 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498972', 'tblTempUsageDetail_20' ) start [2025-02-17 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498972', 'tblTempUsageDetail_20' ) end [2025-02-17 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:05:21] Production.INFO: ==15104== Releasing lock... [2025-02-17 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:05:21] Production.INFO: 34 MB #Memory Used# [2025-02-17 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:06:05 [end_date_ymd] => 2025-02-17 23:06:05 [RateCDR] => 1 ) [2025-02-17 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:06:05' and `end` < '2025-02-17 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:06:18] Production.INFO: count ==896 [2025-02-17 23:06:18] Production.ERROR: pbx CDR StartTime 2025-02-17 20:06:05 - End Time 2025-02-17 23:06:05 [2025-02-17 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498977', 'tblTempUsageDetail_20' ) start [2025-02-17 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498977', 'tblTempUsageDetail_20' ) end [2025-02-17 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498977', 'tblTempVendorCDR_20' ) start [2025-02-17 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498977', 'tblTempVendorCDR_20' ) end [2025-02-17 23:06:18] Production.INFO: ProcessCDR(1,14498977,1,1,2) [2025-02-17 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498977', 'tblTempUsageDetail_20' ) start [2025-02-17 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498977', 'tblTempUsageDetail_20' ) end [2025-02-17 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:06:21] Production.INFO: ==15194== Releasing lock... [2025-02-17 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:06:21] Production.INFO: 34 MB #Memory Used# [2025-02-17 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:07:05 [end_date_ymd] => 2025-02-17 23:07:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 20:07:05' and `end` < '2025-02-17 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-02-17 23:07:18] Production.INFO: count ==895 [2025-02-17 23:07:18] Production.ERROR: pbx CDR StartTime 2025-02-17 20:07:05 - End Time 2025-02-17 23:07:05 [2025-02-17 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498982', 'tblTempUsageDetail_20' ) start [2025-02-17 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498982', 'tblTempUsageDetail_20' ) end [2025-02-17 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498982', 'tblTempVendorCDR_20' ) start [2025-02-17 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498982', 'tblTempVendorCDR_20' ) end [2025-02-17 23:07:18] Production.INFO: ProcessCDR(1,14498982,1,1,2) [2025-02-17 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498982', 'tblTempUsageDetail_20' ) start [2025-02-17 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498982', 'tblTempUsageDetail_20' ) end [2025-02-17 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:07:21] Production.INFO: ==15283== Releasing lock... [2025-02-17 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:07:21] Production.INFO: 34 MB #Memory Used# [2025-02-17 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:08:05 [end_date_ymd] => 2025-02-17 23:08:05 [RateCDR] => 1 ) [2025-02-17 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:08:05' and `end` < '2025-02-17 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:08:19] Production.INFO: count ==895 [2025-02-17 23:08:20] Production.ERROR: pbx CDR StartTime 2025-02-17 20:08:05 - End Time 2025-02-17 23:08:05 [2025-02-17 23:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498987', 'tblTempUsageDetail_20' ) start [2025-02-17 23:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498987', 'tblTempUsageDetail_20' ) end [2025-02-17 23:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498987', 'tblTempVendorCDR_20' ) start [2025-02-17 23:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498987', 'tblTempVendorCDR_20' ) end [2025-02-17 23:08:20] Production.INFO: ProcessCDR(1,14498987,1,1,2) [2025-02-17 23:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498987', 'tblTempUsageDetail_20' ) start [2025-02-17 23:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498987', 'tblTempUsageDetail_20' ) end [2025-02-17 23:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:08:23] Production.INFO: ==15377== Releasing lock... [2025-02-17 23:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:08:23] Production.INFO: 34 MB #Memory Used# [2025-02-17 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:09:05 [end_date_ymd] => 2025-02-17 23:09:05 [RateCDR] => 1 ) [2025-02-17 23:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:09:05' and `end` < '2025-02-17 23:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:09:18] Production.INFO: count ==890 [2025-02-17 23:09:18] Production.ERROR: pbx CDR StartTime 2025-02-17 20:09:05 - End Time 2025-02-17 23:09:05 [2025-02-17 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498992', 'tblTempUsageDetail_20' ) start [2025-02-17 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498992', 'tblTempUsageDetail_20' ) end [2025-02-17 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498992', 'tblTempVendorCDR_20' ) start [2025-02-17 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498992', 'tblTempVendorCDR_20' ) end [2025-02-17 23:09:18] Production.INFO: ProcessCDR(1,14498992,1,1,2) [2025-02-17 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498992', 'tblTempUsageDetail_20' ) start [2025-02-17 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498992', 'tblTempUsageDetail_20' ) end [2025-02-17 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:09:21] Production.INFO: ==15586== Releasing lock... [2025-02-17 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:09:21] Production.INFO: 34 MB #Memory Used# [2025-02-17 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:10:06 [end_date_ymd] => 2025-02-17 23:10:06 [RateCDR] => 1 ) [2025-02-17 23:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:10:06' and `end` < '2025-02-17 23:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:10:19] Production.INFO: count ==890 [2025-02-17 23:10:19] Production.ERROR: pbx CDR StartTime 2025-02-17 20:10:06 - End Time 2025-02-17 23:10:06 [2025-02-17 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498997', 'tblTempUsageDetail_20' ) start [2025-02-17 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14498997', 'tblTempUsageDetail_20' ) end [2025-02-17 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498997', 'tblTempVendorCDR_20' ) start [2025-02-17 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14498997', 'tblTempVendorCDR_20' ) end [2025-02-17 23:10:19] Production.INFO: ProcessCDR(1,14498997,1,1,2) [2025-02-17 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14498997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14498997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14498997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14498997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498997', 'tblTempUsageDetail_20' ) start [2025-02-17 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14498997', 'tblTempUsageDetail_20' ) end [2025-02-17 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:10:22] Production.INFO: ==15690== Releasing lock... [2025-02-17 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:10:22] Production.INFO: 34 MB #Memory Used# [2025-02-17 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:11:05 [end_date_ymd] => 2025-02-17 23:11:05 [RateCDR] => 1 ) [2025-02-17 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:11:05' and `end` < '2025-02-17 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:11:19] Production.INFO: count ==844 [2025-02-17 23:11:19] Production.ERROR: pbx CDR StartTime 2025-02-17 20:11:05 - End Time 2025-02-17 23:11:05 [2025-02-17 23:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499003', 'tblTempUsageDetail_20' ) start [2025-02-17 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499003', 'tblTempUsageDetail_20' ) end [2025-02-17 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499003', 'tblTempVendorCDR_20' ) start [2025-02-17 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499003', 'tblTempVendorCDR_20' ) end [2025-02-17 23:11:19] Production.INFO: ProcessCDR(1,14499003,1,1,2) [2025-02-17 23:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499003', 'tblTempUsageDetail_20' ) start [2025-02-17 23:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499003', 'tblTempUsageDetail_20' ) end [2025-02-17 23:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:11:24] Production.INFO: ==15775== Releasing lock... [2025-02-17 23:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:11:24] Production.INFO: 33.5 MB #Memory Used# [2025-02-17 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:12:05 [end_date_ymd] => 2025-02-17 23:12:05 [RateCDR] => 1 ) [2025-02-17 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:12:05' and `end` < '2025-02-17 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:12:19] Production.INFO: count ==841 [2025-02-17 23:12:20] Production.ERROR: pbx CDR StartTime 2025-02-17 20:12:05 - End Time 2025-02-17 23:12:05 [2025-02-17 23:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499008', 'tblTempUsageDetail_20' ) start [2025-02-17 23:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499008', 'tblTempUsageDetail_20' ) end [2025-02-17 23:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499008', 'tblTempVendorCDR_20' ) start [2025-02-17 23:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499008', 'tblTempVendorCDR_20' ) end [2025-02-17 23:12:20] Production.INFO: ProcessCDR(1,14499008,1,1,2) [2025-02-17 23:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499008', 'tblTempUsageDetail_20' ) start [2025-02-17 23:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499008', 'tblTempUsageDetail_20' ) end [2025-02-17 23:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:12:23] Production.INFO: ==15937== Releasing lock... [2025-02-17 23:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:12:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-17 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:13:05 [end_date_ymd] => 2025-02-17 23:13:05 [RateCDR] => 1 ) [2025-02-17 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:13:05' and `end` < '2025-02-17 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:13:18] Production.INFO: count ==838 [2025-02-17 23:13:18] Production.ERROR: pbx CDR StartTime 2025-02-17 20:13:05 - End Time 2025-02-17 23:13:05 [2025-02-17 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499013', 'tblTempUsageDetail_20' ) start [2025-02-17 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499013', 'tblTempUsageDetail_20' ) end [2025-02-17 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499013', 'tblTempVendorCDR_20' ) start [2025-02-17 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499013', 'tblTempVendorCDR_20' ) end [2025-02-17 23:13:18] Production.INFO: ProcessCDR(1,14499013,1,1,2) [2025-02-17 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499013', 'tblTempUsageDetail_20' ) start [2025-02-17 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499013', 'tblTempUsageDetail_20' ) end [2025-02-17 23:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:13:22] Production.INFO: ==16023== Releasing lock... [2025-02-17 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:13:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-17 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:14:05 [end_date_ymd] => 2025-02-17 23:14:05 [RateCDR] => 1 ) [2025-02-17 23:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:14:05' and `end` < '2025-02-17 23:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:14:18] Production.INFO: count ==834 [2025-02-17 23:14:18] Production.ERROR: pbx CDR StartTime 2025-02-17 20:14:05 - End Time 2025-02-17 23:14:05 [2025-02-17 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499018', 'tblTempUsageDetail_20' ) start [2025-02-17 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499018', 'tblTempUsageDetail_20' ) end [2025-02-17 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499018', 'tblTempVendorCDR_20' ) start [2025-02-17 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499018', 'tblTempVendorCDR_20' ) end [2025-02-17 23:14:18] Production.INFO: ProcessCDR(1,14499018,1,1,2) [2025-02-17 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499018', 'tblTempUsageDetail_20' ) start [2025-02-17 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499018', 'tblTempUsageDetail_20' ) end [2025-02-17 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:14:22] Production.INFO: ==16112== Releasing lock... [2025-02-17 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:14:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-17 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:15:05 [end_date_ymd] => 2025-02-17 23:15:05 [RateCDR] => 1 ) [2025-02-17 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:15:05' and `end` < '2025-02-17 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:15:17] Production.INFO: count ==829 [2025-02-17 23:15:18] Production.ERROR: pbx CDR StartTime 2025-02-17 20:15:05 - End Time 2025-02-17 23:15:05 [2025-02-17 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499023', 'tblTempUsageDetail_20' ) start [2025-02-17 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499023', 'tblTempUsageDetail_20' ) end [2025-02-17 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499023', 'tblTempVendorCDR_20' ) start [2025-02-17 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499023', 'tblTempVendorCDR_20' ) end [2025-02-17 23:15:18] Production.INFO: ProcessCDR(1,14499023,1,1,2) [2025-02-17 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499023', 'tblTempUsageDetail_20' ) start [2025-02-17 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499023', 'tblTempUsageDetail_20' ) end [2025-02-17 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:15:21] Production.INFO: ==16205== Releasing lock... [2025-02-17 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:15:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-17 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:16:05 [end_date_ymd] => 2025-02-17 23:16:05 [RateCDR] => 1 ) [2025-02-17 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:16:05' and `end` < '2025-02-17 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:16:17] Production.INFO: count ==829 [2025-02-17 23:16:18] Production.ERROR: pbx CDR StartTime 2025-02-17 20:16:05 - End Time 2025-02-17 23:16:05 [2025-02-17 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499028', 'tblTempUsageDetail_20' ) start [2025-02-17 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499028', 'tblTempUsageDetail_20' ) end [2025-02-17 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499028', 'tblTempVendorCDR_20' ) start [2025-02-17 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499028', 'tblTempVendorCDR_20' ) end [2025-02-17 23:16:18] Production.INFO: ProcessCDR(1,14499028,1,1,2) [2025-02-17 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499028', 'tblTempUsageDetail_20' ) start [2025-02-17 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499028', 'tblTempUsageDetail_20' ) end [2025-02-17 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:16:21] Production.INFO: ==16367== Releasing lock... [2025-02-17 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:16:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-17 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:17:05 [end_date_ymd] => 2025-02-17 23:17:05 [RateCDR] => 1 ) [2025-02-17 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:17:05' and `end` < '2025-02-17 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:17:18] Production.INFO: count ==823 [2025-02-17 23:17:19] Production.ERROR: pbx CDR StartTime 2025-02-17 20:17:05 - End Time 2025-02-17 23:17:05 [2025-02-17 23:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499033', 'tblTempUsageDetail_20' ) start [2025-02-17 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499033', 'tblTempUsageDetail_20' ) end [2025-02-17 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499033', 'tblTempVendorCDR_20' ) start [2025-02-17 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499033', 'tblTempVendorCDR_20' ) end [2025-02-17 23:17:19] Production.INFO: ProcessCDR(1,14499033,1,1,2) [2025-02-17 23:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499033', 'tblTempUsageDetail_20' ) start [2025-02-17 23:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499033', 'tblTempUsageDetail_20' ) end [2025-02-17 23:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:17:23] Production.INFO: ==16453== Releasing lock... [2025-02-17 23:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:17:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-17 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:18:05 [end_date_ymd] => 2025-02-17 23:18:05 [RateCDR] => 1 ) [2025-02-17 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:18:05' and `end` < '2025-02-17 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:18:20] Production.INFO: count ==819 [2025-02-17 23:18:20] Production.ERROR: pbx CDR StartTime 2025-02-17 20:18:05 - End Time 2025-02-17 23:18:05 [2025-02-17 23:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499038', 'tblTempUsageDetail_20' ) start [2025-02-17 23:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499038', 'tblTempUsageDetail_20' ) end [2025-02-17 23:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499038', 'tblTempVendorCDR_20' ) start [2025-02-17 23:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499038', 'tblTempVendorCDR_20' ) end [2025-02-17 23:18:20] Production.INFO: ProcessCDR(1,14499038,1,1,2) [2025-02-17 23:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499038', 'tblTempUsageDetail_20' ) start [2025-02-17 23:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499038', 'tblTempUsageDetail_20' ) end [2025-02-17 23:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:18:23] Production.INFO: ==16548== Releasing lock... [2025-02-17 23:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:18:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-17 23:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:19:06 [end_date_ymd] => 2025-02-17 23:19:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 20:19:06' and `end` < '2025-02-17 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-02-17 23:19:19] Production.INFO: count ==817 [2025-02-17 23:19:19] Production.ERROR: pbx CDR StartTime 2025-02-17 20:19:06 - End Time 2025-02-17 23:19:06 [2025-02-17 23:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499043', 'tblTempUsageDetail_20' ) start [2025-02-17 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499043', 'tblTempUsageDetail_20' ) end [2025-02-17 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499043', 'tblTempVendorCDR_20' ) start [2025-02-17 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499043', 'tblTempVendorCDR_20' ) end [2025-02-17 23:19:19] Production.INFO: ProcessCDR(1,14499043,1,1,2) [2025-02-17 23:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499043', 'tblTempUsageDetail_20' ) start [2025-02-17 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499043', 'tblTempUsageDetail_20' ) end [2025-02-17 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:19:22] Production.INFO: ==16637== Releasing lock... [2025-02-17 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:19:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-17 23:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:20:05 [end_date_ymd] => 2025-02-17 23:20:05 [RateCDR] => 1 ) [2025-02-17 23:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:20:05' and `end` < '2025-02-17 23:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:20:19] Production.INFO: count ==818 [2025-02-17 23:20:19] Production.ERROR: pbx CDR StartTime 2025-02-17 20:20:05 - End Time 2025-02-17 23:20:05 [2025-02-17 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499048', 'tblTempUsageDetail_20' ) start [2025-02-17 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499048', 'tblTempUsageDetail_20' ) end [2025-02-17 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499048', 'tblTempVendorCDR_20' ) start [2025-02-17 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499048', 'tblTempVendorCDR_20' ) end [2025-02-17 23:20:19] Production.INFO: ProcessCDR(1,14499048,1,1,2) [2025-02-17 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499048', 'tblTempUsageDetail_20' ) start [2025-02-17 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499048', 'tblTempUsageDetail_20' ) end [2025-02-17 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:20:22] Production.INFO: ==16725== Releasing lock... [2025-02-17 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:20:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-17 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:21:05 [end_date_ymd] => 2025-02-17 23:21:05 [RateCDR] => 1 ) [2025-02-17 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:21:05' and `end` < '2025-02-17 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:21:20] Production.INFO: count ==776 [2025-02-17 23:21:20] Production.ERROR: pbx CDR StartTime 2025-02-17 20:21:05 - End Time 2025-02-17 23:21:05 [2025-02-17 23:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499054', 'tblTempUsageDetail_20' ) start [2025-02-17 23:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499054', 'tblTempUsageDetail_20' ) end [2025-02-17 23:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499054', 'tblTempVendorCDR_20' ) start [2025-02-17 23:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499054', 'tblTempVendorCDR_20' ) end [2025-02-17 23:21:20] Production.INFO: ProcessCDR(1,14499054,1,1,2) [2025-02-17 23:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499054', 'tblTempUsageDetail_20' ) start [2025-02-17 23:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499054', 'tblTempUsageDetail_20' ) end [2025-02-17 23:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:21:23] Production.INFO: ==16809== Releasing lock... [2025-02-17 23:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:21:23] Production.INFO: 33 MB #Memory Used# [2025-02-17 23:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:22:04 [end_date_ymd] => 2025-02-17 23:22:04 [RateCDR] => 1 ) [2025-02-17 23:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:22:04' and `end` < '2025-02-17 23:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:22:19] Production.INFO: count ==776 [2025-02-17 23:22:19] Production.ERROR: pbx CDR StartTime 2025-02-17 20:22:04 - End Time 2025-02-17 23:22:04 [2025-02-17 23:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499059', 'tblTempUsageDetail_20' ) start [2025-02-17 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499059', 'tblTempUsageDetail_20' ) end [2025-02-17 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499059', 'tblTempVendorCDR_20' ) start [2025-02-17 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499059', 'tblTempVendorCDR_20' ) end [2025-02-17 23:22:19] Production.INFO: ProcessCDR(1,14499059,1,1,2) [2025-02-17 23:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499059', 'tblTempUsageDetail_20' ) start [2025-02-17 23:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499059', 'tblTempUsageDetail_20' ) end [2025-02-17 23:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:22:24] Production.INFO: ==16896== Releasing lock... [2025-02-17 23:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:22:24] Production.INFO: 33 MB #Memory Used# [2025-02-17 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:23:05 [end_date_ymd] => 2025-02-17 23:23:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 20:23:05' and `end` < '2025-02-17 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-02-17 23:23:19] Production.INFO: count ==776 [2025-02-17 23:23:19] Production.ERROR: pbx CDR StartTime 2025-02-17 20:23:05 - End Time 2025-02-17 23:23:05 [2025-02-17 23:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499064', 'tblTempUsageDetail_20' ) start [2025-02-17 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499064', 'tblTempUsageDetail_20' ) end [2025-02-17 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499064', 'tblTempVendorCDR_20' ) start [2025-02-17 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499064', 'tblTempVendorCDR_20' ) end [2025-02-17 23:23:19] Production.INFO: ProcessCDR(1,14499064,1,1,2) [2025-02-17 23:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499064', 'tblTempUsageDetail_20' ) start [2025-02-17 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499064', 'tblTempUsageDetail_20' ) end [2025-02-17 23:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:23:22] Production.INFO: ==16990== Releasing lock... [2025-02-17 23:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:23:22] Production.INFO: 33 MB #Memory Used# [2025-02-17 23:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:24:06 [end_date_ymd] => 2025-02-17 23:24:06 [RateCDR] => 1 ) [2025-02-17 23:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:24:06' and `end` < '2025-02-17 23:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:24:21] Production.INFO: count ==774 [2025-02-17 23:24:21] Production.ERROR: pbx CDR StartTime 2025-02-17 20:24:06 - End Time 2025-02-17 23:24:06 [2025-02-17 23:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499069', 'tblTempUsageDetail_20' ) start [2025-02-17 23:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499069', 'tblTempUsageDetail_20' ) end [2025-02-17 23:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499069', 'tblTempVendorCDR_20' ) start [2025-02-17 23:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499069', 'tblTempVendorCDR_20' ) end [2025-02-17 23:24:21] Production.INFO: ProcessCDR(1,14499069,1,1,2) [2025-02-17 23:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499069', 'tblTempUsageDetail_20' ) start [2025-02-17 23:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499069', 'tblTempUsageDetail_20' ) end [2025-02-17 23:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:24:24] Production.INFO: ==17116== Releasing lock... [2025-02-17 23:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:24:24] Production.INFO: 33 MB #Memory Used# [2025-02-17 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:25:05 [end_date_ymd] => 2025-02-17 23:25:05 [RateCDR] => 1 ) [2025-02-17 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:25:05' and `end` < '2025-02-17 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:25:19] Production.INFO: count ==772 [2025-02-17 23:25:19] Production.ERROR: pbx CDR StartTime 2025-02-17 20:25:05 - End Time 2025-02-17 23:25:05 [2025-02-17 23:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499074', 'tblTempUsageDetail_20' ) start [2025-02-17 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499074', 'tblTempUsageDetail_20' ) end [2025-02-17 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499074', 'tblTempVendorCDR_20' ) start [2025-02-17 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499074', 'tblTempVendorCDR_20' ) end [2025-02-17 23:25:19] Production.INFO: ProcessCDR(1,14499074,1,1,2) [2025-02-17 23:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499074', 'tblTempUsageDetail_20' ) start [2025-02-17 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499074', 'tblTempUsageDetail_20' ) end [2025-02-17 23:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:25:24] Production.INFO: ==17208== Releasing lock... [2025-02-17 23:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:25:24] Production.INFO: 33 MB #Memory Used# [2025-02-17 23:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:26:06 [end_date_ymd] => 2025-02-17 23:26:06 [RateCDR] => 1 ) [2025-02-17 23:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:26:06' and `end` < '2025-02-17 23:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:26:19] Production.INFO: count ==770 [2025-02-17 23:26:19] Production.ERROR: pbx CDR StartTime 2025-02-17 20:26:06 - End Time 2025-02-17 23:26:06 [2025-02-17 23:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499079', 'tblTempUsageDetail_20' ) start [2025-02-17 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499079', 'tblTempUsageDetail_20' ) end [2025-02-17 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499079', 'tblTempVendorCDR_20' ) start [2025-02-17 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499079', 'tblTempVendorCDR_20' ) end [2025-02-17 23:26:19] Production.INFO: ProcessCDR(1,14499079,1,1,2) [2025-02-17 23:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499079', 'tblTempUsageDetail_20' ) start [2025-02-17 23:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499079', 'tblTempUsageDetail_20' ) end [2025-02-17 23:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:26:24] Production.INFO: ==17293== Releasing lock... [2025-02-17 23:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:26:24] Production.INFO: 33.25 MB #Memory Used# [2025-02-17 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:27:05 [end_date_ymd] => 2025-02-17 23:27:05 [RateCDR] => 1 ) [2025-02-17 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:27:05' and `end` < '2025-02-17 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:27:20] Production.INFO: count ==767 [2025-02-17 23:27:20] Production.ERROR: pbx CDR StartTime 2025-02-17 20:27:05 - End Time 2025-02-17 23:27:05 [2025-02-17 23:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499084', 'tblTempUsageDetail_20' ) start [2025-02-17 23:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499084', 'tblTempUsageDetail_20' ) end [2025-02-17 23:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499084', 'tblTempVendorCDR_20' ) start [2025-02-17 23:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499084', 'tblTempVendorCDR_20' ) end [2025-02-17 23:27:20] Production.INFO: ProcessCDR(1,14499084,1,1,2) [2025-02-17 23:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499084', 'tblTempUsageDetail_20' ) start [2025-02-17 23:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499084', 'tblTempUsageDetail_20' ) end [2025-02-17 23:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:27:23] Production.INFO: ==17386== Releasing lock... [2025-02-17 23:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:27:23] Production.INFO: 33 MB #Memory Used# [2025-02-17 23:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:28:06 [end_date_ymd] => 2025-02-17 23:28:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 20:28:06' and `end` < '2025-02-17 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-02-17 23:28:19] Production.INFO: count ==764 [2025-02-17 23:28:19] Production.ERROR: pbx CDR StartTime 2025-02-17 20:28:06 - End Time 2025-02-17 23:28:06 [2025-02-17 23:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499089', 'tblTempUsageDetail_20' ) start [2025-02-17 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499089', 'tblTempUsageDetail_20' ) end [2025-02-17 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499089', 'tblTempVendorCDR_20' ) start [2025-02-17 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499089', 'tblTempVendorCDR_20' ) end [2025-02-17 23:28:19] Production.INFO: ProcessCDR(1,14499089,1,1,2) [2025-02-17 23:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499089', 'tblTempUsageDetail_20' ) start [2025-02-17 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499089', 'tblTempUsageDetail_20' ) end [2025-02-17 23:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:28:22] Production.INFO: ==17473== Releasing lock... [2025-02-17 23:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:28:22] Production.INFO: 33 MB #Memory Used# [2025-02-17 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:29:05 [end_date_ymd] => 2025-02-17 23:29:05 [RateCDR] => 1 ) [2025-02-17 23:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:29:05' and `end` < '2025-02-17 23:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:29:18] Production.INFO: count ==767 [2025-02-17 23:29:18] Production.ERROR: pbx CDR StartTime 2025-02-17 20:29:05 - End Time 2025-02-17 23:29:05 [2025-02-17 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499094', 'tblTempUsageDetail_20' ) start [2025-02-17 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499094', 'tblTempUsageDetail_20' ) end [2025-02-17 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499094', 'tblTempVendorCDR_20' ) start [2025-02-17 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499094', 'tblTempVendorCDR_20' ) end [2025-02-17 23:29:18] Production.INFO: ProcessCDR(1,14499094,1,1,2) [2025-02-17 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499094', 'tblTempUsageDetail_20' ) start [2025-02-17 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499094', 'tblTempUsageDetail_20' ) end [2025-02-17 23:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:29:21] Production.INFO: ==17555== Releasing lock... [2025-02-17 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:29:21] Production.INFO: 33 MB #Memory Used# [2025-02-17 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:30:06 [end_date_ymd] => 2025-02-17 23:30:06 [RateCDR] => 1 ) [2025-02-17 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:30:06' and `end` < '2025-02-17 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:30:20] Production.INFO: count ==761 [2025-02-17 23:30:20] Production.ERROR: pbx CDR StartTime 2025-02-17 20:30:06 - End Time 2025-02-17 23:30:06 [2025-02-17 23:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499100', 'tblTempUsageDetail_20' ) start [2025-02-17 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499100', 'tblTempUsageDetail_20' ) end [2025-02-17 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499100', 'tblTempVendorCDR_20' ) start [2025-02-17 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499100', 'tblTempVendorCDR_20' ) end [2025-02-17 23:30:20] Production.INFO: ProcessCDR(1,14499100,1,1,2) [2025-02-17 23:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499100', 'tblTempUsageDetail_20' ) start [2025-02-17 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499100', 'tblTempUsageDetail_20' ) end [2025-02-17 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:30:23] Production.INFO: ==17642== Releasing lock... [2025-02-17 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:30:23] Production.INFO: 33 MB #Memory Used# [2025-02-17 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:31:05 [end_date_ymd] => 2025-02-17 23:31:05 [RateCDR] => 1 ) [2025-02-17 23:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:31:05' and `end` < '2025-02-17 23:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:31:18] Production.INFO: count ==750 [2025-02-17 23:31:19] Production.ERROR: pbx CDR StartTime 2025-02-17 20:31:05 - End Time 2025-02-17 23:31:05 [2025-02-17 23:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499105', 'tblTempUsageDetail_20' ) start [2025-02-17 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499105', 'tblTempUsageDetail_20' ) end [2025-02-17 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499105', 'tblTempVendorCDR_20' ) start [2025-02-17 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499105', 'tblTempVendorCDR_20' ) end [2025-02-17 23:31:19] Production.INFO: ProcessCDR(1,14499105,1,1,2) [2025-02-17 23:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499105', 'tblTempUsageDetail_20' ) start [2025-02-17 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499105', 'tblTempUsageDetail_20' ) end [2025-02-17 23:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:31:22] Production.INFO: ==17730== Releasing lock... [2025-02-17 23:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:31:22] Production.INFO: 33 MB #Memory Used# [2025-02-17 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:32:05 [end_date_ymd] => 2025-02-17 23:32:05 [RateCDR] => 1 ) [2025-02-17 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:32:05' and `end` < '2025-02-17 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:32:18] Production.INFO: count ==791 [2025-02-17 23:32:18] Production.ERROR: pbx CDR StartTime 2025-02-17 20:32:05 - End Time 2025-02-17 23:32:05 [2025-02-17 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499110', 'tblTempUsageDetail_20' ) start [2025-02-17 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499110', 'tblTempUsageDetail_20' ) end [2025-02-17 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499110', 'tblTempVendorCDR_20' ) start [2025-02-17 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499110', 'tblTempVendorCDR_20' ) end [2025-02-17 23:32:18] Production.INFO: ProcessCDR(1,14499110,1,1,2) [2025-02-17 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499110', 'tblTempUsageDetail_20' ) start [2025-02-17 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499110', 'tblTempUsageDetail_20' ) end [2025-02-17 23:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:32:21] Production.INFO: ==17811== Releasing lock... [2025-02-17 23:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:32:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-17 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:33:05 [end_date_ymd] => 2025-02-17 23:33:05 [RateCDR] => 1 ) [2025-02-17 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:33:05' and `end` < '2025-02-17 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:33:18] Production.INFO: count ==831 [2025-02-17 23:33:18] Production.ERROR: pbx CDR StartTime 2025-02-17 20:33:05 - End Time 2025-02-17 23:33:05 [2025-02-17 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499115', 'tblTempUsageDetail_20' ) start [2025-02-17 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499115', 'tblTempUsageDetail_20' ) end [2025-02-17 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499115', 'tblTempVendorCDR_20' ) start [2025-02-17 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499115', 'tblTempVendorCDR_20' ) end [2025-02-17 23:33:18] Production.INFO: ProcessCDR(1,14499115,1,1,2) [2025-02-17 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499115', 'tblTempUsageDetail_20' ) start [2025-02-17 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499115', 'tblTempUsageDetail_20' ) end [2025-02-17 23:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:33:21] Production.INFO: ==17896== Releasing lock... [2025-02-17 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:33:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-17 23:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:34:06 [end_date_ymd] => 2025-02-17 23:34:06 [RateCDR] => 1 ) [2025-02-17 23:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:34:06' and `end` < '2025-02-17 23:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:34:19] Production.INFO: count ==966 [2025-02-17 23:34:19] Production.ERROR: pbx CDR StartTime 2025-02-17 20:34:06 - End Time 2025-02-17 23:34:06 [2025-02-17 23:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499120', 'tblTempUsageDetail_20' ) start [2025-02-17 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499120', 'tblTempUsageDetail_20' ) end [2025-02-17 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499120', 'tblTempVendorCDR_20' ) start [2025-02-17 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499120', 'tblTempVendorCDR_20' ) end [2025-02-17 23:34:19] Production.INFO: ProcessCDR(1,14499120,1,1,2) [2025-02-17 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499120', 'tblTempUsageDetail_20' ) start [2025-02-17 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499120', 'tblTempUsageDetail_20' ) end [2025-02-17 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:34:23] Production.INFO: ==17982== Releasing lock... [2025-02-17 23:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:34:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-17 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:35:05 [end_date_ymd] => 2025-02-17 23:35:05 [RateCDR] => 1 ) [2025-02-17 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:35:05' and `end` < '2025-02-17 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:35:18] Production.INFO: count ==1006 [2025-02-17 23:35:18] Production.ERROR: pbx CDR StartTime 2025-02-17 20:35:05 - End Time 2025-02-17 23:35:05 [2025-02-17 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499125', 'tblTempUsageDetail_20' ) start [2025-02-17 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499125', 'tblTempUsageDetail_20' ) end [2025-02-17 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499125', 'tblTempVendorCDR_20' ) start [2025-02-17 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499125', 'tblTempVendorCDR_20' ) end [2025-02-17 23:35:18] Production.INFO: ProcessCDR(1,14499125,1,1,2) [2025-02-17 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499125', 'tblTempUsageDetail_20' ) start [2025-02-17 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499125', 'tblTempUsageDetail_20' ) end [2025-02-17 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:35:21] Production.INFO: ==18055== Releasing lock... [2025-02-17 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:35:21] Production.INFO: 36 MB #Memory Used# [2025-02-17 23:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:36:06 [end_date_ymd] => 2025-02-17 23:36:06 [RateCDR] => 1 ) [2025-02-17 23:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:36:06' and `end` < '2025-02-17 23:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:36:19] Production.INFO: count ==1045 [2025-02-17 23:36:19] Production.ERROR: pbx CDR StartTime 2025-02-17 20:36:06 - End Time 2025-02-17 23:36:06 [2025-02-17 23:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499130', 'tblTempUsageDetail_20' ) start [2025-02-17 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499130', 'tblTempUsageDetail_20' ) end [2025-02-17 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499130', 'tblTempVendorCDR_20' ) start [2025-02-17 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499130', 'tblTempVendorCDR_20' ) end [2025-02-17 23:36:19] Production.INFO: ProcessCDR(1,14499130,1,1,2) [2025-02-17 23:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499130', 'tblTempUsageDetail_20' ) start [2025-02-17 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499130', 'tblTempUsageDetail_20' ) end [2025-02-17 23:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:36:23] Production.INFO: ==18141== Releasing lock... [2025-02-17 23:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:36:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-17 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:37:05 [end_date_ymd] => 2025-02-17 23:37:05 [RateCDR] => 1 ) [2025-02-17 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:37:05' and `end` < '2025-02-17 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:37:19] Production.INFO: count ==1215 [2025-02-17 23:37:19] Production.ERROR: pbx CDR StartTime 2025-02-17 20:37:05 - End Time 2025-02-17 23:37:05 [2025-02-17 23:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499135', 'tblTempUsageDetail_20' ) start [2025-02-17 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499135', 'tblTempUsageDetail_20' ) end [2025-02-17 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499135', 'tblTempVendorCDR_20' ) start [2025-02-17 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499135', 'tblTempVendorCDR_20' ) end [2025-02-17 23:37:19] Production.INFO: ProcessCDR(1,14499135,1,1,2) [2025-02-17 23:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499135', 'tblTempUsageDetail_20' ) start [2025-02-17 23:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499135', 'tblTempUsageDetail_20' ) end [2025-02-17 23:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:37:23] Production.INFO: ==18224== Releasing lock... [2025-02-17 23:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:37:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-17 23:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:38:06 [end_date_ymd] => 2025-02-17 23:38:06 [RateCDR] => 1 ) [2025-02-17 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-02-17 20:38:06' and `end` < '2025-02-17 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-02-17 23:38:19] Production.INFO: count ==1216 [2025-02-17 23:38:19] Production.ERROR: pbx CDR StartTime 2025-02-17 20:38:06 - End Time 2025-02-17 23:38:06 [2025-02-17 23:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499140', 'tblTempUsageDetail_20' ) start [2025-02-17 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499140', 'tblTempUsageDetail_20' ) end [2025-02-17 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499140', 'tblTempVendorCDR_20' ) start [2025-02-17 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499140', 'tblTempVendorCDR_20' ) end [2025-02-17 23:38:19] Production.INFO: ProcessCDR(1,14499140,1,1,2) [2025-02-17 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499140', 'tblTempUsageDetail_20' ) start [2025-02-17 23:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499140', 'tblTempUsageDetail_20' ) end [2025-02-17 23:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:38:24] Production.INFO: ==18311== Releasing lock... [2025-02-17 23:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:38:24] Production.INFO: 37 MB #Memory Used# [2025-02-17 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:39:05 [end_date_ymd] => 2025-02-17 23:39:05 [RateCDR] => 1 ) [2025-02-17 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:39:05' and `end` < '2025-02-17 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:39:19] Production.INFO: count ==1212 [2025-02-17 23:39:19] Production.ERROR: pbx CDR StartTime 2025-02-17 20:39:05 - End Time 2025-02-17 23:39:05 [2025-02-17 23:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499145', 'tblTempUsageDetail_20' ) start [2025-02-17 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499145', 'tblTempUsageDetail_20' ) end [2025-02-17 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499145', 'tblTempVendorCDR_20' ) start [2025-02-17 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499145', 'tblTempVendorCDR_20' ) end [2025-02-17 23:39:19] Production.INFO: ProcessCDR(1,14499145,1,1,2) [2025-02-17 23:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499145', 'tblTempUsageDetail_20' ) start [2025-02-17 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499145', 'tblTempUsageDetail_20' ) end [2025-02-17 23:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:39:22] Production.INFO: ==18439== Releasing lock... [2025-02-17 23:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:39:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-17 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:40:06 [end_date_ymd] => 2025-02-17 23:40:06 [RateCDR] => 1 ) [2025-02-17 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:40:06' and `end` < '2025-02-17 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:40:19] Production.INFO: count ==1206 [2025-02-17 23:40:20] Production.ERROR: pbx CDR StartTime 2025-02-17 20:40:06 - End Time 2025-02-17 23:40:06 [2025-02-17 23:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499151', 'tblTempUsageDetail_20' ) start [2025-02-17 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499151', 'tblTempUsageDetail_20' ) end [2025-02-17 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499151', 'tblTempVendorCDR_20' ) start [2025-02-17 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499151', 'tblTempVendorCDR_20' ) end [2025-02-17 23:40:20] Production.INFO: ProcessCDR(1,14499151,1,1,2) [2025-02-17 23:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499151', 'tblTempUsageDetail_20' ) start [2025-02-17 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499151', 'tblTempUsageDetail_20' ) end [2025-02-17 23:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:40:23] Production.INFO: ==18521== Releasing lock... [2025-02-17 23:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:40:23] Production.INFO: 37 MB #Memory Used# [2025-02-17 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:41:05 [end_date_ymd] => 2025-02-17 23:41:05 [RateCDR] => 1 ) [2025-02-17 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:41:05' and `end` < '2025-02-17 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:41:18] Production.INFO: count ==1157 [2025-02-17 23:41:18] Production.ERROR: pbx CDR StartTime 2025-02-17 20:41:05 - End Time 2025-02-17 23:41:05 [2025-02-17 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499156', 'tblTempUsageDetail_20' ) start [2025-02-17 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499156', 'tblTempUsageDetail_20' ) end [2025-02-17 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499156', 'tblTempVendorCDR_20' ) start [2025-02-17 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499156', 'tblTempVendorCDR_20' ) end [2025-02-17 23:41:18] Production.INFO: ProcessCDR(1,14499156,1,1,2) [2025-02-17 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499156', 'tblTempUsageDetail_20' ) start [2025-02-17 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499156', 'tblTempUsageDetail_20' ) end [2025-02-17 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:41:22] Production.INFO: ==18606== Releasing lock... [2025-02-17 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:41:22] Production.INFO: 37 MB #Memory Used# [2025-02-17 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:42:05 [end_date_ymd] => 2025-02-17 23:42:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 20:42:05' and `end` < '2025-02-17 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-02-17 23:42:18] Production.INFO: count ==1155 [2025-02-17 23:42:19] Production.ERROR: pbx CDR StartTime 2025-02-17 20:42:05 - End Time 2025-02-17 23:42:05 [2025-02-17 23:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499161', 'tblTempUsageDetail_20' ) start [2025-02-17 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499161', 'tblTempUsageDetail_20' ) end [2025-02-17 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499161', 'tblTempVendorCDR_20' ) start [2025-02-17 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499161', 'tblTempVendorCDR_20' ) end [2025-02-17 23:42:19] Production.INFO: ProcessCDR(1,14499161,1,1,2) [2025-02-17 23:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499161', 'tblTempUsageDetail_20' ) start [2025-02-17 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499161', 'tblTempUsageDetail_20' ) end [2025-02-17 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:42:22] Production.INFO: ==18681== Releasing lock... [2025-02-17 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:42:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-17 23:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:43:04 [end_date_ymd] => 2025-02-17 23:43:04 [RateCDR] => 1 ) [2025-02-17 23:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:43:04' and `end` < '2025-02-17 23:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:43:19] Production.INFO: count ==1151 [2025-02-17 23:43:19] Production.ERROR: pbx CDR StartTime 2025-02-17 20:43:04 - End Time 2025-02-17 23:43:04 [2025-02-17 23:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499166', 'tblTempUsageDetail_20' ) start [2025-02-17 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499166', 'tblTempUsageDetail_20' ) end [2025-02-17 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499166', 'tblTempVendorCDR_20' ) start [2025-02-17 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499166', 'tblTempVendorCDR_20' ) end [2025-02-17 23:43:19] Production.INFO: ProcessCDR(1,14499166,1,1,2) [2025-02-17 23:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499166', 'tblTempUsageDetail_20' ) start [2025-02-17 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499166', 'tblTempUsageDetail_20' ) end [2025-02-17 23:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:43:22] Production.INFO: ==18763== Releasing lock... [2025-02-17 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:43:22] Production.INFO: 37 MB #Memory Used# [2025-02-17 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:44:05 [end_date_ymd] => 2025-02-17 23:44:05 [RateCDR] => 1 ) [2025-02-17 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:44:05' and `end` < '2025-02-17 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:44:18] Production.INFO: count ==1146 [2025-02-17 23:44:18] Production.ERROR: pbx CDR StartTime 2025-02-17 20:44:05 - End Time 2025-02-17 23:44:05 [2025-02-17 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499171', 'tblTempUsageDetail_20' ) start [2025-02-17 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499171', 'tblTempUsageDetail_20' ) end [2025-02-17 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499171', 'tblTempVendorCDR_20' ) start [2025-02-17 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499171', 'tblTempVendorCDR_20' ) end [2025-02-17 23:44:18] Production.INFO: ProcessCDR(1,14499171,1,1,2) [2025-02-17 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499171', 'tblTempUsageDetail_20' ) start [2025-02-17 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499171', 'tblTempUsageDetail_20' ) end [2025-02-17 23:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:44:22] Production.INFO: ==18840== Releasing lock... [2025-02-17 23:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:44:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-17 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:45:05 [end_date_ymd] => 2025-02-17 23:45:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 20:45:05' and `end` < '2025-02-17 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-02-17 23:45:19] Production.INFO: count ==1146 [2025-02-17 23:45:19] Production.ERROR: pbx CDR StartTime 2025-02-17 20:45:05 - End Time 2025-02-17 23:45:05 [2025-02-17 23:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499176', 'tblTempUsageDetail_20' ) start [2025-02-17 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499176', 'tblTempUsageDetail_20' ) end [2025-02-17 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499176', 'tblTempVendorCDR_20' ) start [2025-02-17 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499176', 'tblTempVendorCDR_20' ) end [2025-02-17 23:45:19] Production.INFO: ProcessCDR(1,14499176,1,1,2) [2025-02-17 23:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499176', 'tblTempUsageDetail_20' ) start [2025-02-17 23:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499176', 'tblTempUsageDetail_20' ) end [2025-02-17 23:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:45:24] Production.INFO: ==18919== Releasing lock... [2025-02-17 23:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:45:24] Production.INFO: 37.5 MB #Memory Used# [2025-02-17 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:46:05 [end_date_ymd] => 2025-02-17 23:46:05 [RateCDR] => 1 ) [2025-02-17 23:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:46:05' and `end` < '2025-02-17 23:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:46:19] Production.INFO: count ==1142 [2025-02-17 23:46:19] Production.ERROR: pbx CDR StartTime 2025-02-17 20:46:05 - End Time 2025-02-17 23:46:05 [2025-02-17 23:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499181', 'tblTempUsageDetail_20' ) start [2025-02-17 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499181', 'tblTempUsageDetail_20' ) end [2025-02-17 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499181', 'tblTempVendorCDR_20' ) start [2025-02-17 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499181', 'tblTempVendorCDR_20' ) end [2025-02-17 23:46:19] Production.INFO: ProcessCDR(1,14499181,1,1,2) [2025-02-17 23:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499181', 'tblTempUsageDetail_20' ) start [2025-02-17 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499181', 'tblTempUsageDetail_20' ) end [2025-02-17 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:46:22] Production.INFO: ==18997== Releasing lock... [2025-02-17 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:46:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-17 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:47:05 [end_date_ymd] => 2025-02-17 23:47:05 [RateCDR] => 1 ) [2025-02-17 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:47:05' and `end` < '2025-02-17 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:47:19] Production.INFO: count ==1142 [2025-02-17 23:47:20] Production.ERROR: pbx CDR StartTime 2025-02-17 20:47:05 - End Time 2025-02-17 23:47:05 [2025-02-17 23:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499186', 'tblTempUsageDetail_20' ) start [2025-02-17 23:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499186', 'tblTempUsageDetail_20' ) end [2025-02-17 23:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499186', 'tblTempVendorCDR_20' ) start [2025-02-17 23:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499186', 'tblTempVendorCDR_20' ) end [2025-02-17 23:47:20] Production.INFO: ProcessCDR(1,14499186,1,1,2) [2025-02-17 23:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499186', 'tblTempUsageDetail_20' ) start [2025-02-17 23:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499186', 'tblTempUsageDetail_20' ) end [2025-02-17 23:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:47:25] Production.INFO: ==19071== Releasing lock... [2025-02-17 23:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:47:25] Production.INFO: 36.75 MB #Memory Used# [2025-02-17 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:48:05 [end_date_ymd] => 2025-02-17 23:48:05 [RateCDR] => 1 ) [2025-02-17 23:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:48:05' and `end` < '2025-02-17 23:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:48:20] Production.INFO: count ==1138 [2025-02-17 23:48:20] Production.ERROR: pbx CDR StartTime 2025-02-17 20:48:05 - End Time 2025-02-17 23:48:05 [2025-02-17 23:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499191', 'tblTempUsageDetail_20' ) start [2025-02-17 23:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499191', 'tblTempUsageDetail_20' ) end [2025-02-17 23:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499191', 'tblTempVendorCDR_20' ) start [2025-02-17 23:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499191', 'tblTempVendorCDR_20' ) end [2025-02-17 23:48:20] Production.INFO: ProcessCDR(1,14499191,1,1,2) [2025-02-17 23:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499191', 'tblTempUsageDetail_20' ) start [2025-02-17 23:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499191', 'tblTempUsageDetail_20' ) end [2025-02-17 23:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:48:24] Production.INFO: ==19151== Releasing lock... [2025-02-17 23:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:48:24] Production.INFO: 36.75 MB #Memory Used# [2025-02-17 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:49:05 [end_date_ymd] => 2025-02-17 23:49:05 [RateCDR] => 1 ) [2025-02-17 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:49:05' and `end` < '2025-02-17 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:49:18] Production.INFO: count ==1135 [2025-02-17 23:49:18] Production.ERROR: pbx CDR StartTime 2025-02-17 20:49:05 - End Time 2025-02-17 23:49:05 [2025-02-17 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499196', 'tblTempUsageDetail_20' ) start [2025-02-17 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499196', 'tblTempUsageDetail_20' ) end [2025-02-17 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499196', 'tblTempVendorCDR_20' ) start [2025-02-17 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499196', 'tblTempVendorCDR_20' ) end [2025-02-17 23:49:18] Production.INFO: ProcessCDR(1,14499196,1,1,2) [2025-02-17 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499196', 'tblTempUsageDetail_20' ) start [2025-02-17 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499196', 'tblTempUsageDetail_20' ) end [2025-02-17 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:49:21] Production.INFO: ==19226== Releasing lock... [2025-02-17 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:49:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-17 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:50:06 [end_date_ymd] => 2025-02-17 23:50:06 [RateCDR] => 1 ) [2025-02-17 23:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:50:06' and `end` < '2025-02-17 23:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:50:20] Production.INFO: count ==1135 [2025-02-17 23:50:20] Production.ERROR: pbx CDR StartTime 2025-02-17 20:50:06 - End Time 2025-02-17 23:50:06 [2025-02-17 23:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499202', 'tblTempUsageDetail_20' ) start [2025-02-17 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499202', 'tblTempUsageDetail_20' ) end [2025-02-17 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499202', 'tblTempVendorCDR_20' ) start [2025-02-17 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499202', 'tblTempVendorCDR_20' ) end [2025-02-17 23:50:20] Production.INFO: ProcessCDR(1,14499202,1,1,2) [2025-02-17 23:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499202', 'tblTempUsageDetail_20' ) start [2025-02-17 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499202', 'tblTempUsageDetail_20' ) end [2025-02-17 23:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:50:23] Production.INFO: ==19302== Releasing lock... [2025-02-17 23:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:50:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-17 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:51:05 [end_date_ymd] => 2025-02-17 23:51:05 [RateCDR] => 1 ) [2025-02-17 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:51:05' and `end` < '2025-02-17 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:51:19] Production.INFO: count ==1119 [2025-02-17 23:51:19] Production.ERROR: pbx CDR StartTime 2025-02-17 20:51:05 - End Time 2025-02-17 23:51:05 [2025-02-17 23:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499207', 'tblTempUsageDetail_20' ) start [2025-02-17 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499207', 'tblTempUsageDetail_20' ) end [2025-02-17 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499207', 'tblTempVendorCDR_20' ) start [2025-02-17 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499207', 'tblTempVendorCDR_20' ) end [2025-02-17 23:51:19] Production.INFO: ProcessCDR(1,14499207,1,1,2) [2025-02-17 23:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499207', 'tblTempUsageDetail_20' ) start [2025-02-17 23:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499207', 'tblTempUsageDetail_20' ) end [2025-02-17 23:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:51:24] Production.INFO: ==19379== Releasing lock... [2025-02-17 23:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:51:24] Production.INFO: 36.75 MB #Memory Used# [2025-02-17 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:52:05 [end_date_ymd] => 2025-02-17 23:52:05 [RateCDR] => 1 ) [2025-02-17 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:52:05' and `end` < '2025-02-17 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:52:19] Production.INFO: count ==1119 [2025-02-17 23:52:19] Production.ERROR: pbx CDR StartTime 2025-02-17 20:52:05 - End Time 2025-02-17 23:52:05 [2025-02-17 23:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499212', 'tblTempUsageDetail_20' ) start [2025-02-17 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499212', 'tblTempUsageDetail_20' ) end [2025-02-17 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499212', 'tblTempVendorCDR_20' ) start [2025-02-17 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499212', 'tblTempVendorCDR_20' ) end [2025-02-17 23:52:19] Production.INFO: ProcessCDR(1,14499212,1,1,2) [2025-02-17 23:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499212', 'tblTempUsageDetail_20' ) start [2025-02-17 23:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499212', 'tblTempUsageDetail_20' ) end [2025-02-17 23:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:52:24] Production.INFO: ==19457== Releasing lock... [2025-02-17 23:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:52:24] Production.INFO: 36.75 MB #Memory Used# [2025-02-17 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:53:05 [end_date_ymd] => 2025-02-17 23:53:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 20:53:05' and `end` < '2025-02-17 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-02-17 23:53:18] Production.INFO: count ==1118 [2025-02-17 23:53:19] Production.ERROR: pbx CDR StartTime 2025-02-17 20:53:05 - End Time 2025-02-17 23:53:05 [2025-02-17 23:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499217', 'tblTempUsageDetail_20' ) start [2025-02-17 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499217', 'tblTempUsageDetail_20' ) end [2025-02-17 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499217', 'tblTempVendorCDR_20' ) start [2025-02-17 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499217', 'tblTempVendorCDR_20' ) end [2025-02-17 23:53:19] Production.INFO: ProcessCDR(1,14499217,1,1,2) [2025-02-17 23:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499217', 'tblTempUsageDetail_20' ) start [2025-02-17 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499217', 'tblTempUsageDetail_20' ) end [2025-02-17 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:53:22] Production.INFO: ==19531== Releasing lock... [2025-02-17 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:53:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-17 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:54:05 [end_date_ymd] => 2025-02-17 23:54:05 [RateCDR] => 1 ) [2025-02-17 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:54:05' and `end` < '2025-02-17 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:54:20] Production.INFO: count ==1118 [2025-02-17 23:54:20] Production.ERROR: pbx CDR StartTime 2025-02-17 20:54:05 - End Time 2025-02-17 23:54:05 [2025-02-17 23:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499222', 'tblTempUsageDetail_20' ) start [2025-02-17 23:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499222', 'tblTempUsageDetail_20' ) end [2025-02-17 23:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499222', 'tblTempVendorCDR_20' ) start [2025-02-17 23:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499222', 'tblTempVendorCDR_20' ) end [2025-02-17 23:54:21] Production.INFO: ProcessCDR(1,14499222,1,1,2) [2025-02-17 23:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499222', 'tblTempUsageDetail_20' ) start [2025-02-17 23:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499222', 'tblTempUsageDetail_20' ) end [2025-02-17 23:54:26] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:54:26] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:54:26] Production.INFO: ==19603== Releasing lock... [2025-02-17 23:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:54:26] Production.INFO: 36.5 MB #Memory Used# [2025-02-17 23:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:55:05 [end_date_ymd] => 2025-02-17 23:55:05 [RateCDR] => 1 ) [2025-02-17 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-02-17 20:55:05' and `end` < '2025-02-17 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:55:18] Production.INFO: count ==1121 [2025-02-17 23:55:19] Production.ERROR: pbx CDR StartTime 2025-02-17 20:55:05 - End Time 2025-02-17 23:55:05 [2025-02-17 23:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499227', 'tblTempUsageDetail_20' ) start [2025-02-17 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499227', 'tblTempUsageDetail_20' ) end [2025-02-17 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499227', 'tblTempVendorCDR_20' ) start [2025-02-17 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499227', 'tblTempVendorCDR_20' ) end [2025-02-17 23:55:19] Production.INFO: ProcessCDR(1,14499227,1,1,2) [2025-02-17 23:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499227', 'tblTempUsageDetail_20' ) start [2025-02-17 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499227', 'tblTempUsageDetail_20' ) end [2025-02-17 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:55:22] Production.INFO: ==19714== Releasing lock... [2025-02-17 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:55:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-17 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:56:05 [end_date_ymd] => 2025-02-17 23:56:05 [RateCDR] => 1 ) [2025-02-17 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:56:05' and `end` < '2025-02-17 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:56:18] Production.INFO: count ==1119 [2025-02-17 23:56:19] Production.ERROR: pbx CDR StartTime 2025-02-17 20:56:05 - End Time 2025-02-17 23:56:05 [2025-02-17 23:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499232', 'tblTempUsageDetail_20' ) start [2025-02-17 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499232', 'tblTempUsageDetail_20' ) end [2025-02-17 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499232', 'tblTempVendorCDR_20' ) start [2025-02-17 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499232', 'tblTempVendorCDR_20' ) end [2025-02-17 23:56:19] Production.INFO: ProcessCDR(1,14499232,1,1,2) [2025-02-17 23:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499232', 'tblTempUsageDetail_20' ) start [2025-02-17 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499232', 'tblTempUsageDetail_20' ) end [2025-02-17 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:56:22] Production.INFO: ==19786== Releasing lock... [2025-02-17 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:56:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-17 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:57:05 [end_date_ymd] => 2025-02-17 23:57:05 [RateCDR] => 1 ) [2025-02-17 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:57:05' and `end` < '2025-02-17 23:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:57:20] Production.INFO: count ==1118 [2025-02-17 23:57:21] Production.ERROR: pbx CDR StartTime 2025-02-17 20:57:05 - End Time 2025-02-17 23:57:05 [2025-02-17 23:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499237', 'tblTempUsageDetail_20' ) start [2025-02-17 23:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499237', 'tblTempUsageDetail_20' ) end [2025-02-17 23:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499237', 'tblTempVendorCDR_20' ) start [2025-02-17 23:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499237', 'tblTempVendorCDR_20' ) end [2025-02-17 23:57:21] Production.INFO: ProcessCDR(1,14499237,1,1,2) [2025-02-17 23:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499237', 'tblTempUsageDetail_20' ) start [2025-02-17 23:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499237', 'tblTempUsageDetail_20' ) end [2025-02-17 23:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:57:24] Production.INFO: ==19867== Releasing lock... [2025-02-17 23:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:57:24] Production.INFO: 37 MB #Memory Used# [2025-02-17 23:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:58:04 [end_date_ymd] => 2025-02-17 23:58:04 [RateCDR] => 1 ) [2025-02-17 23:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:58:04' and `end` < '2025-02-17 23:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:58:18] Production.INFO: count ==1118 [2025-02-17 23:58:18] Production.ERROR: pbx CDR StartTime 2025-02-17 20:58:04 - End Time 2025-02-17 23:58:04 [2025-02-17 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499242', 'tblTempUsageDetail_20' ) start [2025-02-17 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499242', 'tblTempUsageDetail_20' ) end [2025-02-17 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499242', 'tblTempVendorCDR_20' ) start [2025-02-17 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499242', 'tblTempVendorCDR_20' ) end [2025-02-17 23:58:18] Production.INFO: ProcessCDR(1,14499242,1,1,2) [2025-02-17 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499242', 'tblTempUsageDetail_20' ) start [2025-02-17 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499242', 'tblTempUsageDetail_20' ) end [2025-02-17 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:58:21] Production.INFO: ==19941== Releasing lock... [2025-02-17 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:58:21] Production.INFO: 37 MB #Memory Used# [2025-02-17 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 20:59:05 [end_date_ymd] => 2025-02-17 23:59:05 [RateCDR] => 1 ) [2025-02-17 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 20:59:05' and `end` < '2025-02-17 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-17 23:59:21] Production.INFO: count ==1117 [2025-02-17 23:59:21] Production.ERROR: pbx CDR StartTime 2025-02-17 20:59:05 - End Time 2025-02-17 23:59:05 [2025-02-17 23:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-17 23:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499247', 'tblTempUsageDetail_20' ) start [2025-02-17 23:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499247', 'tblTempUsageDetail_20' ) end [2025-02-17 23:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499247', 'tblTempVendorCDR_20' ) start [2025-02-17 23:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499247', 'tblTempVendorCDR_20' ) end [2025-02-17 23:59:21] Production.INFO: ProcessCDR(1,14499247,1,1,2) [2025-02-17 23:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-17 23:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-17 23:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499247', 'tblTempUsageDetail_20' ) start [2025-02-17 23:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499247', 'tblTempUsageDetail_20' ) end [2025-02-17 23:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-17 23:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-17 23:59:24] Production.INFO: ==20018== Releasing lock... [2025-02-17 23:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-17 23:59:24] Production.INFO: 36.75 MB #Memory Used#